Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 81-90 of 254 result(s).

How to create/save more Model inputs and make them repeatable with jQuery

Created 8 years ago by qiangTutorials3 comments – viewed 40,247 times – ( +12 / -1 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

i18n for your model in just 1 line

Created 7 years ago by mintaoTutorials0 comments – viewed 13,729 times – ( +12 / -1 ) – version 1.1
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

Events explained

Created 5 years ago by pligorTutorials10 comments – viewed 39,265 times – ( +22 / -4 ) – version 1.1
Let's see what exactly are the events in Yii!

Front-end developer's guide

Created 5 years ago by jonahTutorials5 comments – viewed 27,589 times – ( +11 / -1 ) – version 1.1
This wiki is a work in progress.

Using CJuiDialog to display flash Messages in Dialogues

Created 6 years ago by thyseusTutorials2 comments – viewed 22,834 times – ( +11 / -1 ) – version 1.1
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

Simple way to use AutoComplete using different ID and Display Value

Created 4 years ago by raheelk2kTutorials5 comments – viewed 26,759 times – ( +11 / -1 ) – version 1.1
Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.

How to display static pages in Yii with database content?

Created 4 years ago by yasenTutorials6 comments – viewed 28,683 times – ( +11 / -1 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

Custom Login Error Messages

Created 4 years ago by whoopassTutorials1 comment – viewed 37,526 times – ( +11 / -1 ) – version 1.1
The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the Yii Blog Tutorial provides a how to in connecting that login authentication method to a database so you can run your logins against the registered users. Talk about sweet deal.

Serve jQuery and jQuery-UI from Google's CDN

Created 5 years ago by YetiTutorials15 comments – viewed 30,082 times – ( +14 / -2 ) – version 1.1
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

Force a User to Change Their Password (ChangePasswordFilter)

Created 5 years ago by waterloomattTutorials2 comments – viewed 18,842 times – ( +16 / -3 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.