From fb6e22e1457ce4d1503c739d7354d51fe3af4e94 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 6 Dec 2008 21:14:36 +0000 Subject: Implemented photo::_get_photo_add(). You need to create the var/uploads directory and make it writable by the server. The location of the temporary upload directory is specified in config/upload.php --- core/controllers/photos.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/controllers/photos.php') diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 143c3bb8..7a599f4b 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -35,4 +35,13 @@ class Photos_Controller extends Items_Controller { print $template; } + + /** + * @see Rest_Controller::_form_add($parameters) + */ + public function _form_add($parent_id) { + $parent = ORM::factory("item", $parent_id); + + print photo::get_add_form($parent)->render(); + } } -- cgit v1.2.3