Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 51-60 of 234 result(s).

Implementing a User Level Access System

Created 3 years ago by Antonio RamirezTutorials12 comments – viewed 43,118 times – ( +28 / -1 ) – version 1.1
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

How to create nice modal login widget with a CJuiDialog

Created 3 years ago by Igor IvanovicTutorials3 comments – viewed 42,754 times – ( +9 ) – version 1.1
...folder /protected/components/UserLoginWidget.php... ...extending the CWidget class...
tags: user, login, modal, widget

Theming your Zii Widgets

Created 3 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 42,620 times – ( +19 ) – version 1.1
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

How to customize Yii core messages?

Created 5 years ago by qiangTutorials7 comments – viewed 42,458 times – ( +17 ) – version 1.1
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

How to add ajax-loading indicators

Created 5 years ago by schmunkTutorials5 comments – viewed 42,375 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

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 2 years ago by yJeroenTutorials8 comments – viewed 42,033 times – ( +18 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Creating Yii applications with composer

Created 2 years ago by schmunkTutorials2 comments – viewed 41,888 times – ( +29 ) – version 1.1
Creating Yii applications with composer

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 2 years ago by c@cbaTutorials35 comments – viewed 41,317 times – ( +30 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 4 years ago by thyseusTutorials9 comments – viewed 40,519 times – ( +15 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Use shortcut functions to reduce typing

Created 5 years ago by qiangTutorials8 comments – viewed 40,461 times – ( +56 ) – version 1.1
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.