Wiki

Sorted by viewsX
Displaying 481-490 of 786 result(s).

Yii 1.1: How To add id or class to CMenu items ?

Created 3 years ago by Louis GacHow-tos0 comments – viewed 15,793 times – ( +2 / -1 ) – version 1.1
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?

Using events with CAction classes

Created 6 years ago by Antonio RamirezTips0 comments – viewed 15,767 times – ( +10 / -1 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Create image thumbnails with php_img_preview

Created 5 years ago by Anas AbuDayahTutorials6 comments – viewed 15,739 times – ( +3 / -1 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

CRUD operation in Yii framework

Created 3 years ago by Mohammad FareedTutorials4 comments – viewed 15,562 times – ( +1 / -7 ) – version all
Simple Yii Script for performing CRUD operations:

CJuiTabs Content

Created 5 years ago by mbalaTips3 comments – viewed 15,543 times – ( +6 / -1 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Using SQLite and CDbMessageSource as a module

Created 5 years ago by pheadeauxHow-tos5 comments – viewed 15,538 times – ( +5 / -1 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

Debuging variables in Yii2

Created 2 years ago by johonunuTips3 comments – viewed 15,457 times – ( +2 / -2 ) – version 2.0
This tutorial is explained following "basic" application structure.

How to use bizRules in standard accessControl filter

Created 4 years ago by Maciej LiżewskiHow-tos8 comments – viewed 15,449 times – ( +3 / -1 ) – 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.

Update related models of a model using listBox and checkBoxList in the form

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 15,400 times – ( +2 / -1 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

How to create yii2 extension and push to github and register into packagist to allow end user install from composer

Created 2 years ago by Scott_HuangHow-tos1 comment – viewed 15,389 times – ( +5 / -1 ) – version 2.0
1. Create Extension in yii2.