Move profiling and debugging out of the scaffolding and into the

developer module.
This commit is contained in:
Tim Almdal
2009-03-15 20:35:24 +00:00
parent 6ac6c6a7e0
commit bf4cd1b813
4 changed files with 42 additions and 34 deletions

View File

@@ -86,6 +86,16 @@ class Admin_Developer_Controller extends Admin_Controller {
}
}
public function session($key) {
if (!(user::active()->admin)) {
throw new Exception("@todo UNAUTHORIZED", 401);
}
Session::instance()->set($key, $this->input->get("value", false));
$this->auto_render = false;
url::redirect($_SERVER["HTTP_REFERER"]);
}
private function _get_module_create_content($form, $errors) {
$config = Kohana::config("developer.methods");