Wiki

Sorted by commentsX
Displaying 301-310 of 482 result(s).

A simple way to get Yii client-side form validation run when submitting by ajax

Created 3 months ago by nlacTutorials2 comments – viewed 4,886 times – ( +5 )
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

ISA hierarchy of tables inside a database and how to implement a single form

Created about a year ago by pligorHow-tos2 comments – viewed 5,965 times – ( +1 )
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

adding class and links to Ctreeview node

Created about a year ago by bingjie2680Tips2 comments – viewed 7,785 times – ( +4 )
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

YiiBooster: How to implement files and images upload on TbRedactor Widget

Created 2 months ago by Antonio RamirezHow-tos2 comments – viewed 5,885 times – ( +11 )
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.

Yet another implementation of CPhpAuthManager.

Created 2 months ago by seenivasanHow-tos2 comments – viewed 3,328 times – ( +5 )
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.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created about a year ago by Antonio RamirezTutorials2 comments – viewed 10,433 times – ( +11 / -1 )
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

Implementing a WebDAV server using SabreDAV

Created about a month ago by nineinchnickTutorials2 comments – viewed 1,798 times – ( +5 )
This article will show you how to easily implement a WebDAV server in your project using SabreDAV.

How to Setting Layouts in Yii

Created about a month ago by ruderbytesHow-tos2 comments – viewed 5,145 times – ( +2 / -3 )
usually someone confused to make layouts in yii.

Yii registry, how to use it, does it exist at all?

Created about a year ago by dckurushinHow-tos2 comments – viewed 11,800 times – ( +7 )
From time to time people ask about registry...

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 17 days ago by Maug LeeHow-tos2 comments – viewed 1,566 times – ( +1 )
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.