Wiki

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

Creating Yii applications with composer

Created 4 years ago by schmunkTutorials2 comments – viewed 81,192 times – ( +31 / -1 ) – version 1.1
Creating Yii applications with composer

Understanding Autoloading, Helper Classes and Helper Functions

Created 6 years ago by Steve FriedlTutorials4 comments – viewed 99,056 times – ( +29 / -1 ) – 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.

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

Created 3 years ago by Kartik VTutorials1 comment – viewed 47,723 times – ( +37 / -2 ) – 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.

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

Created 8 years ago by qiangTutorials10 comments – viewed 76,872 times – ( +28 / -1 ) – 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.

Simple RBAC

Created 5 years ago by hasanaviTutorials17 comments – viewed 90,789 times – ( +50 / -4 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

CSS Naming Conventions

Created 6 years ago by qiangTutorials4 comments – viewed 32,602 times – ( +35 / -2 ) – 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.

How to add ajax-loading indicators

Created 7 years ago by schmunkTutorials5 comments – viewed 56,753 times – ( +27 / -1 ) – 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 8,229 times – ( +27 / -1 ) – 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

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 3 years ago by Kartik VTutorials25 comments – viewed 149,984 times – ( +56 / -5 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

How to log changes of ActiveRecords?

Created 8 years ago by pfthTutorials7 comments – viewed 48,237 times – ( +41 / -3 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging