Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 121-130 of 254 result(s).

How to setup yiic on WAMP (XP/Vista)

Created 8 years ago by krillzipTutorials3 comments – viewed 79,102 times – ( +3 / -1 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

How to hide index.php on nginx

Created 8 years ago by milesTutorials3 comments – viewed 59,168 times – ( +4 / -1 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

How to access a component of a module from within the module itself

Created 8 years ago by OriginalCopyTutorials3 comments – viewed 38,490 times – ( +5 / -2 ) – version 1.1
The Yii documentation states:
tags: module

How to create/save more Model inputs and make them repeatable with jQuery

Created 8 years ago by qiangTutorials3 comments – viewed 40,229 times – ( +12 / -1 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

Active Record snapshotting (Model data base history)

Created 2 years ago by BizleyTutorials3 comments – viewed 7,057 times – ( +2 / -1 ) – version 1.1
One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

Encapsulate db and module configurations

Created 7 years ago by ricardogranaTutorials3 comments – viewed 12,999 times – ( +7 / -1 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 7 years ago by mindplayTutorials3 comments – viewed 26,924 times – ( +7 / -1 ) – version 1.1
During development, it's often very handy to have SQL logging and profiling.
tags: Logging

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

Created 5 years ago by c@cbaTutorials3 comments – viewed 63,103 times – ( +28 / -2 ) – version 1.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...

Performance - A Guide For Best Practice

Created 7 years ago by Y!!Tutorials3 comments – viewed 19,489 times – ( +8 / -6 ) – version 1.1
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.
tags: performance

Add charts / print buttons to your webapp

Created 7 years ago by CoLTTutorials3 comments – viewed 26,365 times – ( +7 / -1 ) – version 1.1
In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.
tags: chart, print, flash, excel, csv, pdf, xls