When to use Active Record is a common question among developers, Yii and overall.
Some PHP installations may use a different
php.ini file for CLI PHP (command line PHP parser). As a result, when running the
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.
Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.
In order to nicely display flash Messages, create view like this called views/site/dialog.php :
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.
The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.
This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.
yiic shell tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.