Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 101-110 of 242 result(s).

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

Created 2 years ago by softarkTutorials10 comments – viewed 26,461 times – ( +15 ) – 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.

How to filter data using a dropdown list?

Created 6 years ago by qiangTutorials0 comments – viewed 26,205 times – ( +8 ) – version 1.1
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

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

Created 6 years ago by OriginalCopyTutorials3 comments – viewed 25,891 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module

RBAC Super Simple with Admin and User

Created 9 months ago by evercodeTutorials9 comments – viewed 25,585 times – ( +10 / -3 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

Serve jQuery and jQuery-UI from Google's CDN

Created 3 years ago by YetiTutorials15 comments – viewed 25,269 times – ( +14 / -1 ) – version 1.1
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 3 years ago by bluezedTutorials5 comments – viewed 24,951 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

I18n subdomains and url-rules

Created 5 years ago by Y!!Tutorials6 comments – viewed 24,884 times – ( +7 ) – version 1.1
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

Front-end developer's guide

Created 3 years ago by jonahTutorials5 comments – viewed 23,642 times – ( +11 ) – version 1.1
This wiki is a work in progress.

Tabular Input, Validating and Saving related models

Created 2 years ago by Xavier JohnTutorials4 comments – viewed 23,614 times – ( +8 ) – version 1.1
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

How to display static pages in Yii with database content?

Created 2 years ago by yasenTutorials6 comments – viewed 23,613 times – ( +11 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take: