Changeset 533

Show
Ignore:
Timestamp:
05/20/08 15:14:25 (8 months ago)
Author:
aarkerio
Message:

Entry test fixture

Location:
trunk/app
Files:
3 added
2 modified

Legend:

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

    r532 r533  
    4848             $limit           = 15; 
    4949             $this->set('set', true); 
    50     endif; 
    51          
    52     $this->pageTitle = 'Your Images'; 
    53          
    54     $conditions = array("user_id"=>$this->Auth->user('id')); 
    55          
    56     $fields     = array("id", "file", "user_id"); 
    57          
    58     $order      = "Image.id DESC"; 
    59          
    60     $this->set('data', $this->Image->findAll($conditions, $fields, $order, $limit)); 
     50   endif; 
     51         
     52   $this->pageTitle = 'Your Images'; 
     53         
     54   $conditions = array("user_id"=>$this->Auth->user('id')); 
     55         
     56   $fields     = array("id", "file", "user_id"); 
     57         
     58   $order      = "Image.id DESC"; 
     59         
     60   $this->set('data', $this->Image->findAll($conditions, $fields, $order, $limit)); 
    6161 } 
    6262    
  • trunk/app/controllers/pollrows_controller.php

    r526 r533  
    88class PollrowsController extends AppController 
    99 
    10   public $helpers       = array('Ajax'); 
     10 public $helpers       = array('Ajax'); 
    1111 
    1212 public function beforeFilter()  
    1313 { 
    1414   parent::beforeFilter(); 
     15   $this->Auth->allow(array('vote')); 
    1516 } 
    1617