Wiki articles

Showing 101-120 of 650 items.

Patching PHP code (used as a library) without changing the original code!

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

The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article [Redefine PHP class methods or class](http://stackoverflow.com/questions/137006/ph...

4 0
5 followers
Viewed: 8 577 times
Version: 1.1
Category: Tips

Where to implement knowledge about the addresses of the controller?

Created 5 years ago by Petr.Grishin, updated 5 years ago by Petr.Grishin.

Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.

1 0
2 followers
Viewed: 5 685 times
Version: 1.1
Category: Tutorials

BaseModuleAR class with MultiActiveRecord

Created 8 years ago by dinhtrung, updated 7 years ago by Gustavo.

MultiActiveRecord is an extension that add support for multiple database connection for your application.

2 0
0 follower
Viewed: 11 221 times
Version: 1.1
Category: Tips

Disallowing login for INACTIVE users in Yii

Created 5 years ago by Rohit Suthar, updated 5 years ago by Rohit Suthar.

In this wiki I will show how to Disallowing login for Inactive users. Only Active users can logging and access their account. You can set privacy for your yii web apps users.

1 0
3 followers
Viewed: 11 830 times
Version: 1.1
Category: Tutorials

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 5 years ago by Rajith R, updated 5 years ago by Rajith R.

As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.

3 0
5 followers
Viewed: 23 863 times
Version: 1.1
Category: Tutorials
Tags: newbie, Yii, yiic

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

Created 5 years ago by Louis Gac, updated 5 years ago by Louis Gac.

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 ?

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

How to sum (Update) of all input button price value using jquery

Created 5 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 12 495 times
Version: all
Category: How-tos

How to show Image view after upload and delete view image using eajaxupload extension

Created 5 years ago by Ankit Modi, updated 6 months ago by samdark.

Hi Friends, In this tutorial you can use the eajaxupload-extension ,

0 1
3 followers
Viewed: 16 103 times
Version: 1.1
Category: How-tos

三步使用cronjobs自动化去执行Yii 控制台任务

Created 7 years ago by Darwin Wen, updated 7 years ago by Darwin Wen.

这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

0 4
2 followers
Viewed: 22 562 times
Version: 1.1
Category: Tutorials

How to show a Captcha in CForm?

Created 5 years ago by Rohit Suthar, updated 5 years ago by Rohit Suthar.

In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.

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

关于Yii CHttpSession性能优化篇之源码流程分析

Created 7 years ago by Darwin Wen, updated 7 years ago by Maurizio Domba Cerin.

当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

0 1
2 followers
Viewed: 14 180 times
Version: 1.1
Category: Tips

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

Created 7 years ago by Darwin Wen, updated 7 years ago by Darwin Wen.

上一篇 关于 Yii CHttpSession性能优化篇之源码流程分析 有详细分析CHttpSession执行流程,在了解CHttpSession的详细执行流程之后,我们就可以非常轻松的扩展Yii Session,来优化和符合自己的业务流程。

1 1
1 follower
Viewed: 11 689 times
Version: 1.1
Category: Tips

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

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

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.

3 0
3 followers
Viewed: 11 898 times
Version: 1.1
Category: Tips

Expert's model generation with Gii

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

Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

1 0
2 followers
Viewed: 12 109 times
Version: 1.1
Category: Tips

an easy way to required multi columns(At least one cannot be blank)

Created 7 years ago by 1065227709, updated 7 years ago by 1065227709.

in model add the following code:

3 0
3 followers
Viewed: 9 120 times
Version: 1.1
Category: Tips
Tags: rules

How to implement an event and attach it in a behavior

Created 6 years ago by seb7, updated 6 years ago by seb7.

This page explains how to implement an event and catch that event in a behavior.

2 0
9 followers
Viewed: 22 812 times
Version: 1.1
Category: How-tos

Implementing menu items with progress (wait) dialog

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

This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

1 0
1 follower
Viewed: 9 297 times
Version: 1.1
Category: How-tos

Enhance security of cookie-based login

Created 4 years ago by darkheir, updated 4 years ago by darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 12 412 times
Version: 1.1
Category: How-tos

Customizing Yii's formatting rules (extending CFormatter)

Created 7 years ago by Haensel, updated 7 years ago by Haensel.

CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model)...

12 0
6 followers
Viewed: 19 517 times
Version: 1.1
Category: Tips