cakephp working notes 17 - controller attribute Posts

Reference Site
1) action: the name of the currently requested controller action.
The current request method name
2) autoLayout: Set to true to automatically render the layout around views.
True-value of the layout will automatically render the view, false is not rendering the layout
3) autoRender: Set to true to automatically render the view after action logic.
Value is true - the logic in the controller automatically re-render to achieve self-view, if ajax requests is set to false.

4) base: Base URL path

5) cacheAction: Used to define methods a controller that will be cached. To cache a single action, the value is set to an array containing keys that match action names and values that denote cache expiration times (in seconds).

var $ cacheAction = array (
'View/23 /' => 21600,
'Recalled /' => 86400
$ CacheAction can also be set to a strtotime () compatible string. This marks all the actions in the controller for view caching.
In order to buffer the view, set the size of the
6) Component: Instance of Component used to handle callbacks.
The component object is used to callback
7) $ components: the controller uses the component list
$ Helpers include the use of plug-VIEW, which is a small helper
$ Uses include the control module can access the MODEL.
$ Data

分类:PHP 时间:2010-04-21 人气:244
blog comments powered by Disqus


  • Ajax Asynchronous Request Server (jquery) server returns data in xml format 2010-03-21

    New jslib the WebRoot directory folder: the lib into the jquery library, verifyjqueryxml.js (script file) ajaxjqueryxml.html file code is as follows: <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN" " http://www.w

  • Ext.Ajax.request Method Description 2010-10-12

    Ext.Ajax.request are in fact, whether FormPanel treatment, or control the interaction, their access to the server side, when 90% of the way through Ext.Ajax.request carried out using the method can be used to server-side send an http request, and can

  • Git Community Book Translation (c. A) Git object model 2010-09-23

    Git Community Book Translation (c. A) Git object model When the original in the translation, Git Community Book section of the front part was a little later, but I left a number to them. Translation of the front are now over, just want to fill it. No

  • Ext.Ajax.request method statement 2010-05-07

    Transfer from: E6% 9C% 8D% E5% 8A% A1% E5% 99% A8% E4% BA% A4% E4% BA % 92% E6% 8A% 80% E6% 9C% AF% E8% AF% A6% E8% A7% A3_% E4% B8% 80 Ext.Ajax.request method fact, all of FormPanel treatment, or c

  • Flex Tree component in the data source example (xml, array, object) 2010-11-07

    <?xml version="1.0" encoding="utf-8"?> <!-- Tree control example. --> <mx:Application xmlns:mx=""> <mx:Script> <![CDATA[ [Bindable] public var selectedNode:XML; [Bindab

  • Prototype's Ajax support the use of Form.request method 2010-11-20

    Form.request () method is actually Ajax.Request package, the method will convert all of the form control request parameter, the default action to the specified URL form to send an asynchronous request. A simple usage example: <%@ page language="ja

  • Java rewrite common method of Object class 2010-09-08

    When we write a class when the class will be on Java.lang.Object rewrite some of the important methods, these methods include: hashCode (), toString (), equals (), finalize (), clone (), wait ( ), notify () / notifyAll () method of the eight. One Equ

  • JS Array "(array) and the" objects "(object) 2010-08-24

    JS Array "(array) and the" objects "(object) JS Technology 2009-12-30 16:15:45 read 294 comments 0 font size: large, medium Subscribe For example there is an array a = [1,2,3,4], there is an object a = (0:1,1:2,2:3,3:4), and then you run th

  • "Abhorrent" in ajax sync request 2009-11-01

    "Abhorrent" in ajax sync request For this reason, I wasted several hours. Encountered in the work of such a demand: Must wait for the follow-up after the completion of pre-task to be implemented, otherwise unable to obtain follow-up method to ge

  • ajax with jquery method to verify that the user name method (back Qinbo) 2010-03-29

    1. import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import; import; import

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 黔ICP备15002463号-1

processed in 0.252 (s). 12 q(s)