Wiki

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

Update content in AJAX with renderPartial

Created 8 years ago by BurzumTutorials17 comments – viewed 266,657 times – ( +60 / -1 ) – 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 8 years ago by qiangTutorials8 comments – viewed 50,969 times – ( +58 / -1 ) – 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.

Understanding "Assets"

Created 6 years ago by Steve FriedlTutorials12 comments – viewed 167,194 times – ( +57 / -1 ) – version 1.1
Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

Behaviors & events

Created 8 years ago by pestaaTutorials10 comments – viewed 131,548 times – ( +52 / -1 ) – 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 5 years ago by softarkTutorials22 comments – viewed 122,417 times – ( +46 / -1 ) – 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.

Relational data fields display and edit with the yii2-detail-view extension

Created 3 years ago by Kartik VTutorials2 comments – viewed 43,412 times – ( +40 / -1 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Multi level dropdown menu in Bootstrap

Created 3 years ago by sefburhanTutorials1 comment – viewed 22,910 times – ( +38 / -1 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

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

Created 7 years ago by andy_sTutorials28 comments – viewed 107,875 times – ( +36 / -1 ) – 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.

Add information to Yii::app()->user by extending CWebUser

Created 7 years ago by atrandafirTutorials11 comments – viewed 129,595 times – ( +35 / -1 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Working with CGridView in Admin Panel

Created 5 years ago by vibhaJadwaniTutorials18 comments – viewed 79,372 times – ( +44 / -2 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.