Wiki

Sorted by viewsX
Displaying 421-430 of 598 result(s).

How to: use github for download yii, create new app, and store our modules or extensions.

Created about a year ago by sensorarioHow-tos1 comment – viewed 7,566 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

Understanding series articles

Created 2 years ago by GOshaTips0 comments – viewed 7,498 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Upload image and content using AJAX and Store it in different table

Created 2 months ago by SelvakumarHow-tos0 comments – viewed 7,374 times – ( +2 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

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

Created 9 months ago by Gerhard LiebenbergHow-tos0 comments – viewed 7,224 times – ( +3 / -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.

CButtonColumn and Font Awesome icons

Created 8 months ago by DerekCTips3 comments – viewed 7,219 times – ( +4 )
I was looking for a way to use Font Awsome icons instead of the default images in a CGridView -> CButtonColumn. Perhaps this will be useful to someone.

YII SaaS Multi Tenant application with single database

Created 10 months ago by Rajith RTutorials3 comments – viewed 7,175 times – ( +7 / -3 )
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

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

Created 9 months ago by KonApazHow-tos4 comments – viewed 7,054 times – ( +4 / -2 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Log Activity in DataBase

Created 9 months ago by mahdi1986Tutorials6 comments – viewed 7,049 times – ( +7 )
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

Using CListView to display items next to each other (in columns)

Created 11 months ago by thyseusTips3 comments – viewed 7,042 times – ( +8 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Yet another implementation of CPhpAuthManager.

Created about a year ago by seenivasanHow-tos3 comments – viewed 7,010 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.