I hadn't specify whole flow as I assume you know yii crud flow well, and Quick understand of my specified admin flow.. :)
I hadn't specify whole flow as I assume you know yii crud flow well, and Quick understand of my specified admin flow.. :)
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.
This is a central location to collect links to "Getting Started" documentation beyond the blog demo and Creating First Yii Application. Please help the community by adding general, introductory links and descriptions to this page.
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted
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.
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
Simple Ajax popup view with Ajax link
I found a better solution.
This is a tutorial for how to auto set model values without any code.
Inspired by it I extended the CButtonColumn class like this:
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 page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.
We will use Symfony 2 components for writing tests for Yii project, it's gonna be fun :).