Create URL to language switcher anchor with langhandler
This topic is related with langhandler extension
This topic is related with langhandler extension
Sometimes writing views like
To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.
In this wiki I will show how to copy a schema from a database to another one
}
`
V. The Order model would start with:
class Order extends CActiveRecord
{
const STATUS_INITIATED = 1;
const STATUS_CANCELED = 2;
const STATUS_EXPIRED = 3;
const STATUS_PAID = 4;
public $statuses = array(
self::STATUS_INITIATED => 'Initiated',
self::STATUS_CANCELED => 'Canceled',
self::STATUS_EXPIRED => 'Expired',
self::STATUS_PAID => 'Paid',
);
// more cod...
Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...
So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems.
You got your CFormModel, CForm and the actual Form, right?
Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.
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
The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.
Almost all the information you need whilst working with yii is written in the Class Reference.
PHPIDS é conhecido projeto que pode ser visto em php-ids.org.
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)
I'm developing a web project for a company using Yii framework. We are using a git vcs in our development process. We like to use Yii extensions. But only if they are good.
Note: Before reading this wiki you should have read the caching part in the Yii guide
首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.