Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
22:43

Development Workflow in YII 


The workflow assumes that we have done the requirement analysis as well as the necessary design analysis for the application.



1. Create the skeleton directory structure. The yiic tool described in Creating First
Yii Application can be used to speed up this step.

2. Configure the application. This is done by modifying the application configuration
file. This step may also require writing some application components (e.g. the user
component).

3. Create a model class for each type of data to be managed. Again, yiic can be used
to automatically generate the active record class for each interested database table.

4. Create a controller class for each type of user requests. How to classify user requests
depends on the actual requirement. In general, if a model class needs to be accessed
by users, it should have a corresponding controller class. The yiic tool can automate
this step, too.

5. Implement actions and their corresponding views. This is where the real work needs
to be done.

6. Configure necessary action filters in controller classes.

7. Create themes if the theming feature is required.

8. Create translated messages if internationalization is required.

9. Spot data and views that can be cached and apply appropriate caching techniques.

10. Final tune up and deployment.

For each of the above steps, test cases may need to be created and performed.
04:40
yii framework


how to install yii frame work on your system:
1. go to Yiiframework.com, navigate to download page. http://www.yiiframework.com/download/
2. download the source code.
3. unzip it and rename it as yii.
4. move that yii folder to your local host directory(in my case it is /var/www)
5. now go to terminal get into your local host root directory(www) and enter this command.

 root@satya-OptiPlex-9010:/var/www#  yii/framework/yiic webapp sample-app

6. It will ask for confirmation, say y for yes.

That's it....
your sample-app is ready.

now go to browser and type localhost/sample-app/
it's that simple...