Wiki

Sorted by viewsX
Displaying 521-530 of 784 result(s).

Moving the vendor directory for multiple projects

Created 2 years ago by mariosimaremareHow-tos2 comments – viewed 13,506 times – ( +5 / -2 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 13,448 times – ( +13 / -1 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

URL component access functions

Created 6 years ago by Steve FriedlTips1 comment – viewed 13,420 times – ( +28 / -1 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Encapsulate db and module configurations

Created 7 years ago by ricardogranaTutorials3 comments – viewed 13,319 times – ( +7 / -1 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

Update specific cgridview html row after AJAX request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 13,311 times – ( +2 / -1 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

Display Status image on CGridView column

Created 4 years ago by Ankit ModiTutorials1 comment – viewed 13,308 times – ( +2 / -2 ) – version all
How to display status image on admin gridview.

caching controllers with filters()

Created 6 years ago by RusAlexHow-tos1 comment – viewed 13,220 times – ( +2 / -1 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Como trasponer una lista creada con CHtml::checkBoxList

Created 5 years ago by rdjteamTips3 comments – viewed 13,170 times – ( +2 / -1 ) – version 1.1
En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

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

Created 4 years ago by thyseusTips4 comments – viewed 13,154 times – ( +11 / -1 )
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:

Rendering a view file in a console application

Created 5 years ago by TompiHow-tos1 comment – viewed 13,095 times – ( +4 / -3 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.