Wiki

Articles in category "tutorials", sorted by date (updated)X
Displaying 131-140 of 203 result(s).

Collaborative software with git

Updated 2 years ago by Maurizio Domba CerinTutorials0 comments – viewed 5,262 times – ( +9 ) – version 1.1
The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

Exporting CGridView results to CSV file

Updated 2 years ago by RusAlexTutorials9 comments – viewed 25,630 times – ( +6 / -3 ) – version 1.1
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Setting application parameters dynamically in the back-end

Updated 2 years ago by PablovpTutorials6 comments – viewed 25,244 times – ( +11 / -1 ) – version 1.1
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

Multiple file upload handler

Updated 2 years ago by hasanaviTutorials2 comments – viewed 17,634 times – ( +6 ) – version 1.1
Hi,

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

Updated 2 years ago by c@cbaTutorials35 comments – viewed 34,629 times – ( +28 ) – 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)

Updated 2 years ago by c@cbaTutorials10 comments – viewed 23,566 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.

How to add a named scope to ActiveRecords with a behavior

Updated 2 years ago by yiqing95Tutorials2 comments – viewed 13,781 times – ( +4 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

Searching and sorting by related model in CGridView

Updated 2 years ago by redguyTutorials72 comments – viewed 106,937 times – ( +102 ) – version 1.1
Lets say we have two models and relation between them:

How to use Flash, Zend AMF and Yii Framework

Updated 2 years ago by janistoTutorials0 comments – viewed 7,833 times – ( +3 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF

Manage application configuration in different modes

Updated 2 years ago by 张 迪Tutorials5 comments – viewed 27,342 times – ( +15 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.