Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 41-50 of 229 result(s).

How to learn Yii?!

Created 2 years ago by yJeroenTutorials9 comments – viewed 60,533 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.

Relational Query - Lazy Loading and Eager Loading / with and together

Created about a year ago by softarkTutorials9 comments – viewed 15,178 times – ( +13 ) – version 1.1
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's important to note that you should distinguish 2 different modes in the Eager Loading in Yii 1.1.x.

Behaviors & events

Created 4 years ago by pestaaTutorials9 comments – viewed 83,705 times – ( +49 ) – version 1.1
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

Exporting CGridView results to CSV file

Created 2 years ago by RusAlexTutorials9 comments – viewed 28,194 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

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 4 years ago by thyseusTutorials9 comments – viewed 38,927 times – ( +15 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Events explained

Created 2 years ago by pligorTutorials9 comments – viewed 23,166 times – ( +22 / -3 ) – version 1.1
Let's see what exactly are the events in Yii!

Ajax form submiting in Yii

Created about a year ago by sirin kTutorials9 comments – viewed 75,446 times – ( +11 / -4 ) – version 1.1
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

How to automate timestamps in ActiveRecord models

Created 5 years ago by dalipTutorials8 comments – viewed 96,670 times – ( +29 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Use shortcut functions to reduce typing

Created 5 years ago by qiangTutorials8 comments – viewed 38,752 times – ( +54 ) – version 1.1
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.

Custom Number Formatting or Decimal Separators and i18n

Created about a year ago by c@cbaTutorials8 comments – viewed 28,556 times – ( +6 ) – version 1.1
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...