Wiki

Sorted by viewsX
Displaying 291-300 of 784 result(s).

How to use YiiBooster Bootstrap Gallery

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

Front-end developer's guide

Created 5 years ago by jonahTutorials5 comments – viewed 27,409 times – ( +11 / -1 ) – version 1.1
This wiki is a work in progress.

Include Yii framework in a Joomla module

Created 6 years ago by zaccariaHow-tos8 comments – viewed 27,353 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.

Handling Bootstrap active tabs in Yii via URL

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

Yii User and Rights Implementation

Created 3 years ago by Rajith RHow-tos12 comments – viewed 27,109 times – ( +7 / -8 ) – version 1.1
implementing some features of yii user and rights.

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

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

How to use default layout for error pages instead of errorXXX views

Created 7 years ago by idle signTutorials1 comment – viewed 27,057 times – ( +4 / -1 ) – version 1.1
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

Run an Yii Application inside an Wordpress page

Created 6 years ago by Paul ApostolHow-tos3 comments – viewed 26,951 times – ( +12 / -1 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")