Wiki

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

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 3 years ago by c@cbaHow-tos3 comments – viewed 9,995 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

How to use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 9,969 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.

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

Created 2 years ago by samdarkHow-tos1 comment – viewed 9,962 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:

get summary of related model via STAT relation

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

Como trasponer una lista creada con CHtml::checkBoxList

Created 3 years ago by rdjteamTips3 comments – viewed 9,758 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:

Simple Mail Queue

Created about a year ago by waterloomattTutorials3 comments – viewed 9,748 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.

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 9,691 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

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,688 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

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,687 times – ( +3 ) – version 1.1
Hi Friends,

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created about a year ago by Kartik VHow-tos2 comments – viewed 9,655 times – ( +31 / -4 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like: