Life Cycle of Yii 1.x

1. Pre-initialize the application with CApplication::preinit(); 2. Set up the class autoloader and error handling; 3. Register core application components; 4. Load application configuration; 5. Initialize the application with CApplication::init() • Register application behaviors; • Load static application components; 6. Raise an onBeginRequest event; 7. Process the user request: • Collect information about the request; • Create a controller; • Run the controller; 8. Raise an onEndRequest event;

Read More

Application components available on Yii

Yii predefines a set of core application components to provide features common among Web applications. For example, the request component is used to collect information about a user request and provide information such as the requested URL and cookies. By configuring the properties of these core components, we can change the default behavior of nearly every aspect of Yii. Yii core components that are pre-declared by CWebApplication • assetManager: CAssetManager – manages the publishing of private asset files. • authManager: CAuthManager – manages role-based access control (RBAC). • cache: CCache…

Read More

Why use Yii 2 framework

Why we are using Yii2 for develop our project please check out the below details to find out why we are use this php framework Easy to Install Yii 2 Use Modern Technologies Highly Extensible Encourages Testing Improve Security Less Development Time Better Performance Yii 1.x Yii 1.x requires php 5.2 Console application without controller The base controller class in yii/base/action Yii 1.x use event method Easy Documentation Yii2  Yii 2 required 5.4 Console application without controller In Yii 2 base controller class  Yii/Web/Controller Yii 2 does not user events…

Read More

Yii 1.x A very easy way to setup yiic on windows

extract zip framework file from http://www.yiiframework.com/download to c:\wamp\www folder rename yii-1.1.13…. folder to yii (so the path should be c:\wamp\www\yii and the framework itself will be into c:\wamp\www\yii\framework) on c:\wamp\www creates a file with the extension ‘bat’ (for example myrun.bat), then open it with an editor (I suggest you notepad or any other editor as you like) and add this code set PATH=%PATH%;(C:\wamp\bin\php\php5.4.3 or you php directory path) cmd Note : the C:\wamp\bin\php\php5.4.3 is the php folder path on my system, so you have to check which is yours save…

Read More