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

Understanding Autoloading, Helper Classes and Helper Functions

Created 5 years ago by Steve FriedlTutorials4 comments – viewed 95,867 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 75,244 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 55,464 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 3 years ago by sefburhanTutorials5 comments – viewed 7,764 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 84,345 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 42,322 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 8 years ago by qiangTutorials6 comments – viewed 429,025 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 103,397 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 92,468 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 32,010 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.