Yii framework is one of the latest and most highly regarded PHP frameworks available in the market today. The Model, View, Controller architecture in some detail, from a Yii perspective.
Yii Framework - Best for Developing Web 2.0 Applications
1. Yii Framework - Best for Developing Web 2.0 Applications
Yii framework is one of the latest and most highly regarded PHP frameworks available in the market today. The
Model, View, Controller architecture in some detail, from a Yii perspective.
In the default rules, the admin user can perform certain actions, where “admin” is the actual name of the user that
is logged in, and comes from protected/components/User Identity. php. The default Yii framework allows for
two users, with names of demo and admin, but you’d likely have a more elaborate system in place. If you know
only a limited number of users will be admins, you could hard code their user names into the rules:
• Extract the Yii User Management Module under the modules/ directory of your new Web
Application. Replace the _0.4 with the latest Version available.
• Add the Module to your Application Configuration
• The Yii User Management Module needs a Database Connection to work. You now have to setup your
SQlite or MySQL Database and insert the connection URI in your Application configuration, like this:
• To let your Web Application use the Authentification Methods of the User Management Module, we
need to overwrite the default Authentification Method in the Application Configuration:
• The difference of 'User' and 'user' here. 'User' represents our ActiveRecord-Model while 'user' represents
the user configuration.
• Run the User Management Installer in your Web-Browser:
• Now the Installer of the User Management Module should appear. To the right you can set up alternating
Table Names used by the Module.
• Click on "Administrate your Users (use admin/admin)". Now you are taken to the default Front-End
Login-Screen of the User Management Module. Log in with the Username admin and Password admin.
• Click on the 'update Icon' (the pencil) of your administrator User. Change the Password to something
more safe than 'admin'. Click Save.
• Remove the 'debug': true' line from your Application Configuration so your new data doesn't get
overwritten accidentally by the installation process.
• Role Management:: You can add up new roles in the Role Manager. To check for access to this roles,
you can use this code Snippet everywhere in your Yii Application. Most likely it will be used in the ACL
Filter of your Controllers:
For More Information About YII Framework:
http://www.hiddenbrains.com/yii-development-india.html