Background task with Ajax
This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.
This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:
In order to nicely display flash Messages, create view like this called views/site/dialog.php :
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.
Hello Yii friends
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.
Once you are completed with the "Creating First Yii Application", the following can be done.
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.
We will use Symfony 2 components for writing tests for Yii project, it's gonna be fun :).
login links will be
CSRF is the acronymn for Cross-site request forgery.
It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.
First, you have to have create database table for default language and allowed languages.
CREATE TABLE IF NOT EXISTS `tbl_languages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`lang` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`flagpath` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_...
This is a tutorial for how to auto set model values without any code.
This tutorial assumes some basic knowledge of Yii and a functional development environment.
View file
The basic idea is to create a complete mail message and store it a Db table along with all info necessary for sending valid emails (to_email, from_email, from_name, subject etc.)