Wiki

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

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 5 years ago by mindplayTutorials3 comments – viewed 21,401 times – ( +7 ) – 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 3 years ago by c@cbaTutorials3 comments – viewed 46,329 times – ( +28 / -1 ) – 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 5 years ago by Y!!Tutorials3 comments – viewed 16,643 times – ( +8 / -5 ) – 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 4 years ago by CoLTTutorials3 comments – viewed 22,465 times – ( +7 ) – 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

List with multiple checkbox

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

Working with radiobutton list

Created 2 years ago by vibhaJadwaniTutorials3 comments – viewed 40,871 times – ( +10 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

default csrf security and ajax post in one controller

Created about a year ago by jasonbanTutorials3 comments – viewed 7,131 times – ( +1 / -2 ) – version 1.1
Hello Yii friends

Auto set model fields values

Created 2 years ago by vibhaJadwaniTutorials3 comments – viewed 16,212 times – ( +9 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

How to create nice modal login widget with a CJuiDialog

Created 4 years ago by Igor IvanovicTutorials3 comments – viewed 46,066 times – ( +9 / -1 ) – version 1.1
...folder /protected/components/UserLoginWidget.php... ...extending the CWidget class...
tags: user, login, modal, widget

Handling tabular data loading and validation in Yii 2

Created about a year ago by Kartik VTutorials3 comments – viewed 11,239 times – ( +41 / -5 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.