Does anybody user php MVC framework? I need your experiences. Why Zend, why not Code Ingiter.... or something like that.
Try Kohana or CakePHP. I had a quick look at ZF about 2/3 months ago, but I guess I'm really too lazy to type such long classnames hehe
Zend is nice and all, and it makes development exteremely fast once you get it off the ground. Only downsides I found was the form component got annoying at times with styling and it was a resource hog. @brownskinman The long class names are perfectly logical, and as you would be a programmer it should take only a split second for you to type. You must be really lazy, lol. But if you're lazy in that aspect, i'd be scared to see what other critical aspects you'd be lazy with in code.
I use Code Igniter. Zend is to complicated. Code igniter use less memory... What about another frameworks? Any experiences?
I use my own MVC framework. The greatest advantage is that I have coded it from ground so I know the source inside out which makes debugging much easier. The downside might be that it's quite simple so it doesn't have so much functionality out-of-box. However, that might also be an advantage - it is easy to add new funcionality and it is light on resources. If you want to go with some robust and experienced framework, I would probably recommend Symfony or Zend. If you want something ligther, Kohana might be worth looking at.
im going to get into ZF so much momentum behind it i think its the one to learn if you are going to learn any of them
Do you employ many singletons throughout it? Do you use PDO for access to database, or just the "other" way?
I don't use singleton design pattern at all. For database access, I use PDO, wrapped in my own more or less abstracion class.
Ahh cool. Thought you maybe would of used a singleton for the Authentication object, or something else.
Well, to be honest I usually work only on small projects/websites so I have a full contol over the code and I can make sure there is only one instance of object just by carefully writting code, that's why I don't use singleton. But of course, in case I was working with several other developers or on a larger project, I would certainly implement it in classes that need it. It's difficult to make sure there is only one instance of the object when the code grows so huge so singleton is absolutely neccessary there.
Personally I use Code Igniter and I would highly recommend it. I haven't really used other frameworks.
I would say forget garbage like CodeIgniter and cakePHP. Why? Because despite they are easy to use and learn they choose to remain compatible with PHP4 which is dead. So both of this frameworks are pretty much outdated, sure code written with them will probably still work with on shared hosts, but in my opinion choosing them RIGHT NOW is a wrong step. So basically your choice is limited to 3 or 4 options. Kohana which is CodeIgniter but written in PHP5 however it lacks documentation and tutorials so it would be hard to begin with, Symfony by far the most advanced framework which generates a lot of code for you. Zend Framework, which is actually not a framework because it is merely a set of class that allows you to build your framework. Other good ones would be Agavi and Prado i do not know about them so you have to check them out by yourself. Ultimately it all comes down to this: You have to download all the frameworks and test them, if someone claims that XXX framework is best that does not mean it will be also best for you. So play with them for a while and see which one resonates with you. P.S. If you would like to get a job as a PHP programmer then keep in mind that companies are looking for programmers who are good with either Zend Framework or Symfony, so if that's the case then your choice is limited to this two frameworks.
I've played with prado during one year. This framework is quite interesting (component driven such as .net). It is a very good framework when you are rendering HTML and AJAX. Unfortunately I'm not sure that all the scaling issues are solved (I have not tried the caching system). I think this is a good framework for small sites and company sites. I am currently developing with Zend framework. This is a different approach, all modules are clearly separated (no dependencies). Thus you are free to use only the database abstraction or specific service helpers. The community is already big and each release brings cool stuff. Problem is there is not a good "view" layer for HTML. In my case this is not a problem because we are 99% flash (by the way Zend_Amf is great).
I've built production projects with symfony. When we were deciding which framework to choose, it seemed symfony had the best documentation and right out of the box it was easy, powerful, and a joy to work with in eclipse. Would have preferred another db layer to propel... but I understand Doctrine is usable now, and that sounds interesting. Give symfony a try... it's easy enough that you can do a quick something to see if you like it and fail fast if you don't... but I think you'll like it.
Hello, I have expertise in cake php which is also a MVC framework and it's very popular now a days, if interested please email me with the details. Regards Sumit
If you use many libraries, use many advanced techniques (SOAP, XML-RPC, Web Service), I recommend you use Zend Framework. If you like simple MVC Framework, I think Code Igniter is the best choice (its tutorials is very good, easy to learn) You can try to use CakePHP, Symfony ... if you like them.