Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 91-100 of 352 result(s).

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

Created 4 years ago by c@cbaHow-tos3 comments – viewed 32,902 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).

How to use Expression in default AccessControl to allow only the owner to do some action

Created 3 years ago by whatifHow-tos2 comments – viewed 32,694 times – ( +8 / -1 ) – version 1.1
Hi Everyone

URL management for Websites with secure and nonsecure pages

Created 3 years ago by qiangHow-tos12 comments – viewed 31,753 times – ( +29 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Run Yiic directly from your app without a shell

Created 4 years ago by jacmoeHow-tos6 comments – viewed 31,470 times – ( +18 ) – version 1.1
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

How to generate Yii-like Documentation

Created 5 years ago by AsgarothHow-tos9 comments – viewed 31,468 times – ( +46 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Using the jqueryslidemenu plugin with CMenu

Created 5 years ago by Antonio RamirezHow-tos0 comments – viewed 31,304 times – ( +18 / -1 ) – version 1.1
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.

javascript + tabular input

Created 5 years ago by zaccariaHow-tos4 comments – viewed 30,954 times – ( +14 / -1 ) – version 1.1
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

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

Created 4 years ago by sirin kHow-tos7 comments – viewed 30,765 times – ( +9 / -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

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 2 years ago by tophHow-tos2 comments – viewed 30,285 times – ( +1 / -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

How to use an application behavior to maintain runtime configuration

Created 5 years ago by zaccariaHow-tos3 comments – viewed 30,240 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.