Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 71-80 of 182 result(s).

Updating fields on a form with Ajax and Json

Created 2 years ago by Russell EnglandHow-tos4 comments – viewed 30,939 times – ( +12 / -1 )
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

How to write a simple application component

Created 2 years ago by zaccariaHow-tos4 comments – viewed 19,936 times – ( +12 / -7 )
An application component is a confortable way for share information among all component of the application

Handling Bootstrap active tabs in Yii via URL

Created 4 months ago by JamesBarnsleyHow-tos4 comments – viewed 4,915 times – ( +5 )
As a lead developer at Mutable Labs I 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.

Alternative folder structure for a standard Yii app

Created about a month ago by TrejderHow-tos4 comments – viewed 2,227 times – ( +3 )
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

defaultScope

Created 22 days ago by Gerhard LiebenbergHow-tos4 comments – viewed 1,815 times – ( +3 )
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

How to insert a Simple Dialog Box

Created about a year ago by bluyellHow-tos3 comments – viewed 13,039 times – ( +5 )
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

Secure password hashing with bCrypt

Created about a year ago by waitforitHow-tos3 comments – viewed 11,035 times – ( +6 )
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

Using CJuiDatePicker for CGridView filter

Created about a year ago by softarkHow-tos3 comments – viewed 15,440 times – ( +16 )
We can use a CJuiDatePicker for a CGridView inline filter.

Using loginRequiredAjaxResponse to solve ajax session timeout

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

CGridView keep state of page and sort.

Created about a year ago by DanielHow-tos3 comments – viewed 10,014 times – ( +3 )
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.