Live data from Hacker News

The Yet Another Framework (Yaf), PHP extension for developing web applications

php.net

21–30 of 38 posts

Re: The Yet Another Framework (Yaf), PHP extension for developing web applications

#21

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:

    class MyClass extends BaseClass

Re: The Yet Another Framework (Yaf), PHP extension for developing web applications

#24
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/).

Re: The Yet Another Framework (Yaf), PHP extension for developing web applications

#26
post #24

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.

Re: The Yet Another Framework (Yaf), PHP extension for developing web applications

#27
post #11

> 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.
Post reply on HN