Wiki

Sorted by viewsX
Displaying 531-540 of 785 result(s).

Getting nulls from database instead of empty strings

Created 5 years ago by samdarkTips2 comments – viewed 11,754 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Yet another implementation of CPhpAuthManager.

Created 3 years ago by seenivasanHow-tos3 comments – viewed 11,750 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.

Rendering a view file in a console application

Created 5 years ago by TompiHow-tos1 comment – viewed 11,714 times – ( +4 / -2 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

CGridView customized CCheckBoxColumn

Created 2 years ago by chandranTips2 comments – viewed 11,706 times – ( +5 ) – version 1.1
Hi friends,

Yii code completion and calltips in Komodo Edit

Created 6 years ago by viterTips1 comment – viewed 11,684 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Automatic Parameter Binding to POST vars in Yii2

Created 3 years ago by aarondfrancisHow-tos2 comments – viewed 11,645 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

Building Page Specific Menus using CMenu

Created 3 years ago by mistrybHow-tos1 comment – viewed 11,550 times – version 1.1
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu

Debuging variables in Yii2

Created about a year ago by johonunuTips3 comments – viewed 11,550 times – ( +2 / -1 ) – version 2.0
This tutorial is explained following "basic" application structure.

Upload Files to Rackspace Cloud Files CDN

Created 3 years ago by StephenMiracleTutorials0 comments – viewed 11,506 times – ( +2 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

Publish yii webapp using Git push

Created 4 years ago by rootbearHow-tos6 comments – viewed 11,451 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git