Function pluginSplit
Splits a dot syntax plugin name into its plugin and class name. If $name does not have a dot, then index 0 will be null.
Commonly used like list($plugin, $name) = pluginSplit($name);
Package: Cake
Link: https://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#pluginSplit
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at Cake/basics.php
Link: https://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#pluginSplit
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at Cake/basics.php
pluginSplit( string $name boolean $dotAppend false string $plugin null )
Parameters summary
string | $name | The name you want to plugin split. |
boolean | $dotAppend = false | Set to true if you want the plugin to have a '.' appended to it. |
string | $plugin = null | Optional default plugin to use if no plugin is found. Defaults to null. |
Returns
-
array
Array with 2 indexes. 0 => plugin name, 1 => class name
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/function-pluginSplit.html