The Page class in ThinkPHP is in ThinkPHP/Extend/Library/ORG/Util/Page. class. php. Therefore, the Page class should be introduced before use:
Copy codeThe Code is as follows:Import ('org. Util. page'); // introduces the Page class.$ Db = M ('abc');
The use of the upload class is very simple. If you are using the upload function for the first time, note that the form attribute in the html submission form must be added with the enctype attribute, for example:
Copy codeThe Code is as follows:
The
The first is the database design. The category table is cate.
I am working on the secondary Association of classified data. The fields required for the data are: id, name (Chinese name), pid (parent id ).
Parent id settings: if the data does not
1. the memory overflow solution often encounters large arrays during data statistics and analysis, and may cause memory overflow. here is my solution. The following example illustrates the problem: if the number of records in the log is 500000, the
PhpQuery is an open-source project similar to jQuery implemented in php. it can parse webpage elements in the form of jQuery syntax on the server side. Compared with regular expressions or other methods that match web pages, phpQuery is much easier
Baidu editor ueditor usage summary-ueditor integration example based on Yii Framework
Preview the Custom Edition page:
Address: http://ueditor.baidu.com/website/index.html
Ueditor is developed by Baidu. the legendary Baidu knows Chinese better,
TheYiiCookbook Chinese index
Add a logon box to each page
Use? CClipWidget's advanced CTabView
Automatic timestamp behavior
Create dependency drop-down list
Eclipse? PDT-code prompts, applications, and other benefits
Enable Gzip
The first Yii
In the Yii Framework, fully customize the gridview View by inheriting CGridView
Today, in the project, we want to implement the table flip function. Naturally, we think of the gridview view on the admin page of the Yii Framework background, which
Yii Framework Analysis (1) -- Analysis of the startup process of index. php
1. start
The only website entry program index. php:
$yii=dirname(__FILE__).’/../framework/yii.php’;$config=dirname(__FILE__).’/protected/config/main.php’;// remove the
NoResultsFound is not displayed when the result of CGridView in Yii Framework is null.
View the CGridView source code and see the output when the result is null as defined in the following method:
Public function renderTableBody () {$ data = $
Management, deployment, and use of Assets resources in the Yii Framework
Assets (js, css, images, etc.) are generally released in the following ways, which must be used flexibly in practice:
1. save a single file directly under the Web Directory
How to set keywords and description for webpages in the Yii Framework
If we want to set meta tags on a per page (controller-action) basis, we may use? ClientScript? Application component.Controller
clientScript->registerMetaTag('This is an example'
Yii integrates pjax (pushstate + ajax) to achieve no refreshing page loading (text)
PJAX effect
You can use URLs to track the dynamic loading of ajax content. This technology is especially advantageous in the view of two step view layout. Without
Use swfupload in Yii to upload images in batches
During website development, the batch upload of images is inevitable. if you want to write one by yourself, you have to make repeated rounds. The Yii official website has swfupload extension, but I
Yii Framework Analysis (9)-View rendering process
In the MVC architecture, View is mainly used to display information. The view layer file in Yii consists of two parts: Layout view and partial view. Most pages of the web system have the same
Yii Framework integrates the Smarty template engine
As one of the most mature and used templates, Smarty is familiar to everyone. If you are not familiar with other students, refer to the Smarty tutorial. But even if it doesn't, it doesn't matter. I
How to use Yii: t () in the Yii Framework for text information translation and file translation 1. set the localization language
Make the following settings in main. php in the protected/config folder:
return array(
Yii Framework Analysis (5) -- Talk about the CComponent basic class
This article can be supplemented by Yii Framework Analysis (II)-CComponent class analysis.
The CComponent class provides the foundation for component-based and event-driven
Yii Framework Analysis (7) -- Yii exception handling process
The exception handling component works with CApplication to handle all exceptions (uncaptured ). It can be seen that CApplication registers its handleException/handleError method as an
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