Changeset 247 for trunk/app/controllers/colleges_controller.php
- Timestamp:
- 02/22/08 17:22:12 (11 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/colleges_controller.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/colleges_controller.php
r177 r247 2 2 /** 3 3 * Karamelo E-Learning Platform 4 * Manuel Montoya 2002-200 75 * GPL License manuel<at>mononeurona .org6 * Chipotle Software 4 * Manuel Montoya 2002-2008 5 * GPL License manuel<at>mononeurona<punto>org 6 * Chipotle Software TM 7 7 */ 8 8 … … 11 11 class CollegesController extends AppController { 12 12 13 public $helpers = array('Ajax', 'F orm', 'Fck', 'Time', 'Gags', 'Session');13 public $helpers = array('Ajax', 'Fck', 'Time', 'Gags'); 14 14 15 public $components = array('Portal', 'Mypagination', 'Security', 'Session'); 16 17 public function about() 15 public $components = array('Portal'); 16 17 public function isAuthorized() 18 { 19 if ($this->action == 'delete') 20 { 21 if ($this->Auth->user('group_id') == 1) 22 { 23 return true; 24 } else { 25 return false; 26 } 27 } 28 29 return true; 30 } 31 32 public function view() 18 33 { 19 34 $this->layout = 'portal'; … … 25 40 $this->set('data', $this->College->find($conditions, $fields)); 26 41 27 $this->set('Element', $this->Portal->statics()); // Charge Portal components aka Sidebars42 //$this->set('Element', $this->Portal->statics()); // Charge Portal components aka Sidebars 28 43 } 29 44
