I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.
I recently built a tarpit for bad bots.
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.
In application development we often have to choose how to mange recurrent values.
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.
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue').
We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options.
The main code was contributed by zaccaria in the forum (see [this post](...
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.
You can find the reason why I wrote this article here.
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.
In addition to the opcode cache, APC can also serve as a user cache for Yii via [CApcCache]. It should be noted that this will make APC's memory needs less predictable.
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:
We can use a CJuiDatePicker for a CGridView inline filter.
class Post extends CActiveRecord {
...
}
`
When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.
This solution requires Yii 1.1.9 or above
When you're finished following this article, you'll have a website that integrates WordPress and Yii routes in under one path. For example, you can setup /widgets and /customers to point to Yii controllers and /about-us, /contact-us, /blog/* and /faq pointing to WordPress pages.