Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 161-170 of 322 result(s).

Create a custom menu using CMenu data-items (flat or tree structure)

Created about a year ago by KonApazHow-tos0 comments – viewed 11,654 times – ( +4 )
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

Extending an ActiveRecord model

Created about a year ago by BogseyHow-tos3 comments – viewed 11,654 times – ( +2 / -3 ) – version 1.1
Introduction

Generate a multi-lever array sub-category for a menu

Created about a year ago by KonApazHow-tos8 comments – viewed 11,614 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

How to hide `index` action from URL

Created 2 years ago by rootbearHow-tos2 comments – viewed 11,484 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

YouTube API v2.0 – Browser-based Uploading

Created 2 years ago by VaibhavHow-tos1 comment – viewed 11,206 times – ( +6 ) – version 1.1
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

"safe" and "unsafe" Model validators (massive assignments)

Created about a year ago by KonApazHow-tos4 comments – viewed 11,095 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

How to implement an event and attach it in a behavior

Created about a year ago by seb7How-tos0 comments – viewed 11,026 times – ( +6 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

Create sitemap.xml file dynamically on root folder with one hit

Created 2 years ago by kiran sharmaHow-tos1 comment – viewed 11,004 times – ( +5 / -5 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 10,980 times – ( +4 / -1 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

Using SQLite and CDbMessageSource as a module

Created 2 years ago by pheadeauxHow-tos5 comments – viewed 10,870 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.