Wiki

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

Building Page Specific Menus using CMenu

Created 9 months ago by mistrybHow-tos1 comment – viewed 5,922 times
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu

Implementing a Flat User Access System

Created about a year ago by TrejderHow-tos1 comment – viewed 5,914 times – ( +9 ) – version 1.1
This article shows a quick and easy way to implement flat user access control system. Flat means, that user access is controlled by level only, which is solution exactly opposite to complex RBAC access systems.

Yii CDBHttpSession数据库存储session性能优化实战

Created 2 years ago by Darwin WenTips0 comments – viewed 5,896 times – ( +1 / -1 ) – version 1.1
上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created about a year ago by le_topTips0 comments – viewed 5,845 times – ( +5 ) – version 1.1
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

Serial Numbers (item counts) in GridView

Created about a year ago by PeRoChAkHow-tos3 comments – viewed 5,841 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

[PT-BR] Proteção Contra Logout CSRF

Created 2 years ago by Rodrigo CoelhoTutorials0 comments – viewed 5,674 times – ( +2 / -1 ) – version 1.1
CSRF é o acrônimo para Cross-site request forgery. CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.

Syntax check

Created 2 years ago by Russell EnglandTips2 comments – viewed 5,653 times – ( +4 ) – version 1.1
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
tags: php, syntax

Instantiate a child class that depends a type field from parent model class (CActiveRecord)

Created about a year ago by robregonmHow-tos2 comments – viewed 5,637 times – ( +3 / -1 ) – version 1.1
[EN] [ES]

Display image on CGridView column and open a fancy-box

Created 8 months ago by Ankit ModiTutorials0 comments – viewed 5,626 times – ( +1 / -1 )
1) Add a fancy-box extension on admin page

Using phpseclib with Yii

Created about a year ago by nkdHow-tos8 comments – viewed 5,571 times – ( +2 ) – version 1.1
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 not requite mcrypt to be installed in the phpserver!
tags: security