Skip to content
Permalink
Browse files

Fixed some namespaces in bake skeleton

  • Loading branch information...
jrbasso committed Jun 23, 2012
1 parent 84f4d5a commit 4161c4728987d3a039823b465c5333a8e75fb39e
@@ -22,6 +22,7 @@
namespace Cake\Console\Command;
use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Model\Model;
use Cake\Utility\Inflector;
@@ -19,6 +19,9 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
use Cake\Cache\Cache;
use Cake\Core\Configure;
/**
* CakePHP Debug Level:
*
@@ -49,7 +52,7 @@
* @see ErrorHandler for more information on error handling and configuration.
*/
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
'handler' => 'Cake\Error\ErrorHandler::handleError',
'level' => E_ALL & ~E_DEPRECATED,
'trace' => true
));
@@ -71,11 +74,16 @@
* @see ErrorHandler for more information on exception handling and configuration.
*/
Configure::write('Exception', array(
'handler' => 'ErrorHandler::handleException',
'renderer' => 'ExceptionRenderer',
'handler' => 'Cake\Error\ErrorHandler::handleException',
'renderer' => 'Cake\Error\ExceptionRenderer',
'log' => true
));
/**
* Application namespace
*/
Configure::write('App.namespace', 'App');
/**
* Application wide charset encoding
*/
@@ -20,6 +20,10 @@
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
use Cake\Core\Plugin;
use Cake\Routing\Router;
/**
* Here, we are connecting '/' (base path) to controller called 'Pages',
* its action called 'display', and we pass a param to select the view file
@@ -88,7 +88,10 @@
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
}
App::uses('Dispatcher', 'Routing');
use Cake\Core\Configure;
use Cake\Network\Request;
use Cake\Network\Response;
use Cake\Routing\Dispatcher;
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(

0 comments on commit 4161c47

Please sign in to comment.
You can’t perform that action at this time.