Wiki articles

Showing 181-200 of 823 items.

Single PHP entry point with Nginx

Created 10 years ago by MadAnd, updated 10 years ago by MadAnd.

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 19 803 times
Version: all
Category: How-tos

How to validate the uniqueness of multiple columns

Created 10 years ago by oligalma, updated 9 years ago by oligalma.

I am going to show you an effective way to validate the uniqueness of multiple columns.

2 0
2 followers
Viewed: 19 901 times
Version: 1.1
Category: How-tos

URL component access functions

Created 14 years ago by Steve Friedl, updated 14 years ago by Steve Friedl.

Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.

28 0
16 followers
Viewed: 20 021 times
Version: 1.1
Category: Tips
Tags: request, URL
2 0
1 follower
Viewed: 20 037 times
Version: 1.1
Category: How-tos

Safely checking if a model class exists (without exploding)

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

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 20 082 times
Version: 1.1
Category: How-tos

WordPress Role Based Authentication in Yii

Created 11 years ago by Bob G, updated 11 years ago by CeBe.

This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.

4 0
8 followers
Viewed: 20 154 times
Version: 1.1
Category: Tutorials

Using the jamselect widget with min and max values

Created 14 years ago by got 2 doodle, updated 14 years ago by wei.

The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.

2 0
1 follower
Viewed: 20 170 times
Version: 1.1
Category: How-tos

Clear CGridView Filters, Sort & Pager

Created 10 years ago by le_top, updated 10 years ago by le_top.

Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

2 0
3 followers
Viewed: 20 273 times
Version: 1.1
Category: How-tos

Yet another implementation of CPhpAuthManager.

Created 12 years ago by seenivasan, updated 12 years ago by seenivasan.

In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at ma...

5 1
7 followers
Viewed: 20 279 times
Version: 1.1
Category: How-tos

Check online users / set specific user offline

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

How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that

1 0
4 followers
Viewed: 20 302 times
Version: 1.1
Category: How-tos

model rules depended by user roles-permissions

Created 12 years ago by Kostas Apazidis (KonApaz), updated 12 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: 20 318 times
Version: Unknown (update)
Category: How-tos

Catching bounce messages (NDR) and piping them to a Yii command

Created 12 years ago by bennouna, updated 11 years ago by bennouna.

But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.

1 0
7 followers
Viewed: 20 404 times
Version: 1.1
Category: Tutorials

Publish yii webapp using Git push

Created 12 years ago by rootbear, updated 12 years ago by rootbear.

I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;

2 0
8 followers
Viewed: 20 412 times
Version: 1.1
Category: How-tos
Tags: git

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 13 years ago by c@cba, updated 13 years ago by c@cba.

The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) .
But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

4 0
1 follower
Viewed: 20 446 times
Version: 1.1
Category: How-tos

CJuiTabs Content

Created 12 years ago by mbala, updated 12 years ago by mbala.

When I used CJuiTabs I did something. They are

2 0
7 followers
Viewed: 20 472 times
Version: 1.1
Category: Tips
Tags: CJuiTabs

Yiistrap TbHtml::navbarSearchForm

Created 11 years ago by Patrice, updated 11 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 20 496 times
Version: 1.1
Category: Tips

Interactive mode command-line command for Yii1

Created 8 years ago by Trejder, updated 8 years ago by Trejder.

For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

0 0
1 follower
Viewed: 20 516 times
Version: 1.1
Category: How-tos

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 11 years ago by Ankit Modi, updated 10 years ago by Rohit Suthar.

1) include the fancybox extesion otherwise fancybox js

0 0
4 followers
Viewed: 20 532 times
Version: 1.1
Category: Tutorials

Using phpseclib with Yii

Created 12 years ago by nkd, updated 12 years ago by nkd.

I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...

0 0
6 followers
Viewed: 20 554 times
Version: 1.1
Category: How-tos
Tags: security

i18n for your model in just 1 line

Created 15 years ago by mintao, updated 14 years ago by Orteko.

A simple trick to get the localized version of a model field is to add this little method to your models.

12 0
9 followers
Viewed: 20 602 times
Version: 1.1
Category: Tutorials
Tags: i18n