Wiki

Sorted by ratingX
Displaying 151-160 of 675 result(s).

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 2 years ago by c@cbaHow-tos2 comments – viewed 22,176 times – ( +14 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

Module based login

Created 3 years ago by suriyansureshTutorials6 comments – viewed 45,029 times – ( +14 ) – version 1.1
If you want to add module based login to a site without using RBAC, please follow these guidelines.

YiiBackboneBoilerplate - Project Setup for your Yii+BackboneJS applications

Created about a year ago by Antonio RamirezOthers5 comments – viewed 17,387 times – ( +14 ) – version 1.1
YiiBackboneBoilerplate
tags: directory, config

Real Time Logging

Created 3 years ago by lucifuriousTips3 comments – viewed 18,092 times – ( +14 ) – version 1.1
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.

Create custom button button with AJAX function in CGridView

Created about a year ago by nkdHow-tos1 comment – viewed 30,662 times – ( +14 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Using Bootstrap with LESS

Created about a year ago by Chris83How-tos1 comment – viewed 31,743 times – ( +14 ) – version 1.1
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular bootstrap extension. Now that the extension is quite widely used in the community I felt that it was time to write about how to use Bootstrap to its full potential. If you use the Bootstrap CSS files you're really missing out on some great features. After reading this article you'll be able to take full advantage of Bootstrap using LESS.

Integrating HybridAuth directly into Yii without an extension

Created about a year ago by biz devHow-tos6 comments – viewed 21,617 times – ( +14 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

How to ensure unicity to url

Created 2 years ago by zaccariaTips3 comments – viewed 10,290 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

Customizing Yii's formatting rules (extending CFormatter)

Created 2 years ago by HaenselTips0 comments – viewed 12,480 times – ( +14 ) – version 1.1
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.

Kickstart development with Yii-App

Created about a year ago by Chris83How-tos24 comments – viewed 21,415 times – ( +21 / -1 ) – version 1.1
I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.