Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 71-80 of 172 result(s).

Setting application parameters dynamically in the back-end

Created about a year ago by PablovpTutorials4 comments – viewed 16,841 times – ( +10 / -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.

To configure Yii path in Windows platform

Created 2 years ago by CodaTutorials2 comments – viewed 16,720 times – ( +1 / -6 )
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 8 months ago by yJeroenTutorials8 comments – viewed 16,534 times – ( +11 )
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created about a year ago by c@cbaTutorials0 comments – viewed 16,305 times – ( +20 / -1 )
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

I18n subdomains and url-rules

Created 3 years ago by Y!!Tutorials5 comments – viewed 15,767 times – ( +7 )
This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)
tags: i18n, URL

Exporting CGridView results to CSV file

Created about a year ago by RusAlexTutorials8 comments – viewed 15,723 times – ( +6 / -2 )
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

Front-end developer's guide

Created about a year ago by jonahTutorials5 comments – viewed 15,466 times – ( +10 )
This wiki is a work in progress.

Use crypt() for password storage

Created 5 months ago by fsbTutorials11 comments – viewed 15,460 times – ( +16 )
There Is Now A cpasswordhelper Class In system.utils at GitHub that provides an API to simplify the use of crypt() for password storage. While this wiki article remains valid, it will in due course be rewritten to refer to the new class as well as explain how it works.

config Use MS SQL SERVER 2005 2008.

Created 2 years ago by vcxz_1982Tutorials1 comment – viewed 15,392 times – ( +4 )
Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

List with multiple checkbox

Created 2 years ago by matkazTutorials3 comments – viewed 15,090 times – ( +4 )
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted