nikolasha
nikolasha
In his project I use a directory structure views: ``` php /app/views - base path of views /app/views/layouts/main.phtml - main layout of page /app/views/partials/header.phtml - layout header of page /app/views/partials/footer.phtml...
This is a good option, but not `/app/views/contents/index.phtml`, and the `/app/views/index/index.phtml` Only the directory layout I did a little bit differently: ``` /app/layouts/ - layouts and partials /app/layouts/main.phtml - main...
You can do in version 1.0 aliases of these methods, as suggested rvanderfeer. Old names mark as deprecated, and in version 2.0 remove them completely.
Thank you! I also have a question. Tell me how to use the Phalcon\Mvc\Model and PHQL affects performance in comparison with pure PDO?
Thank you!
This is a problem. Sometimes really comfortable prohibit NULL value, but allow an empty string. I think, by default, the Phalcon must check the exactly NULL value. If an empty...
@phalcon, this is understandable and commendable that you are trying to make life easier for developers. But here it is necessary to know the measure. In practice, such a decision...
Perhaps it would be a good solution: > `$this->allowEmptyString(array('note'));`
I agree with @tugrul. It makes little sense in setters, where it is a global setting/configuration of the application. But in the logic of the application setters are really useful.