额外的类路径(Additional Class Paths)
来源:互联网 发布:淘宝退货太多会怎么样 编辑:程序博客网 时间:2024/05/16 12:11
它是偶尔有用的应用程序之间能够共享MVC类在同一个系统上。如果你想要同样的控制器在两个应用程序,您可以使用CakePHP的引导。php将这些额外的类。
通过使用应用程序:App::build())。php可以定义额外的路径,CakePHP将寻找类:
通过使用应用程序:App::build())。php可以定义额外的路径,CakePHP将寻找类:
App::build(array( 'Model' => array( '/path/to/models', '/next/path/to/models' ), 'Model/Behavior' => array( '/path/to/behaviors', '/next/path/to/behaviors' ), 'Model/Datasource' => array( '/path/to/datasources', '/next/path/to/datasources' ), 'Model/Datasource/Database' => array( '/path/to/databases', '/next/path/to/database' ), 'Model/Datasource/Session' => array( '/path/to/sessions', '/next/path/to/sessions' ), 'Controller' => array( '/path/to/controllers', '/next/path/to/controllers' ), 'Controller/Component' => array( '/path/to/components', '/next/path/to/components' ), 'Controller/Component/Auth' => array( '/path/to/auths', '/next/path/to/auths' ), 'Controller/Component/Acl' => array( '/path/to/acls', '/next/path/to/acls' ), 'View' => array( '/path/to/views', '/next/path/to/views' ), 'View/Helper' => array( '/path/to/helpers', '/next/path/to/helpers' ), 'Console' => array( '/path/to/consoles', '/next/path/to/consoles' ), 'Console/Command' => array( '/path/to/commands', '/next/path/to/commands' ), 'Console/Command/Task' => array( '/path/to/tasks', '/next/path/to/tasks' ), 'Lib' => array( '/path/to/libs', '/next/path/to/libs' ), 'Locale' => array( '/path/to/locales', '/next/path/to/locales' ), 'Vendor' => array( '/path/to/vendors', '/next/path/to/vendors' ), 'Plugin' => array( '/path/to/plugins', '/next/path/to/plugins' ),));
0 0
- 额外的类路径(Additional Class Paths)
- 4.额外线程能力(Additional Thread Capabilities)
- chapter 12(additional) 类的私有成员输出
- 17.1.1.9 Introducing Additional Slaves to an Existing Replication Environment 引入额外的Slaves 到一个存在的复制
- Constructing Paths(构建路径)
- 114.Unique Paths-不同的路径(容易题)
- Binary Tree Paths(二叉树的路径)
- Xcode的Search Paths的路径问题
- 添加额外的路径到Android系统中
- 矩形格路径的个数 Unique Paths
- Unique Paths 所有可能的路径
- Unique Paths 不同的路径 DP
- lintcode unique-paths 不同的路径
- additional
- LeetCode | Unique Paths(唯一路径)
- Unity渲染路径(Rendering Paths)
- iOS Paths and Shapes (路径和形状)路径裁剪
- Binary Tree Paths 二叉树的路径(含创建树的代码)
- Autoit介绍
- 黑马程序员----WinForm入门小结
- comet在asp.net中的实现
- 理解矩阵(一)
- .bash_profile和.bashrc的区别(如何设置生效)
- 额外的类路径(Additional Class Paths)
- 运行python manage.py syncdb时出现“cannot connect to MySQL server on 'localhost'”的解决方法
- SharePoint Designer crash when opening site
- hibernate配置,开发过程
- POJ 1316 (筛选法模拟)
- C#发送邮件的方法及实例代码
- C# System.Console成员
- Linux终端用户的8个技巧
- 黑马程序员----学习经验