Yii

Integrating Doctrine: Symfony vs Yii

Continuing with Symfony vs Yii series, in this post will be show how to integrate the best PHP ORM into our project. The versions that will be used are: Yii 1.1.5, Symfony 1.4.8 and Doctrine 1.2.3 . First it will be show the steps to properly integrate Doctrine with Yii, which has no native connection, but there is a very useful plugin (doctrine-yii) to do so. Then the same but with Symfony, which will be a very straight… Read More »Integrating Doctrine: Symfony vs Yii

Autoloading: Symfony vs Yii

PHP Autoloading consists about including files in an automated manner, using the __autoload magic function which is automatically called if there is a class or a interface that hasn’t been defined yet. This is the recommended aproach instead of using a long list of includes at the beginning of each file. Both symfony 1 and Yii implement autoloading to avoid you the annoyances of requiring files by hand. Let’s see how each one implements it for you:… Read More »Autoloading: Symfony vs Yii

Passing parameters from the action to the view: Symfony vs Yii

This is the first post in the Symfony vs Yii series, that compare common functionalities between Symfony 1 and Yii, specifycally symfony 1.4.8 and Yii 1.1.5. In the Model View Controller pattern, the controller needs to send information to the view, to be properly displayed to the user. This information is send in form of variables. Then, this time I will show how to pass custom variables from the controller (Yii) or action (symfony) to… Read More »Passing parameters from the action to the view: Symfony vs Yii

Yii framework

The last week I have started a new project that requires to learn a new framework. This new framework is Yii, as it home page says: “The Fast, Secure and Professional PHP Framework”. Some time ago I have worked with Zend Framework and Code Igniter and, as someone said sometime, there is no better framework, there is just a set of tools that should be used wisely for the right job. Yii, was developed and is… Read More »Yii framework