Your SlideShare is downloading. ×
Yii Framework - Best for Developing Web 2.0 ApplicationsYii framework is one of the latest and most highly regarded PHP fr...
Upcoming SlideShare
Loading in...5
×

Yii Framework - Best for Developing Web 2.0 Applications

788

Published on

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.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
788
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Yii Framework - Best for Developing Web 2.0 Applications"

  1. 1. Yii Framework - Best for Developing Web 2.0 ApplicationsYii framework is one of the latest and most highly regarded PHP frameworks available in the market today. TheModel, 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 thatis logged in, and comes from protected/components/User Identity. php. The default Yii framework allows fortwo users, with names of demo and admin, but you’d likely have a more elaborate system in place. If you knowonly 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 doesnt 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

×