Wiki

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

Filter / Search with CListView

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

How to use bizRules in standard accessControl filter

Created 2 years ago by Maciej LiżewskiHow-tos8 comments – viewed 13,580 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 98,151 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.

custom sql query results to CDetailView

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 29,539 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 3 years ago by vibhaJadwaniHow-tos8 comments – viewed 71,074 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,434 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,332 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,835 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.

Using phpseclib with Yii

Created 3 years ago by nkdHow-tos8 comments – viewed 9,014 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security