public function dispatch() { $url = implode('/', $this->request->params['pass']); $Dispatcher = new AssetsDispatcher(); $Dispatcher->dispatch($url, $this->response); }
<?php App::uses('AssetsDispatcher', 'Asset.Lib'); $Dispatcher = new AssetsDispatcher(); $Dispatcher->dispatch($url, $response);