Wiki

Sorted by date (updated)X
Displaying 541-550 of 749 result(s).

Custom Autocomplete Display and Value Submission

Updated 2 years ago by SebKHow-tos5 comments – viewed 36,999 times – ( +14 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Adding Bash Command Completion for Yii Commands

Updated 2 years ago by Dustin OpreaHow-tos0 comments – viewed 7,514 times – ( +3 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Deploy yii on pagoda box

Updated 2 years ago by francis jaTutorials0 comments – viewed 6,942 times – ( +4 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Updated 3 years ago by pckabeerHow-tos1 comment – viewed 15,217 times – ( +7 ) – 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 Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Display an AJAX tree from your DB using CTreeView

Updated 3 years ago by François GannazTutorials10 comments – viewed 50,249 times – ( +21 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

Use phing to make Yii application "installable"

Updated 3 years ago by Maurizio Domba CerinHow-tos3 comments – viewed 7,884 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

How to log context information to logger (session id, user, ...)

Updated 3 years ago by ajsharmaTutorials0 comments – viewed 13,511 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

Update two models with one view

Updated 3 years ago by SebKTips11 comments – viewed 34,737 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

How to use an application behavior to maintain runtime configuration

Updated 3 years ago by PablovpHow-tos3 comments – viewed 26,978 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

Change buttons on our CGridView extending yii

Updated 3 years ago by sensorarioTips5 comments – viewed 25,341 times – ( +11 ) – version 1.1
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).