Wiki

Sorted by ratingX
Displaying 81-90 of 599 result(s).

Reading the doc

Created 3 years ago by zaccariaTips0 comments – viewed 6,226 times – ( +21 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

Dynamic Sidebar using CClipWidget

Created 3 years ago by SheldmanduHow-tos5 comments – viewed 20,481 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.

Creating a parameterized LIKE query

Created 2 years ago by Steve FriedlFAQs6 comments – viewed 42,000 times – ( +21 ) – version 1.1
It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column

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

Created 2 years ago by RusAlexHow-tos9 comments – viewed 34,816 times – ( +21 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

The Comedy of Errors

Created 2 years ago by fsbOthers3 comments – viewed 6,766 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.

Using the configuration file, explain what can be configured.

Created 4 years ago by atrandafirTutorials0 comments – viewed 42,187 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.

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created 2 years ago by acorncomHow-tos21 comments – viewed 26,661 times – ( +20 ) – version 1.1
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

Display an AJAX tree from your DB using CTreeView

Created 4 years ago by Fran├žois GannazTutorials9 comments – viewed 42,359 times – ( +20 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

The complete beginner's study guide for the Yii Framework

Created about a year ago by Rodrigo CoelhoTips2 comments – viewed 39,002 times – ( +20 ) – 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.

PHPStorm & NetBeans autocomplete problem

Created about a year ago by StagelineTips1 comment – viewed 6,667 times – ( +20 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.