Yii events using CAction class

Yii uses CAction events in the following ways: Declare an event in your component and add its method (that is, function onClick ($ event )) Attaches an event to the event handler (event handlers) (that is, $ object-> onClick = array ($

Yii image Processing database image-Kohana

Yii image Processing database image-Kohana This library provides methods to dynamically process images. Allows you to resize, crop, rotate, and sharpen JPEG, PNG, and GIF images. All image processing will be applied to a temporary image, but only

YiiBase in YiiFramework

Finally, let's take a look at object creation. in the YII Framework, there are two methods to create objects: 1. use the new keyword; 2. use the Yii: createComponent method. When creating a php object, you must first include the definition file of

Yii good schema Design Guide

CActiveRecord is widely used in Yii applications. the design focuses on optimization rather than complex SQL statements. In fact, most of them are designed to use friendly SQL modes to solve practical problems. CActiveRecord is widely used in Yii

Solve jquery compatibility issues of Yii

When debugging IE today, we found jquery. js always reports an error, leading to failure of some js functions. after checking, it is found that it is related to the syntaxhighlighter highlighting plug-in. the original yii built-in jquery. js

Easy management of Yii constants

Easy management of Yii constants to obtain constants I used a method to solve this problem.GetConstants ().? 1234567891011121314 PublicstaticfunctiongetConstants ($ token, $ objectClass) {$ tokenLen = strlen ($ token); $ reflection =

Yii simple user authorization system

First, create a new field (integer type) in the user table with the field name 'accesslevel'. it defines the user's access permission database. First, create a new field (integer type) in the user table, field name'AccessLevel', Which defines the

How does Yii make self-written code easy to maintain?

How does Yii make self-written code easy to maintain? I. how to write code that is easy to read and understand 1. the most fundamental one is to learn from writing articles, including directories, outlines, titles, paragraphs, and appropriate

Yii implements ajax sorting of sort

Through firebug, we found that every time we click the sort button generated by CSort, two sort classes (descasc) will be attached to the URL of links ), so we can use these two classes for sorting to achieve AJAX refresh and add arrows with

Yii simple role-based access control

Yii simple role-based access control 12345678910111213141516171819 Publicfunctionfilters () {returnarray ('accesscontrol', // perform access control for CRUD operations);} publicfunctionaccessRules () {returnarray (array ('allow ',

Yii function for generating thumbnails cthumb

Yii generation of thumbnail generation function cthumb requirements Yii 1.0 and later versions GD library required Download Site attachmentInstall Decompress the file to protected/extensions. Extension = php_gd2.dll Use See the following

Use the database-controlled CMenu menu

What is the database structure of the CMenu menu controlled by the database? 1234567891011121314151617181920212223242526272829 Create table if not exists 'menu '('menu _ id' int (11) not null auto_increment, 'name' varchar (255) not null,

Yiiframework independently specifies the db connection for each module

The module function of Yii is really convenient, but now the problem is that I need to specify a separate database connection for each module so that I can integrate different systems. I found a lot of information, and it seems that such similar

Limit the default width of the CGridView field

Sometimes the text in the grdiview column is long. This is why I am looking for methods to implement small columns, but still provide information. Sometimes the text in the grdiview column is long. This is why I am looking for methods to implement

Considerations for using the yii Framework in SAE (1)

Considerations for using the yii Framework in SAE (1) Yii 1.1.13 has been released for a while, so it took a few days to get started. In the spirit of diaosi, of course, I want to try it on SAE. Unfortunately, the problem arises. according to the

Use yii to develop RESTAPI

Use yii to develop RESTAPI Recently, I have a project for Android client development. because I need to communicate with the server, I decided to use RESTFUL APIs after reading some documents. Here I will share with the blog program that comes with

Display friendly time formats in yii

Display friendly time formats in yii I recently encountered this problem when I was writing the yii Chinese encyclopedia program. I used to date ("Y-m-d H: I", $ time. However, many websites now display time as several minutes ago, several hours ago,

Yii-URL management for secure and non-secure sites

URL management for secure and non-secure sites In this article, I will describe how to manage URLs of secure and non-secure sites. The content of a security site is sent using httpsSSL (Secure Socket Layer) protocol, whereas the content of a

Yii-custom archiving in the blog system

Hello everyone, I have implemented archive management for a blog system, which can manage tbl_post. I only used CDbCriteria in a simple way. although there are still many better ways to do this, but I think that by modifying or customizing my code,

Yii quick start (2)

Yii quick start (2) admin | 2012-05-18 3. Controller is a subclass of the CController class. It is created by the application when the user requests it. When a controller is running, it executes the requested action (controller method). The action

Total Pages: 12780 1 .... 10288 10289 10290 10291 10292 .... 12780 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.