Wiki

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

Understanding Autoloading, Helper Classes and Helper Functions

Created 5 years ago by Steve FriedlTutorials4 comments – viewed 94,396 times – ( +29 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

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

Created 7 years ago by qiangTutorials10 comments – viewed 74,443 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.

How to add ajax-loading indicators

Created 7 years ago by schmunkTutorials5 comments – viewed 54,707 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 2 years ago by sefburhanTutorials5 comments – viewed 7,539 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 5 years ago by yJeroenTutorials6 comments – viewed 83,244 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.

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

Created 2 years ago by Kartik VTutorials1 comment – viewed 39,585 times – ( +37 / -1 ) – 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 upload a file using a model

Created 7 years ago by qiangTutorials6 comments – viewed 424,427 times – ( +86 / -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 7 years ago by qiangTutorials2 comments – viewed 102,204 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 4 years ago by fsbTutorials16 comments – viewed 90,783 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 6 years ago by qiangTutorials4 comments – viewed 31,717 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.