Wiki

Sorted by ratingX
Displaying 141-150 of 467 result(s).

Using loginRequiredAjaxResponse to solve ajax session timeout

Created about a year ago by RutgerHow-tos3 comments – viewed 9,132 times – ( +12 )
This solution requires Yii 1.1.9 or above

i18n for your model in just 1 line

Created 3 years ago by mintaoTutorials0 comments – viewed 8,510 times – ( +12 )
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

Real Time Logging

Created 2 years ago by lucifuriousTips1 comment – viewed 12,330 times – ( +12 )
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.

Run an Yii Application inside an Wordpress page

Created 2 years ago by Paul ApostolHow-tos3 comments – viewed 11,931 times – ( +12 )
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Getting nulls from database instead of empty strings

Created 2 years ago by samdarkTips2 comments – viewed 6,652 times – ( +12 )
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Accessing data in a join table with the related models

Created about a year ago by fsbHow-tos7 comments – viewed 36,046 times – ( +18 / -1 )
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Using the jqueryslidemenu plugin with CMenu

Created 2 years ago by Antonio RamirezHow-tos0 comments – viewed 20,621 times – ( +18 / -1 )
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

Special $variables in CGridView and CListView

Created about a year ago by Steve FriedlTips8 comments – viewed 21,841 times – ( +18 / -1 )
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

How to translate and do the translations the easy way

Created about a year ago by Roman SolomatinHow-tos3 comments – viewed 24,128 times – ( +17 / -1 )
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.
tags: i18n

CGridView: Update/create records in a CJuiDialog

Created about a year ago by JobloTips10 comments – viewed 21,053 times – ( +11 )
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.