/** * Process * * Moves view templates for given routing prefix * * e.g. * Move admin_action.ctp to Admin/action.ctp * Extract admin_ prefixed actions from controller and create new controller in Admin subfolder * * @param mixed $path * @return bool */ protected function _process($path = null) { $new = str_replace('Template' . DS, 'Template' . DS . Inflector::Camelize($this->params['prefix']) . DS, $path); $new = str_replace($this->params['prefix'] . '_', '', $new); return $this->Stage->move($path, $new); }