Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 51-60 of 182 result(s).

Database driven Cmenu

Created about a year ago by twisted1919How-tos1 comment – viewed 10,692 times – ( +12 )
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.

Using loginRequiredAjaxResponse to solve ajax session timeout

Created about a year ago by RutgerHow-tos3 comments – viewed 9,142 times – ( +12 )
This solution requires Yii 1.1.9 or above

Run an Yii Application inside an Wordpress page

Created 2 years ago by Paul ApostolHow-tos3 comments – viewed 11,937 times – ( +12 )
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Accessing data in a join table with the related models

Created about a year ago by fsbHow-tos7 comments – viewed 36,073 times – ( +18 / -1 )
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Using the jqueryslidemenu plugin with CMenu

Created 2 years ago by Antonio RamirezHow-tos0 comments – viewed 20,633 times – ( +18 / -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.

How to translate and do the translations the easy way

Created about a year ago by Roman SolomatinHow-tos3 comments – viewed 24,148 times – ( +17 / -1 )
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.
tags: i18n

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

Created about a year ago by c@cbaHow-tos2 comments – viewed 12,587 times – ( +11 )
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).

Real-time display of server push data using Server-Sent Events (SSE)

Created about a year ago by bennounaHow-tos10 comments – viewed 14,140 times – ( +11 )
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

javascript + tabular input

Created 2 years ago by zaccariaHow-tos3 comments – viewed 17,868 times – ( +11 )
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

How to create a wrapper for a js library

Created about a year ago by zaccariaHow-tos2 comments – viewed 7,603 times – ( +16 / -1 )
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify