Task class for creating new project apps and plugins
$configPath
public string
Looks for a skeleton template of a Cake application, and if not found asks the user for a path. When there is a path this method will make a deep copy of the skeleton to the project directory.
Generates the correct path to the CakePHP libs that are generating the project and points app/console/cake.php to the right place
Checks that given project path does not already exist, and finds the app directory in it. Then it calls bake() with that information.
_replaceCorePath( string $filename , boolean $hardCode )
Replaces the CAKE_PATH placeholder in the template files.
$filename
$hardCode
bake( string $path , string $skel null , string $skip array('empty') )
Looks for a skeleton template of a Cake application, and if not found asks the user for a path. When there is a path this method will make a deep copy of the skeleton to the project directory.
$path
$skel
optional null $skip
optional array('empty') cachePrefix( string $dir )
Writes cache prefix using app's name
$dir
cakeAdmin( string $name )
Enables Configure::read('Routing.prefixes') in /app/Config/core.php
$name
cakeOnIncludePath( )
Checks PHP's include_path for CakePHP.
consolePath( string $path )
Generates the correct path to the CakePHP libs that are generating the project and points app/console/cake.php to the right place
$path
corePath( string $path , boolean $hardCode true )
Generates and writes CAKE_CORE_INCLUDE_PATH
$path
$hardCode
optional true execute( )
Checks that given project path does not already exist, and finds the app directory in it. Then it calls bake() with that information.
getOptionParser( )
Gets the option parser instance and configures it.
ConsoleOptionParser
getPrefix( )
Checks for Configure::read('Routing.prefixes') and forces user to input it if not enabled
securityCipherSeed( string $path )
Generates and writes 'Security.cipherSeed'
$path
securitySalt( string $path )
Generates and writes 'Security.salt'
$path
© 2005–2016 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.9/class-ProjectTask.html