Wiki

Sorted by viewsX
Displaying 391-400 of 726 result(s).

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

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

Using events with CAction classes

Created 3 years ago by Antonio RamirezTips0 comments – viewed 11,524 times – ( +9 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

A Multi-Tenant Strategy using Yii and MySQL

Created about a year ago by JFReyesHow-tos8 comments – viewed 11,488 times – ( +9 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

YouTube API v2.0 – Browser-based Uploading

Created 2 years ago by VaibhavHow-tos1 comment – viewed 11,445 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.

How to implement an event and attach it in a behavior

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

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

Created about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 11,359 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.

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

Created 2 years ago by kiran sharmaHow-tos1 comment – viewed 11,349 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

CJuiTabs Content

Created 2 years ago by mbalaTips2 comments – viewed 11,294 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Log Activity in DataBase

Created about a year ago by mahdi1986Tutorials6 comments – viewed 11,266 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

Managing constants easily

Created 3 years ago by briiC.lvTips4 comments – viewed 11,236 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.