Wiki

Sorted by date (updated)X
Displaying 481-490 of 691 result(s).

Deploy yii on pagoda box

Updated 2 years ago by francis jaTutorials0 comments – viewed 6,467 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 2 years ago by pckabeerHow-tos1 comment – viewed 12,684 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 2 years ago by Fran├žois GannazTutorials10 comments – viewed 45,886 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 2 years ago by Maurizio Domba CerinHow-tos3 comments – viewed 7,118 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

How-To: Create a REST API

Updated 2 years ago by jwernerHow-tos52 comments – viewed 215,156 times – ( +107 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

Storing your images in your table's blob field and displaying that stored images.

Updated 2 years ago by sirin kHow-tos6 comments – viewed 20,912 times – ( +8 / -1 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Displaying image in a CGridView column.

Updated 2 years ago by sirin kHow-tos5 comments – viewed 44,600 times – ( +13 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

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

Updated 2 years ago by ajsharmaTutorials0 comments – viewed 12,252 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 2 years ago by SebKTips11 comments – viewed 31,256 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 2 years ago by PablovpHow-tos3 comments – viewed 23,687 times – ( +27 ) – 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.