Wiki articles

Showing 341-360 of 823 items.

Customizing the CMenu Widget

Created 11 years ago by mistryb, updated 10 years ago by mistryb.

The CMenu class provides some useful features for generating menus in your web application.

1 0
4 followers
Viewed: 68 560 times
Version: 1.1
Category: Tips

How to use bizRules in standard accessControl filter

Created 11 years ago by Maciej Liżewski, updated 10 years ago by Maciej Liżewski.

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.

3 0
8 followers
Viewed: 21 333 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Kostas Apazidis (KonApaz).

Everyone have seen a multilayer menu in several CMS

7 0
8 followers
Viewed: 27 702 times
Version: 1.1
Category: How-tos

Yii User and Rights Implementation

Created 11 years ago by Rajith R, updated 10 years ago by Rajith R.

implementing some features of yii user and rights.

4 0
8 followers
Viewed: 42 585 times
Version: 1.1
Category: How-tos

Log Activity in DataBase

Created 11 years ago by mahdi1986, updated 10 years ago by mahdi1986.

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

4 0
17 followers
Viewed: 33 331 times
Version: 1.1
Category: Tutorials

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 11 years ago by VINAY Kr. SHARMA, updated 8 years ago by VINAY Kr. SHARMA.

CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

3 0
12 followers
Viewed: 31 778 times
Version: 1.1
Category: How-tos

Popup AJAX DialogBox without any extension

Created 11 years ago by Kostas Apazidis (KonApaz), updated 8 years ago by Maurizio Domba Cerin.

In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

5 1
6 followers
Viewed: 31 064 times
Version: 1.1
Category: How-tos

multiple CActiveDataProviders in one CGridView

Created 11 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Nashi.

There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

4 1
9 followers
Viewed: 33 056 times
Version: 1.1
Category: How-tos

Search a file size range in CGridView

Created 11 years ago by CrazyCat, updated 11 years ago by CrazyCat.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
2 0
2 followers
Viewed: 12 120 times
Version: Unknown (update)
Category: Tips

Activate captcha after unsuccessful login attempts

Created 11 years ago by Kostas Apazidis (KonApaz), updated 10 years ago by Rohit Suthar.

Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

4 1
15 followers
Viewed: 38 966 times
Version: 1.1
Category: How-tos

Mantis Manager: An Asset Manager that minifies, combines, and publishes

Created 11 years ago by aarondfrancis, updated 11 years ago by aarondfrancis.

Hello everybody.

4 0
8 followers
Viewed: 11 506 times
Version: Unknown (update)
Category: Tutorials
Tags: assets, heroku

model rules depended by user roles-permissions

Created 11 years ago by Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz).

This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

3 0
3 followers
Viewed: 19 689 times
Version: Unknown (update)
Category: How-tos

Checking for "expired" sessions/logins on the client side

Created 11 years ago by le_top, updated 9 years ago by le_top.

Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

4 0
12 followers
Viewed: 36 447 times
Version: 1.1
Category: How-tos

Integrating ZF2 into Yii - use case demonstrated

Created 11 years ago by Boaz, updated 10 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 14 419 times
Version: 2.0
Category: How-tos

How to provide a fallback or mapping for translation messages?

Created 11 years ago by schmunk, updated 9 years ago by schmunk.

Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

3 0
6 followers
Viewed: 13 032 times
Version: 1.1
Category: How-tos

More on SSE and Yii

Created 11 years ago by Firebreaker, updated 11 years ago by Firebreaker.

This is not actually Yii involved.

1 0
1 follower
Viewed: 10 004 times
Version: Unknown (update)
Category: Tips

Inline views, write less

Created 11 years ago by Firebreaker, updated 11 years ago by Firebreaker.

Sometimes writing views like

3 0
3 followers
Viewed: 11 920 times
Version: Unknown (update)
Category: Tips

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 11 years ago by Maug Lee, updated 10 years ago by yugene.

Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Implementation

<?php
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dat...
7 0
4 followers
Viewed: 54 819 times
Version: 1.1
Category: How-tos

YII SaaS Multi Tenant application with single database

Created 11 years ago by Rajith R, updated 10 years ago by xJose.

Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

6 1
14 followers
Viewed: 28 471 times
Version: 1.1
Category: Tutorials

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 11 years ago by Luis Lobo Borobia, updated 7 years ago by Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 14 985 times
Version: all
Category: Tips