It kind of reminds me of ASP.NET C# MVC, just glancing at the example page: http://au.php.net/manual/en/yaf.examples.php Not being particularly proficient in PHP, is the 'Class myClass extends baseClass' syntax normal? I've never seen it before.
Syntax yes, code standard, no. Most standards would prescribe:
This seems to be a glorified front controller integrated with a templating engine.
It is really cool that they did this as a PECL extension. I had a PHP framework many years ago that we considered converting to a PECL extension (http://sourceforge.net/projects/cep/).
It is interesting that there are no models. This seems to be a glorified front controller integrated with a templating engine. It is really cool that they did this as a PECL extension. I had a PHP framework many years ago that we considered converting to a PECL extension ( http://sourceforge.net/projects/cep/ ).
Generally, models can be left up to the developer to create based on business logic. Take for example, Zend Framework. It provides an active record like pattern in its Zend_Db_Table but expects the individual application to create the models that use (not inherit) Zend_Db_Table.
> Yaf require PHP version greater than 5.2.1, and could not run with early version of PHP. No thanks. Closure? Namespace?
I'm not sure what you're getting at. Is there reason to believe that this will not work with PHP >= 5.3?
It will be is not structured using Namespaces, which can be annoying if you are using them on a day to day basis and want to integrate something like Yaf that doesn't use them.