Wiki

Sorted by viewsX
Displaying 511-520 of 777 result(s).

Display image on CGridView column and open a fancy-box

Created 3 years ago by Ankit ModiTutorials0 comments – viewed 11,571 times – ( +1 / -1 )
1) Add a fancy-box extension on admin page

CRUD operation in Yii framework

Created 2 years ago by Mohammad FareedTutorials4 comments – viewed 11,487 times – ( +1 / -6 ) – version all
Simple Yii Script for performing CRUD operations:

Yii code completion and calltips in Komodo Edit

Created 5 years ago by viterTips1 comment – viewed 11,436 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

Yii 1.1: How To add id or class to CMenu items ?

Created 2 years ago by Louis GacHow-tos0 comments – viewed 11,414 times – ( +2 ) – version 1.1
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 3 years ago by Ankit ModiTutorials2 comments – viewed 11,413 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

Bootstrap Yii cGridView add popup button

Created 2 years ago by Arockia JohnsonHow-tos6 comments – viewed 11,371 times – ( +4 ) – version 1.1
Hi,

Getting nulls from database instead of empty strings

Created 5 years ago by samdarkTips2 comments – viewed 11,306 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

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created about a year ago by Scott_HuangTips0 comments – viewed 11,304 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

How to customize error handling in console-mode applications

Created 5 years ago by Steve FriedlHow-tos1 comment – viewed 11,220 times – ( +3 ) – version 1.1
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

Yet another implementation of CPhpAuthManager.

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