I am going to show you an effective way to validate the uniqueness of multiple columns.
I am going to show you an effective way to validate the uniqueness of multiple columns.
MailGun.php Class
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.
Then, we write this in the config > main.php:
This behavior enable you to command the RBAC via console. This avoids you to install a entire rbac graphic toolkit to set up some rules in the rbac, maybe you are running inside a ssh console.
The basic idea is to render a grid and, for each row, render a set of radio buttons that asynchronously update their respective model.
In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.
We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
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:
Hey guys, today we will show you how to make a Yii CJuitabs as example. Some feature cases such as Static tabs, render partial tabs, Ajax tabs, color tabs... You can see our code, there are simple 3 steps to make it work.
How to add additional information to a user when using BUM extension?
In your application configuration (protected/config/main.php), set the sourceLanguage parameter to English:
The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.
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 Radio Button List, which has the enum values as options.
This is a rewrite of c@cba in the wiki article of [enumDropdownList](http://www...
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework
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.
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
This article is about implementing authentication to Yii based web services.