Wiki

Articles in category "tutorials", sorted by date (updated)X
Displaying 141-150 of 249 result(s).

Working with radiobutton list

Updated 3 years ago by vibhaJadwaniTutorials3 comments – viewed 50,900 times – ( +10 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

Update content in AJAX with renderPartial

Updated 3 years ago by hairylunchTutorials17 comments – viewed 241,653 times – ( +59 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

CSS, JS and image URL shortcut methods

Updated 4 years ago by jonahTutorials2 comments – viewed 24,098 times – ( +2 / -1 ) – version 1.1
Below I have created an Html helper with methods to help me locate directories of my assets dynamically. Such assets may include CSS, JavaScript and images.
tags: URL

Add information to Yii::app()->user by extending CWebUser

Updated 4 years ago by Yang HeTutorials11 comments – viewed 121,706 times – ( +35 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Using the configuration file, explain what can be configured.

Updated 4 years ago by Yang HeTutorials0 comments – viewed 60,922 times – ( +20 ) – version 1.1
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

Using search engine and user friendly URLs

Updated 4 years ago by Yang HeTutorials7 comments – viewed 72,545 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

Encapsulate db and module configurations

Updated 4 years ago by Yang HeTutorials3 comments – viewed 12,021 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

How to use default layout for error pages instead of errorXXX views

Updated 4 years ago by Yang HeTutorials1 comment – viewed 23,987 times – ( +4 ) – version 1.1
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

How to add ajax-loading indicators

Updated 4 years ago by Yang HeTutorials5 comments – viewed 52,532 times – ( +27 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Adding login form to each page

Updated 4 years ago by Yang HeTutorials5 comments – viewed 35,497 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like: