CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (GitHub)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • Slack
    • Paid Support
CakePHP

C CakePHP 1.3 API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 1.3
      • 4.2
      • 4.1
      • 4.0
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Classes

  • AclBase
  • AclBehavior
  • AclComponent
  • AclNode
  • AclShell
  • Aco
  • AcoAction
  • AjaxHelper
  • ApcEngine
  • ApiShell
  • App
  • AppController
  • AppHelper
  • AppModel
  • Aro
  • AuthComponent
  • BakeShell
  • BakeTask
  • BehaviorCollection
  • Cache
  • CacheEngine
  • CacheHelper
  • CakeErrorController
  • CakeLog
  • CakeRoute
  • CakeSchema
  • CakeSession
  • CakeSocket
  • ClassRegistry
  • Component
  • Configure
  • ConnectionManager
  • ConsoleShell
  • ContainableBehavior
  • Controller
  • ControllerTask
  • CookieComponent
  • DataSource
  • DbAcl
  • DbConfigTask
  • DboMssql
  • DboMysql
  • DboMysqlBase
  • DboMysqli
  • DboOracle
  • DboPostgres
  • DboSource
  • DboSqlite
  • Debugger
  • EmailComponent
  • ErrorHandler
  • ExtractTask
  • File
  • FileEngine
  • FileLog
  • FixtureTask
  • Folder
  • FormHelper
  • Helper
  • HtmlHelper
  • HttpSocket
  • I18n
  • I18nModel
  • I18nShell
  • Inflector
  • IniAcl
  • JavascriptHelper
  • JqueryEngineHelper
  • JsBaseEngineHelper
  • JsHelper
  • L10n
  • MagicDb
  • MagicFileResource
  • MediaView
  • MemcacheEngine
  • Model
  • ModelBehavior
  • ModelTask
  • MootoolsEngineHelper
  • Multibyte
  • NumberHelper
  • Object
  • Overloadable
  • Overloadable2
  • PagesController
  • PaginatorHelper
  • Permission
  • PluginShortRoute
  • PluginTask
  • ProjectTask
  • PrototypeEngineHelper
  • RequestHandlerComponent
  • Router
  • RssHelper
  • Sanitize
  • Scaffold
  • ScaffoldView
  • SchemaShell
  • Security
  • SecurityComponent
  • SessionComponent
  • SessionHelper
  • Set
  • Shell
  • String
  • TemplateTask
  • TestSuiteShell
  • TestTask
  • TextHelper
  • ThemeView
  • TimeHelper
  • TranslateBehavior
  • TreeBehavior
  • Validation
  • View
  • ViewTask
  • XcacheEngine
  • Xml
  • XmlElement
  • XmlHelper
  • XmlManager
  • XmlNode
  • XmlTextNode

Functions

  • mb_encode_mimeheader
  • mb_stripos
  • mb_stristr
  • mb_strlen
  • mb_strpos
  • mb_strrchr
  • mb_strrichr
  • mb_strripos
  • mb_strrpos
  • mb_strstr
  • mb_strtolower
  • mb_strtoupper
  • mb_substr
  • mb_substr_count
 1: <?php
 2: /**
 3:  * Static content controller.
 4:  *
 5:  * This file will render views from views/pages/
 6:  *
 7:  * PHP versions 4 and 5
 8:  *
 9:  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10:  * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
11:  *
12:  * Licensed under The MIT License
13:  * Redistributions of files must retain the above copyright notice.
14:  *
15:  * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
16:  * @link          http://cakephp.org CakePHP(tm) Project
17:  * @package       cake
18:  * @subpackage    cake.cake.libs.controller
19:  * @since         CakePHP(tm) v 0.2.9
20:  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
21:  */
22: 
23: /**
24:  * Static content controller
25:  *
26:  * Override this controller by placing a copy in controllers directory of an application
27:  *
28:  * @package       cake
29:  * @subpackage    cake.cake.libs.controller
30:  * @link http://book.cakephp.org/view/958/The-Pages-Controller
31:  */
32: class PagesController extends AppController {
33: 
34: /**
35:  * Controller name
36:  *
37:  * @var string
38:  * @access public
39:  */
40:     var $name = 'Pages';
41: 
42: /**
43:  * Default helper
44:  *
45:  * @var array
46:  * @access public
47:  */
48:     var $helpers = array('Html', 'Session');
49: 
50: /**
51:  * This controller does not use a model
52:  *
53:  * @var array
54:  * @access public
55:  */
56:     var $uses = array();
57: 
58: /**
59:  * Displays a view
60:  *
61:  * @param mixed What page to display
62:  * @access public
63:  */
64:     function display() {
65:         $path = func_get_args();
66: 
67:         $count = count($path);
68:         if (!$count) {
69:             $this->redirect('/');
70:         }
71:         $page = $subpage = $title_for_layout = null;
72: 
73:         if (!empty($path[0])) {
74:             $page = $path[0];
75:         }
76:         if (!empty($path[1])) {
77:             $subpage = $path[1];
78:         }
79:         if (!empty($path[$count - 1])) {
80:             $title_for_layout = Inflector::humanize($path[$count - 1]);
81:         }
82:         $this->set(compact('page', 'subpage', 'title_for_layout'));
83:         $this->render(implode('/', $path));
84:     }
85: }
86: 
OpenHub
Rackspace
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (GitHub)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • Slack
  • Paid Support

Generated using CakePHP API Docs