Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.
Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :
I am going to show you an effective way to validate the uniqueness of multiple columns.
Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.
Then, we write this in the config > main.php:
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
What I want to achieve:
While 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.
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.
Introduction
Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL...
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?
Suppose you have an Application in Yii that manages hotels each one has many customers.
The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;