Wiki

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

Understanding "Assets"

Created 5 years ago by Steve FriedlTutorials12 comments – viewed 151,503 times – ( +57 ) – 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.

Understanding Virtual Attributes and get/set methods

Created 5 years ago by Steve FriedlTutorials20 comments – viewed 133,714 times – ( +79 / -1 ) – version 1.1
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Behaviors & events

Created 7 years ago by pestaaTutorials10 comments – viewed 121,773 times – ( +52 ) – 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.

Creating a dependent dropdown

Created 7 years ago by dalipTutorials53 comments – viewed 314,005 times – ( +111 / -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.

CGridView, CListView and CActiveDataProvider

Created 3 years ago by softarkTutorials22 comments – viewed 112,225 times – ( +46 ) – 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 2 years ago by Kartik VTutorials2 comments – viewed 31,463 times – ( +39 ) – 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 2 years ago by sefburhanTutorials1 comment – viewed 19,152 times – ( +38 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

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

Created 6 years ago by atrandafirTutorials11 comments – viewed 123,019 times – ( +35 ) – 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.

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

Created 6 years ago by andy_sTutorials27 comments – viewed 101,613 times – ( +35 ) – 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.

XUpload Workflow

Created 4 years ago by AsgarothTutorials33 comments – viewed 68,524 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget