[EN] [ES]
Here is a way to dynamically extend tabs based on clips.
Probably even more complex things could be done.
ChromePHP is a console logging extension for Google Chrome.
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:
Assume that you have teachers and students model.
I am going to show you an effective way to validate the uniqueness of multiple columns.
In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".
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.
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 describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.
This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.
How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.
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.
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...
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;