Wiki

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

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

Created 5 years ago by samdarkHow-tos1 comment – viewed 14,368 times – ( +21 / -1 ) – 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:

Update specific cgridview html row after AJAX request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 14,343 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)

i18n for your model in just 1 line

Created 8 years ago by mintaoTutorials0 comments – viewed 14,264 times – ( +12 / -1 ) – version 1.1
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

Integrating FirePHP

Created 7 years ago by ricardogranaTutorials5 comments – viewed 14,208 times – ( +8 / -1 ) – version 1.1
Install Firebug plugin for Firefox from here.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 14,207 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.

Display Status image on CGridView column

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

Background task with Ajax

Created about a year ago by Alexandre RodichevskiTutorials0 comments – viewed 13,956 times – ( -1 ) – version 1.1
Web applications normally execute almost immediately the user's requests. But some requests, like statistical reports, take long time to execute.

Encapsulate db and module configurations

Created 8 years ago by ricardogranaTutorials3 comments – viewed 13,848 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

URL component access functions

Created 6 years ago by Steve FriedlTips1 comment – viewed 13,841 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

Rendering a view file in a console application

Created 6 years ago by TompiHow-tos1 comment – viewed 13,758 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.