implementing some features of yii user and rights.
implementing some features of yii user and rights.
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?
In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) .
But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
This article is about implementing authentication to Yii based web services.
In this WIKI you can learn how to create front and admin login form, using database.
Sometimes you want to render a view in Fancybox.
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.
change your index.php
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.
You can find the reason why I wrote this article here.