Show
Ignore:
Timestamp:
02/22/08 17:22:12 (11 months ago)
Author:
aarkerio
Message:

COntyroller to 1.2 cake version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/colleges_controller.php

    r177 r247  
    22/** 
    33    *  Karamelo E-Learning Platform 
    4     *  Manuel Montoya 2002-2007  
    5     *  GPL License manuel<at>mononeurona.org 
    6     *  Chipotle Software 
     4    *  Manuel Montoya 2002-2008  
     5    *  GPL License manuel<at>mononeurona<punto>org 
     6    *  Chipotle Software TM 
    77*/  
    88 
     
    1111class CollegesController extends AppController { 
    1212   
    13  public $helpers          = array('Ajax', 'Form', 'Fck', 'Time', 'Gags', 'Session'); 
     13 public $helpers          = array('Ajax', 'Fck', 'Time', 'Gags'); 
    1414   
    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()  
    1833 {      
    1934        $this->layout = 'portal'; 
     
    2540        $this->set('data', $this->College->find($conditions, $fields)); 
    2641         
    27         $this->set('Element', $this->Portal->statics()); // Charge Portal components aka Sidebars 
     42        //$this->set('Element', $this->Portal->statics()); // Charge Portal components aka Sidebars 
    2843 } 
    2944