hi guys,

just need some suggestion. im gonna develop a new dynamic web page in php.
therefore i would like to know if i should use php framework like codeigniter, kohana, etc or use smarty template.

any comment would be appreciated. tks

    If you are literally creating "a new dynamic web page" (i.e.: one page) as opposed to "a complex multi-paged dynamic web site", then the overhead of learning, implementing, and tweaking any of those is probably not really worth it, unless you are just doing it as a learning experience.

      oh is web pages. =) it consists of multiple pages which allow user to add profile n stuff like that.. so any suggestion?

        How about checking out ZendFramework and CakePHP as two well developed frameworks and testing them out? Either way, you will need time to get to know them and work with them.

        Now, it still could be overhead to use a framework for a simple site like this. If you're developing something like MySpace or Facebook or Digg, then a framework might be in order for you, but for a simple forum or website which holds user data and profiles isn't exactly a very intensive site which would require a framework.

        As for templating, Smarty is good, or you can just use good-ol'-fashioned php to do it. Create a header and footer file and then include them as needed, or set up a templating function or class to automatically do it for you.

          zend framework vs codeigniter. any comment on the these 2 framework??

            You could use both on a simple project and see what you like. Everyone here will tell you something slightly different. I like ZF and don't use it a lot; however, I do like that if I need a single component, I can actually pull out what I need and I don't need the entire framework (i.e. if I need to read a ini file, I don't need the entire framework, just the pertinent files).

            Now, nothing is going to tell you better about them than using them yourself in the same scenario. Until you actually test them out, no-one can say which is better for you. I personally like Zend just because it has a lot of options and is configurable.

              Zend is my preference.

              In regards to Smarty, I would not use it for looping. It is really slow when you get into the tens and hundreds of items. Use PHP for complex looping and computations then pass the data into Smarty.

                hmm okay i guess i gotta try to find out. well tks alot of the reply =)

                  Write a Reply...