Changeset 680 for trunk/app/controllers
- Timestamp:
- 07/30/08 00:32:57 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/webquests_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/webquests_controller.php
r574 r680 171 171 } 172 172 173 // see treasure174 public function admin_see($ user_id, $webquest_id)173 // see webquest with student results 174 public function admin_see($student_id, $webquest_id) 175 175 { 176 176 $this->layout = 'popup'; 177 177 178 $this->set('data', $this->Webquest->getQuest($user_id, $webquest_id)); 178 $this->set('data', $this->Webquest->getQuest($student_id, $webquest_id)); 179 } 180 181 public function admin_view($webquest_id) 182 { 183 $this->layout = 'popup'; 184 $conditions = array('Webquest.id'=>$webquest_id, 'Webquest.user_id'=>$this->Auth->user('id')); 185 $this->set('data', $this->Webquest->find($conditions, $fields)); 179 186 } 180 187
