Wiki

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

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 2 years ago by robregonmHow-tos2 comments – viewed 12,079 times – ( +11 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

CGridView customized CCheckBoxColumn

Created 3 years ago by chandranTips2 comments – viewed 12,055 times – ( +5 ) – version 1.1
Hi friends,

Load data from internal/external source to fill form fields

Created about a year ago by skwordenHow-tos4 comments – viewed 12,034 times – ( +1 ) – version 2.0
This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

Moving the vendor directory for multiple projects

Created 2 years ago by mariosimaremareHow-tos2 comments – viewed 12,024 times – ( +5 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

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

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

Automatic Parameter Binding to POST vars in Yii2

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

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 3 years ago by kalpitHow-tos2 comments – viewed 12,004 times – ( +2 / -2 ) – version 1.1
Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...
tags: views, tutorial

Yet another implementation of CPhpAuthManager.

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

Getting nulls from database instead of empty strings

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

Yii code completion and calltips in Komodo Edit

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