Wiki

Sorted by viewsX
Displaying 291-300 of 786 result(s).

Search method of a model for filters when using dates - unixtimestamp in database

Created 7 years ago by MukkeTips1 comment – viewed 29,839 times – ( +10 / -1 ) – version 1.1
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

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

Created 8 years ago by idle signTutorials1 comment – viewed 29,713 times – ( +4 / -1 ) – version 1.1
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

Multiple Database Connection : Select database based on login user id, Dynamic

Created 4 years ago by Rajith RHow-tos4 comments – viewed 29,669 times – ( +9 / -7 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

Authenticating against phpass hashes with Yii

Created 6 years ago by Da:SourcererHow-tos18 comments – viewed 29,352 times – ( +26 / -1 ) – version 1.1
Note: This guide is outdated as of Yii v1.1.14 which introduced the CPasswordHelper class. Please use that instead.

Handling Bootstrap active tabs in Yii via URL

Created 5 years ago by JamesBarnsleyHow-tos17 comments – viewed 29,223 times – ( +7 / -1 ) – version 1.1
I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to this problem is rather cumbersome as every tab component will need the PHP code inserted or you will have to extend the tab component somehow to do it.

Run an Yii Application inside an Wordpress page

Created 7 years ago by Paul ApostolHow-tos3 comments – viewed 29,209 times – ( +12 / -1 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

CGridView keep state of page and sort.

Created 5 years ago by DanielHow-tos5 comments – viewed 29,143 times – ( +6 / -1 ) – version 1.1
Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created 6 years ago by Revelis Luc BonninHow-tos2 comments – viewed 28,901 times – ( +9 / -2 ) – version 1.1
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

Front-end developer's guide

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

How to use YiiBooster Bootstrap Gallery

Created 5 years ago by Antonio RamirezHow-tos4 comments – viewed 28,724 times – ( +4 / -1 ) – version 1.1
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.