Wiki

Articles in category "tips", sorted by viewsX
Displaying 71-80 of 151 result(s).

How to ensure unicity to url

Created 4 years ago by zaccariaTips3 comments – viewed 12,674 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

Add model validator in Controller

Created about a year ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 12,552 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

URL component access functions

Created 5 years ago by Steve FriedlTips1 comment – viewed 12,474 times – ( +28 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 3 years ago by sebTips0 comments – viewed 12,346 times – ( +1 / -1 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

PHPStorm & NetBeans autocomplete problem

Created 3 years ago by StagelineTips3 comments – viewed 12,088 times – ( +24 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 2 years ago by Kartik VTips2 comments – viewed 12,042 times – ( +48 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

Using CListView to display items next to each other (in columns)

Created 3 years ago by thyseusTips4 comments – viewed 12,005 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Como trasponer una lista creada con CHtml::checkBoxList

Created 4 years ago by rdjteamTips3 comments – viewed 11,866 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:

ChromePHP for Yii

Created 5 years ago by imeheszTips0 comments – viewed 11,597 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Yii2 default values for Index data Provider

Created 2 years ago by CTalaTips2 comments – viewed 11,509 times – ( +3 ) – version 2.0
Guys,