Wiki

Displaying 771-780 of 786 result(s).

How to set up Unicode

Created 8 years ago by MikeHow-tos10 comments – viewed 97,942 times – ( +19 / -1 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

How to hide index.php on nginx

Created 8 years ago by milesTutorials3 comments – viewed 60,999 times – ( +4 / -1 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

AutoTimestampBehavior

Created 8 years ago by jonahTutorials1 comment – viewed 14,546 times – ( +2 / -3 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

Eclipse PDT - code-hints, references and other goodies

Created 8 years ago by mindehTutorials2 comments – viewed 31,150 times – ( +14 / -1 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE

How to use Highslide for image popups

Created 8 years ago by mocapapaTutorials0 comments – viewed 20,563 times – ( +1 / -1 ) – version 1.1
You can download the highslide javascript from http://highslide.com/. And here is an explanation on that URL;
tags: image, popups

How to filter data using a dropdown list?

Created 8 years ago by qiangTutorials0 comments – viewed 30,621 times – ( +8 / -1 ) – version 1.1
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

How to automate timestamps in ActiveRecord models

Created 8 years ago by dalipTutorials9 comments – viewed 151,827 times – ( +32 / -1 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

How to log changes of ActiveRecords?

Created 8 years ago by pfthTutorials7 comments – viewed 49,831 times – ( +41 / -3 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

Advanced CTabView using CClipWidget

Created 8 years ago by krillzipTutorials1 comment – viewed 13,148 times – ( +2 / -1 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Q: My yiic tool cannot run model and crud commands. Why?

Created 8 years ago by qiangTutorials1 comment – viewed 9,762 times – ( -1 ) – version 1.1
Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.