Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 191-200 of 297 result(s).

Instanciar clase hija basada en campo de modelo padre (CActiveRecord)

Updated about a year ago by robregonmHow-tos0 comments – viewed 4,760 times – ( +2 ) – version 1.1
[EN] [ES]

Instantiate a child class that depends a type field from parent model class (CActiveRecord)

Updated about a year ago by robregonmHow-tos2 comments – viewed 6,077 times – ( +3 / -1 ) – version 1.1
[EN] [ES]

pass variables or content block from view file to layout file

Updated about a year ago by Maurizio Domba CerinHow-tos0 comments – viewed 12,191 times – ( +2 ) – version 1.1
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

Create custom button button with AJAX function in CGridView

Updated about a year ago by nkdHow-tos1 comment – viewed 30,789 times – ( +14 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Integrating Wordpress and Yii,Working Out The Details.

Updated about a year ago by drumaddictHow-tos4 comments – viewed 14,643 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress

Install, update and use Yii with WAMP server

Updated about a year ago by mrsHow-tos5 comments – viewed 25,930 times – ( +5 / -1 ) – version 1.1
Here I am describing how you can install and update Yii in WAMP sever.

URL management for Websites with secure and nonsecure pages

Updated about a year ago by qiangHow-tos10 comments – viewed 17,673 times – ( +23 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Hyphenation of routes in URL management

Updated about a year ago by qiangHow-tos6 comments – viewed 13,004 times – ( +17 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Serial Numbers (item counts) in GridView

Updated about a year ago by Maurizio Domba CerinHow-tos3 comments – viewed 6,268 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

A simple go back button widget

Updated about a year ago by bennounaHow-tos7 comments – viewed 13,534 times – ( +8 / -3 ) – version 1.1
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).