Cakephp Classroom image

osdyui
 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14|Last
Lessons:-Core Libraries

static App::objects(string $type, mixed $path = null, boolean $cache = true)
Return type mixed Returns an array of objects of the given type or false if incorrect.
You can find out which objects App knows about using App::objects(’Controller’) for
example to find which application controllers App knows about.
Example usage:
//returns array(’DebugKit’, ’Blog’, ’User’);
App::objects(’plugin’);
//returns array(’PagesController’, ’BlogController’);
App::objects(’Controller’);
You can also search only within a plugin’s objects by using the plugin dot syntax.:
// returns array(’MyPluginPost’, ’MyPluginComment’);
App::objects(’MyPlugin.Model’);
Changed in version 2.0.
1.Returns array() instead of false for empty results or invalid types
2.Does not return core objects anymore, App::objects(’core’) will return array().
3.Returns the complete class name
Locating plugins
static App::pluginPath(string $plugin)
Return type string
Plugins can be located with App as well. Using App::pluginPath(’DebugKit’); for example,
will give you the full path to the DebugKit plugin:
$path = App::pluginPath(’DebugKit’);
Locating themes
static App::themePath(string $theme)
Return type string
Themes can be found App::themePath(’purple’);, would give the full path to the purple
theme.

 
 
 

osdyui

Skills    Cakephp

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)