Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 11-20 of 203 result(s).

Update content in AJAX with renderPartial

Created 4 years ago by BurzumTutorials15 comments – viewed 150,460 times – ( +56 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

Use shortcut functions to reduce typing

Created 4 years ago by qiangTutorials8 comments – viewed 36,486 times – ( +53 ) – 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.

Behaviors & events

Created 4 years ago by pestaaTutorials9 comments – viewed 76,492 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.

CGridView, CListView and CActiveDataProvider

Created about a year ago by softarkTutorials21 comments – viewed 66,165 times – ( +45 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Creating a dependent dropdown

Created 5 years ago by dalipTutorials36 comments – viewed 215,253 times – ( +103 / -3 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

Multi level dropdown menu in Bootstrap

Created 2 months ago by sefburhanTutorials0 comments – viewed 4,794 times – ( +36 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

CSS Naming Conventions

Created 3 years ago by qiangTutorials4 comments – viewed 25,517 times – ( +35 ) – version 1.1
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

Extension Development (beginner)

Created 2 months ago by sefburhanTutorials2 comments – viewed 10,157 times – ( +33 ) – version 1.1
To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

Tags manipulation using Select2 in single field

Created 2 months ago by sefburhanTutorials0 comments – viewed 1,836 times – ( +33 ) – version 1.1
Sometime its very important to perform many actions/operation with limited time frame for friendly use, select2 provides a lot of such functionality , I just extend it tags functionality to provide a quick use for developer to save time, as I spent much time on it.

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Created 4 years ago by andy_sTutorials22 comments – viewed 66,809 times – ( +31 ) – version 1.1
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.