Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 161-170 of 339 result(s).

Create a custom menu using CMenu data-items (flat or tree structure)

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 13,138 times – ( +4 )
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

Open Dialog from ajax content

Created 2 years ago by TouzasHow-tos1 comment – viewed 12,996 times – ( +4 / -1 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

Using Grunt for deploying client scripts

Created 2 years ago by Chris83How-tos8 comments – viewed 12,981 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.

Extending an ActiveRecord model

Created 2 years ago by BogseyHow-tos3 comments – viewed 12,926 times – ( +2 / -3 ) – version 1.1
Introduction

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

Created about a year ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 12,924 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 3 years ago by jpabloHow-tos2 comments – viewed 12,914 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

"safe" and "unsafe" Model validators (massive assignments)

Created about a year ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 12,748 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

How to re enable logging during unit testing

Created 3 years ago by AsgarothHow-tos3 comments – viewed 12,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.

Simple example for language translation

Created about a year ago by RKAHow-tos2 comments – viewed 12,491 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