Wiki

Articles in category "tutorials"X
Displaying 131-140 of 254 result(s).

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 5 years ago by c@cbaTutorials37 comments – viewed 59,831 times – ( +32 / -1 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 5 years ago by c@cbaTutorials10 comments – viewed 36,973 times – ( +15 / -1 ) – version 1.1
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Front-end developer's guide

Created 5 years ago by jonahTutorials5 comments – viewed 28,116 times – ( +11 / -1 ) – version 1.1
This wiki is a work in progress.

Secure password hash storage and a Yii helper extension

Created 5 years ago by fsbTutorials5 comments – viewed 31,526 times – ( +15 / -1 ) – version 1.1
Obsolete

Searching and sorting by related model in CGridView

Created 5 years ago by Maciej LiżewskiTutorials86 comments – viewed 198,744 times – ( +126 / -1 ) – version 1.1
Lets say we have two models and relation between them:

How to use Flash, Zend AMF and Yii Framework

Created 5 years ago by janistoTutorials0 comments – viewed 11,698 times – ( +3 / -1 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF

How to learn Yii?!

Created 5 years ago by yJeroenTutorials6 comments – viewed 86,772 times – ( +25 / -1 ) – version all
Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

Understanding Scenarios

Created 5 years ago by Luke JurgsTutorials12 comments – viewed 130,793 times – ( +31 / -1 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Autocomplete in console command

Created 5 years ago by StammTutorials1 comment – viewed 10,181 times – ( +3 / -1 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

Functional Testing in Yii using Goutte and PHPUnit

Created 5 years ago by puteraTutorials2 comments – viewed 22,670 times – ( +7 / -1 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit