Wiki

Sorted by commentsX
Displaying 581-590 of 777 result(s).

Custom Login Error Messages

Created 3 years ago by whoopassTutorials1 comment – viewed 35,031 times – ( +11 ) – version 1.1
The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the Yii Blog Tutorial provides a how to in connecting that login authentication method to a database so you can run your logins against the registered users. Talk about sweet deal.

Open Dialog from ajax content

Created 3 years ago by TouzasHow-tos1 comment – viewed 15,750 times – ( +4 / -1 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

View a related field in CGridView

Created 2 years ago by rafaelt88Tips1 comment – viewed 9,652 times – ( +6 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

using jqbargraph to create beautiful graphs

Created 3 years ago by MAHESH.E.UTips1 comment – viewed 7,914 times – ( +5 ) – version 1.1
If you are about to create a graph, the best option i would suggest is the jqbargraph.

CjuiDatepicker

Created 3 years ago by hiral darjiTips1 comment – viewed 7,358 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

Implementing a Flat User Access System

Created 3 years ago by TrejderHow-tos1 comment – viewed 10,348 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

How to create the custom Drop-down using CHtml::dropDownList

Created 2 years ago by Ankit ModiHow-tos1 comment – viewed 14,152 times – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

How to change Migration Table name and use defined prefix.

Created 3 years ago by JorgeeHow-tos1 comment – viewed 9,664 times – ( +3 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 2 years ago by le_topTips1 comment – viewed 4,838 times – ( +1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

How to use a component before every action of a controller

Created 3 years ago by transistorTips1 comment – viewed 31,159 times – ( +3 / -1 ) – version 1.1
I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.