Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 111-120 of 355 result(s).

How to insert a Simple Dialog Box

Created 5 years ago by bluyellHow-tos6 comments – viewed 29,915 times – ( +5 / -3 ) – version 1.1
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.

simple CSV export

Created 4 years ago by bluyellHow-tos6 comments – viewed 29,893 times – ( +4 / -2 ) – version 1.1
tags: csv, excel, export

How to install pdo_oci

Created 7 years ago by gallego123How-tos2 comments – viewed 29,573 times – ( +1 / -1 ) – version 1.1
From: http://lacot.org/ and me.
tags: pdo oci php

Using updateAll and deleteAll with scopes

Created 3 years ago by le_topHow-tos4 comments – viewed 29,146 times – ( +5 / -1 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

CGridView keep state of page and sort.

Created 5 years ago by DanielHow-tos5 comments – viewed 28,496 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,345 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

Configuring different sessions for backend and frontend in Yii advanced app

Created 3 years ago by Kartik VHow-tos2 comments – viewed 28,314 times – ( +48 / -1 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Authenticating against phpass hashes with Yii

Created 6 years ago by Da:SourcererHow-tos18 comments – viewed 28,300 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 4 years ago by JamesBarnsleyHow-tos17 comments – viewed 28,298 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.

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

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