Wiki

Sorted by viewsX
Displaying 431-440 of 724 result(s).

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 2 years ago by samdarkHow-tos1 comment – viewed 9,804 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 9,561 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Como trasponer una lista creada con CHtml::checkBoxList

Created 3 years ago by rdjteamTips3 comments – viewed 9,541 times – ( +2 ) – version 1.1
En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

How to: use github for download yii, create new app, and store our modules or extensions.

Created 2 years ago by sensorarioHow-tos1 comment – viewed 9,487 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 9,432 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

How to use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 9,426 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Simple Mail Queue

Created about a year ago by waterloomattTutorials3 comments – viewed 9,366 times – ( +10 / -2 )
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 2 years ago by BoazHow-tos2 comments – viewed 9,304 times – ( +7 / -1 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created about a year ago by Ankit ModiTips0 comments – viewed 9,292 times – ( +3 ) – version 1.1
Hi Friends,

Alternative folder structure for a standard Yii app

Created about a year ago by TrejderHow-tos4 comments – viewed 9,262 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.