Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 71-80 of 315 result(s).

How to avoid multiple Ajax Request

Created 3 years ago by nickcvHow-tos24 comments – viewed 38,727 times – ( +23 / -2 ) – version 1.1
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

How to re enable logging during unit testing

Created 2 years ago by AsgarothHow-tos3 comments – viewed 11,507 times – ( +11 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Setting and getting systemwide static parameters

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 60,225 times – ( +11 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

Configuring controller access rules to default-deny

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 58,774 times – ( +11 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

How to use YiiBooster TbFileUpload widget

Created about a year ago by Antonio RamirezHow-tos15 comments – viewed 31,025 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

Using Grunt for deploying client scripts

Created about a year ago by Chris83How-tos8 comments – viewed 11,211 times – ( +11 ) – version 1.1
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.

How to create a wrapper for a js library

Created 3 years ago by zaccariaHow-tos2 comments – viewed 10,460 times – ( +16 / -1 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

Generate a multi-lever array sub-category for a menu

Created about a year ago by KonApazHow-tos8 comments – viewed 10,871 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Simple Share Widget for Facebook, twitter and google+

Created 2 years ago by softarkHow-tos3 comments – viewed 15,205 times – ( +10 ) – version 1.1
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

yii vim eclimd how it works

Created 3 years ago by RusAlexHow-tos1 comment – viewed 7,560 times – ( +10 ) – version 1.1
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
tags: vim, eclimd, vimrc