Wiki

Articles in category "tutorials"X
Displaying 81-90 of 203 result(s).

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

Created 2 years ago by c@cbaTutorials10 comments – viewed 23,706 times – ( +14 ) – 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 2 years ago by jonahTutorials5 comments – viewed 19,936 times – ( +11 ) – version 1.1
This wiki is a work in progress.

Secure password hash storage and a Yii helper extension

Created 2 years ago by fsbTutorials5 comments – viewed 25,556 times – ( +15 ) – version 1.1
Obsolete

Searching and sorting by related model in CGridView

Created 2 years ago by redguyTutorials72 comments – viewed 107,664 times – ( +104 ) – version 1.1
Lets say we have two models and relation between them:

How to use Flash, Zend AMF and Yii Framework

Created 2 years ago by janistoTutorials0 comments – viewed 7,857 times – ( +3 ) – 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 2 years ago by yJeroenTutorials9 comments – viewed 55,607 times – ( +19 ) – version 1.1
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 2 years ago by Luke JurgsTutorials11 comments – viewed 65,376 times – ( +25 ) – 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 2 years ago by StammTutorials1 comment – viewed 6,623 times – ( +3 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

Functional Testing in Yii using Goutte and PHPUnit

Created 2 years ago by puteraTutorials2 comments – viewed 14,979 times – ( +7 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

TDD with PHPUnit_Story and Yii

Created 2 years ago by sidewinderTutorials1 comment – viewed 12,750 times – ( +7 ) – version 1.1
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to elvan for pointing me to the relevant comment. As an alternative Behat has been suggested but it seems too bloated for me TBH. There is also PHPSpec but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.