Wiki

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

simple CSV export

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

How to register scripts and css

Created 2 years ago by oligalmaHow-tos0 comments – viewed 28,260 times – ( -1 ) – version 1.1
First of all, we need to download the jQuery library and store it in the js folder. In this example we are using the version 2.1.3.

How To : Create Forgot Password in Yii (Sending Email to Reset Password)

Created 2 years ago by ruderbytesHow-tos2 comments – viewed 28,121 times – ( +1 / -1 ) – version 1.1
Assalamualaikum wr.wb Hello yii people i'm Muhammad Fahmi Azain this is tutorial about forgot password in yii framework, and i'm sorry if it does not comply with code standards yii. okay let's begin

Authenticating against phpass hashes with Yii

Created 5 years ago by Da:SourcererHow-tos18 comments – viewed 27,884 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.

CGridView keep state of page and sort.

Created 5 years ago by DanielHow-tos5 comments – viewed 27,880 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 5 years ago by Revelis Luc BonninHow-tos2 comments – viewed 27,833 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

How to use YiiBooster Bootstrap Gallery

Created 4 years ago by Antonio RamirezHow-tos4 comments – viewed 27,696 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.

Dynamic Sidebar using CClipWidget

Created 6 years ago by SheldmanduHow-tos5 comments – viewed 27,600 times – ( +21 / -1 ) – version 1.1
Most applications will have one or two sidebars and often you want to control the content that should appear in the sidebar based on the action. For example you will want to show something different on the homepage as opposed to some view page. While achieving this you generally also want to avoid putting the layout into each view, as that would mean if you wanted to change the layout (e.g. put the sidebar on the left instead of the right or do some funky layout which requires an additional div tag to be added) you'd have to go through every view, which does not achieve good code re-use. It is also bad practice to have lots of if statements in column2 layout just so that you can generate the sidebar correctly.

Using updateAll and deleteAll with scopes

Created 2 years ago by le_topHow-tos4 comments – viewed 27,559 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.

Include Yii framework in a Joomla module

Created 6 years ago by zaccariaHow-tos8 comments – viewed 27,360 times – ( +8 / -3 ) – version 1.1
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.