Wiki

Sorted by ratingX
Displaying 101-110 of 743 result(s).

Dynamic Sidebar using CClipWidget

Created 4 years ago by SheldmanduHow-tos5 comments – viewed 23,782 times – ( +21 ) – version 1.1
Most applications will have one or two sidebars and often you want to control the content that should appear in the sidebar based on the action. For example you will want to show something different on the homepage as opposed to some view page. While achieving this you generally also want to avoid putting the layout into each view, as that would mean if you wanted to change the layout (e.g. put the sidebar on the left instead of the right or do some funky layout which requires an additional div tag to be added) you'd have to go through every view, which does not achieve good code re-use. It is also bad practice to have lots of if statements in column2 layout just so that you can generate the sidebar correctly.

The complete beginner's study guide for the Yii Framework

Created 2 years ago by Rodrigo CoelhoTips2 comments – viewed 56,242 times – ( +21 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

Using filters with CGridView and CArrayDataProvider

Created 3 years ago by marcovtwoutHow-tos32 comments – viewed 54,043 times – ( +21 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Using cache in CActiveDataProvider

Created 3 years ago by StammTips7 comments – viewed 16,506 times – ( +21 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.

AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

Created about a year ago by drumaddictHow-tos15 comments – viewed 55,268 times – ( +21 ) – version 1.1
AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

The Comedy of Errors

Created 3 years ago by fsbOthers3 comments – viewed 8,160 times – ( +20 ) – version 1.1
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.

Clean JavaScript code in your views

Created about a year ago by nineinchnickTutorials6 comments – viewed 20,392 times – ( +20 ) – version all
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

Using the configuration file, explain what can be configured.

Created 5 years ago by atrandafirTutorials0 comments – viewed 52,633 times – ( +20 ) – version 1.1
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

Implementing cron jobs with Yii

Created 4 years ago by samdarkHow-tos6 comments – viewed 59,472 times – ( +30 / -1 ) – version 1.1
There are two ways to run a cron job:
tags: cron, cli

Simple RBAC

Created 2 years ago by hasanaviTutorials17 comments – viewed 72,591 times – ( +47 / -3 ) – 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.