Wiki

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

Filter / Search with CListView

Created 4 years ago by JohnPollardHow-tos9 comments – viewed 40,092 times – ( +29 ) – 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 3 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 15,902 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

How to use bizRules in standard accessControl filter

Created 3 years ago by Maciej LiżewskiHow-tos8 comments – viewed 13,702 times – ( +3 ) – 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 4 years ago by fsbHow-tos8 comments – viewed 99,306 times – ( +27 / -1 ) – 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.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created about a year ago by skwordenHow-tos8 comments – viewed 66,669 times – ( +24 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

custom sql query results to CDetailView

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 29,954 times – ( +3 ) – 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 4 years ago by vibhaJadwaniHow-tos8 comments – viewed 71,920 times – ( +6 ) – 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 5 years ago by Antonio RamirezHow-tos8 comments – viewed 60,839 times – ( +18 ) – 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

Moving project code outside of webroot (plus multiple project support)

Created 5 years ago by Steve FriedlHow-tos8 comments – viewed 47,634 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

Include Yii framework in a Joomla module

Created 5 years ago by zaccariaHow-tos8 comments – viewed 25,973 times – ( +8 / -2 ) – version 1.1
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.