Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 51-60 of 355 result(s).

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 4 years ago by br0skHow-tos9 comments – viewed 41,653 times – ( +3 / -1 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 3 years ago by ThePr0f3550rHow-tos9 comments – viewed 92,166 times – ( +16 / -2 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 6 years ago by RusAlexHow-tos9 comments – viewed 57,455 times – ( +22 / -1 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Filter / Search with CListView

Created 6 years ago by JohnPollardHow-tos9 comments – viewed 44,216 times – ( +30 / -1 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Generate a multi-lever array sub-category for a menu

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 18,195 times – ( +10 / -1 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

How to use bizRules in standard accessControl filter

Created 4 years ago by Maciej LiżewskiHow-tos8 comments – viewed 15,462 times – ( +3 / -1 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Accessing data in a join table with the related models

Created 5 years ago by fsbHow-tos8 comments – viewed 115,063 times – ( +28 / -2 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

custom sql query results to CDetailView

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 33,946 times – ( +3 / -1 ) – version 1.1
This is a bried guide about displaying of custom sql query results.

How to create front and admin side login form

Created 5 years ago by vibhaJadwaniHow-tos8 comments – viewed 80,503 times – ( +6 / -1 ) – version 1.1
In this WIKI you can learn how to create front and admin login form, using database.

How to log and debug variables using CWebLogRoute

Created 6 years ago by Antonio RamirezHow-tos8 comments – viewed 66,145 times – ( +18 / -1 ) – version 1.1
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging