Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 161-170 of 336 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 12,992 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,885 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,870 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.

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

Created 3 years ago by jpabloHow-tos2 comments – viewed 12,839 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.

Extending an ActiveRecord model

Created 2 years ago by BogseyHow-tos3 comments – viewed 12,778 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,765 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

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

Created about a year ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 12,560 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,430 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.

More security in your applications with Yii and PHPIDS

Created 4 years ago by Rafael GarciaHow-tos1 comment – viewed 12,222 times – ( +8 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security