Wiki

Sorted by ratingX
Displaying 391-400 of 772 result(s).

Yet another implementation of CPhpAuthManager.

Created 3 years ago by seenivasanHow-tos3 comments – viewed 11,052 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

How to write a simple application component

Created 5 years ago by zaccariaHow-tos5 comments – viewed 52,395 times – ( +20 / -7 ) – version 1.1
An application component is a confortable way for share information among all component of the application

Update two models with one view

Created 4 years ago by sensorarioTips11 comments – viewed 38,602 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

Add Beautiful Radio/Checkbox Buttons To Grid

Created 2 years ago by waterloomattHow-tos1 comment – viewed 21,783 times – ( +10 / -2 ) – version 1.1
This is a tutorial on how to create slick looking status buttons to update a model's status via a grid. Note** This tutorial uses Yii Bootstrap for styling.

Date Picker by examples

Created 2 years ago by InterboyHow-tos6 comments – viewed 83,778 times – ( +10 / -2 ) – version 1.1
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

Simple Mail Queue

Created 3 years ago by waterloomattTutorials3 comments – viewed 14,477 times – ( +10 / -2 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

get summary of related model via STAT relation

Created 2 years ago by rootbearHow-tos2 comments – viewed 14,220 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 3 years ago by BoazHow-tos2 comments – viewed 12,674 times – ( +7 / -1 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Yii registry, how to use it, does it exist at all?

Created 4 years ago by dckurushinHow-tos2 comments – viewed 23,082 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...

Installing Yii Users and Rights to Newly Created Yii app

Created 3 years ago by Rajith RTutorials27 comments – viewed 80,707 times – ( +23 / -10 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.