Sorted by viewsX
Displaying 461-470 of 761 result(s).

Alternative folder structure for a standard Yii app

Created 2 years ago by TrejderHow-tos4 comments – viewed 11,444 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

How to create the custom Drop-down using CHtml::dropDownList

Created about a year ago by Ankit ModiHow-tos1 comment – viewed 11,430 times – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

Managing your nested dropdown dependency with DepDrop widget

Created about a year ago by Kartik VTutorials6 comments – viewed 11,398 times – ( +37 / -5 ) – version 2.0
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 3 years ago by BoazHow-tos2 comments – viewed 11,317 times – ( +7 / -1 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Using CListView to display items next to each other (in columns)

Created 2 years ago by thyseusTips4 comments – viewed 11,289 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Encapsulate db and module configurations

Created 6 years ago by ricardogranaTutorials3 comments – viewed 11,236 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at
tags: module

How to: use github for download yii, create new app, and store our modules or extensions.

Created 3 years ago by sensorarioHow-tos1 comment – viewed 11,179 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 3 years ago by samdarkHow-tos1 comment – viewed 11,135 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

Starting with YII 1.1.x in Windows Environment (WAMP)

Created about a year ago by Rajith RTutorials0 comments – viewed 11,122 times – ( +8 ) – version 1.1
As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.
tags: newbie, yii, yiic

ChromePHP for Yii

Created 4 years ago by imeheszTips0 comments – viewed 11,059 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.