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 31,721 times – ( +4 / -2 ) – version 1.1
tags: csv, excel, export

Using updateAll and deleteAll with scopes

Created 3 years ago by le_topHow-tos4 comments – viewed 31,274 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 insert a Simple Dialog Box

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

Use kartik Growl with Yii2 flash messages

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

Configuring different sessions for backend and frontend in Yii advanced app

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

How to install pdo_oci

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

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

Created 4 years ago by Rajith RHow-tos4 comments – viewed 29,687 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,355 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,239 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,223 times – ( +12 / -1 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")