Wiki

Sorted by viewsX
Displaying 421-430 of 716 result(s).

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 9,340 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,199 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,131 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 use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 8,967 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 example for language translation

Created 8 months ago by RKAHow-tos2 comments – viewed 8,937 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

Cambiando el diseño de JuiWidgets

Created 3 years ago by Luis Lobo BorobiaTutorials1 comment – viewed 8,920 times – version 1.1
Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

Facebook DeAuthorize callback URL and its response data.

Created 2 years ago by sirin kTutorials1 comment – viewed 8,883 times – ( +3 ) – version 1.1
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
tags: facebook

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

Created 2 years ago by BoazHow-tos2 comments – viewed 8,862 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.

Building a REST API in Yii2.0

Created 2 months ago by sirin kTutorials3 comments – viewed 8,850 times – ( +2 ) – version 2.0
This is wiki page is useful if you are trying to build a customized REST API in Yii2.0
tags: yii2.0, REST API

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 6 months ago by Kartik VTips5 comments – viewed 8,844 times – ( +29 / -4 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?