Wiki

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

simple CSV export

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

How to insert a Simple Dialog Box

Created 6 years ago by bluyellHow-tos6 comments – viewed 30,269 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.

Using updateAll and deleteAll with scopes

Created 3 years ago by le_topHow-tos4 comments – viewed 29,973 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.

How to install pdo_oci

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

Configuring different sessions for backend and frontend in Yii advanced app

Created 3 years ago by Kartik VHow-tos2 comments – viewed 29,121 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.

Use kartik Growl with Yii2 flash messages

Created 2 years ago by skwordenHow-tos3 comments – viewed 28,952 times – ( +8 / -1 ) – version 2.0
This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

Authenticating against phpass hashes with Yii

Created 6 years ago by Da:SourcererHow-tos18 comments – viewed 28,930 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.

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

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

CGridView keep state of page and sort.

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

Handling Bootstrap active tabs in Yii via URL

Created 4 years ago by JamesBarnsleyHow-tos17 comments – viewed 28,660 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.