Dorkar Posted September 7, 2008 Share Posted September 7, 2008 Hi, I am relatively new to PHP, and i am trying to design a web application that includes google map and database transaction. and i am using Eclipse PDT and xdebug as development tools because they are free. Now, my question is - what is difference between MVC Frameworks and Templating Framework, can i use MVC within Templating Framework? because i want efficient layering too. does Codeignitor suffices all my needs? can i integrate it with eclipse? regards maruf Quote Link to comment Share on other sites More sharing options...
stuffradio Posted September 7, 2008 Share Posted September 7, 2008 Templating is where you can easily have some designers make a template for your website. For example if you have a variable called header, they would just go like "{header}" in the template, and it would display that info from the website. MVC means Model View Controller. It's a design pattern for frameworks, the way the framework is coupled together and that's how it processes things. The model is like an abstract class or whatever that can handle any databasing needs. The view handles your web pages, the looks of it. Controller controls what the page does. It can load the view, or the model and you can put information from the model in to the view. Yes, CodeIgniter does suffice. There is a template engine inside of CodeIgniter. I hope I answered all your questions well enough Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 7, 2008 Share Posted September 7, 2008 In other words, Templating is (can be) part of V in MVC Quote Link to comment Share on other sites More sharing options...
Dorkar Posted September 7, 2008 Author Share Posted September 7, 2008 thanx Mchl & stuffradio, for my application i want templating & security (hide scripts from designers), plus customized controllers too. And i want to develop my application on Eclipse with the help of Xdebug. but, i am stuck with the decision of which framework is to use? Smarty or CI............or Cake which one will give me the most flexibility and options for extensions? plus ease of use.. regards maruf Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 7, 2008 Share Posted September 7, 2008 I used to use Smarty a lot. Has some quirks, but it's pretty easy to understand it. Now I'm using something completely different. I create GUI using ExtJS and I use it's built-in AJAX capabilities to get data to/from PHP. Quote Link to comment Share on other sites More sharing options...
stuffradio Posted September 7, 2008 Share Posted September 7, 2008 I haven't created anything with Cake... but Smarty is just a template engine. It's not a framework itself. CI has something similar to Smarty built in to the framework. So I'd say just go with CI. Quote Link to comment Share on other sites More sharing options...
ionik Posted September 10, 2008 Share Posted September 10, 2008 what is difference between MVC Frameworks and Templating Framework, can i use MVC within Templating Framework? because i want efficient layering too. A template engine isnt a framework a template engine is a php application that simplifies output for your code by putting it into template files stored and parses them dynamically or statically when run. A MVC Framework is a php application that is designed to run and develop php applications, doing a few things simply put it makes the development phase must must faster. A template engine is something no developer can live without ( unless they want to make live hard on themselves ). A Framework is something a developer can go years without me personally I don't use frameworks unless its required at my job, frameworks are more of a preference. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.