Try Cake PHP and CodeIgniter as well both are MVC and enjoy considerably better community support. ZendFramework is currently third in terms of popularity behind these two.
Me I use CodeIgniter and I highly recommend it and no I wasn't paid to write that. ;)
Design and code can never be completely seperated
By Tim Brown
Posted Friday 22nd February 2008 14:43 GMT
However hard you try, for anything but the simplest applications design and code in php can never be completely seperated. Indeed, it seems to me you often end up with a more complicated structure to a php application if you try. With the code calling 'templates' which in turn contain small bits of code for things like looping and conditional tests and often also call functions (more code) to fill in all the little bits and pieces. I think this sort of arrangement can often be harder to maintain, although has its place with large public php apps such as Wordpress.
Escaping?
By Jeff Parker
Posted Friday 22nd February 2008 18:08 GMT
And I quote ...
$where[] = "ID ="."'".$_POST['id']."'";
Promote safe SQL, contain your values before you inject them.
RE:Zend isn't the only option you know
By Deepak Vohra
Posted Friday 22nd February 2008 19:17 GMT
PHP Zend framework has corporate support and follows the PHP best practices.IBM and Google have contributed to PHP Zend framework.
"..Zend's is the first framework with support from a corporate entity and relevant contributions from companies like IBM and Google..".
To add quoting in a SELECT query PHP Zend framework provides the Zend_Db_Select class, which automatically adds the quoting. PHP Zend framework also provides the quote(), quoteInto(), and quoteIdentifier() functions to add quotes.
Why quote from and link to articles based upon Zend press releases?
I like Zend as a company, I like the framework and I use Zend Optimizer 3.3 and Zend Guard to protect my released code, but that doesn't mean that Zend is the only option.
If we want to spread the gospel of MVC it's more helpful to show the options available and the range of resources that are out there. That way we are more likely to attract greater uptake of the MVC standard.
For example the fact that Zend doesn't have built in user authentication, ajax and active record support may turn some people off. Cake does and it supports PHP4 which could help some developers make the switch when all their legacy code is built upon older versions of PHP. The migration to PHP5 is not to be taken lightly if you have a large and complex web app already deployed on PHP4.
So I say show us all the options and everyone benefits in the long run including Zend.
Peace.
PHP Frameworks Features Comparison
By Deepak Vohra
Posted Friday 22nd February 2008 23:41 GMT
More than 40 PHP frameworks are available. For a feature comparison please refer
http://www.phpframeworks.com/
Akelos and Prado support the most features.
The period for commenting on this story has finished
Find out how Trolltech has made it easy for developers to implement web content directly into their native applciations through the integration of the WebKit rendering engine.