Wiki

Sorted by viewsX
Displaying 391-400 of 742 result(s).

adding class and links to Ctreeview node

Created 3 years ago by bingjie2680Tips2 comments – viewed 12,674 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

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

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

Caching the config main.php

Created 3 years ago by dckurushinTutorials11 comments – viewed 12,443 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!

Using MBMenu and Rights to automatically create menu item for your modules

Created 3 years ago by dinhtrungTips2 comments – viewed 12,387 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

How to make customizable Db Table prefixes using ActiveRecord

Created 5 years ago by killermonkTutorials0 comments – viewed 12,381 times – version 1.1
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

Log Activity in DataBase

Created about a year ago by mahdi1986Tutorials6 comments – viewed 12,340 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

Simple example for language translation

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

More security in your applications with Yii and PHPIDS

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

How to implement an event and attach it in a behavior

Created 2 years ago by seb7How-tos0 comments – viewed 12,226 times – ( +6 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior