Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 31-40 of 236 result(s).

How to add more information to Yii::app()->user

Created 5 years ago by qiangTutorials2 comments – viewed 124,533 times – ( +28 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.

Organize directories for applications with front-end and back-end

Created 5 years ago by qiangTutorials10 comments – viewed 63,550 times – ( +28 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 7 months ago by Kartik VTutorials0 comments – viewed 6,219 times – ( +28 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

How to add ajax-loading indicators

Created 5 years ago by schmunkTutorials5 comments – viewed 43,668 times – ( +27 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Saving CGridView filter

Created 10 months ago by sefburhanTutorials5 comments – viewed 4,715 times – ( +27 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

How to learn Yii?!

Created 3 years ago by yJeroenTutorials8 comments – viewed 66,713 times – ( +25 ) – version all
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.

How to upload a file using a model

Created 5 years ago by qiangTutorials27 comments – viewed 333,537 times – ( +84 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

How to implement multiple page layouts in an application

Created 5 years ago by qiangTutorials2 comments – viewed 83,471 times – ( +24 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

Use crypt() for password storage

Created 2 years ago by fsbTutorials16 comments – viewed 62,754 times – ( +24 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

CSS Naming Conventions

Created 4 years ago by qiangTutorials4 comments – viewed 27,669 times – ( +35 / -1 ) – 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.