Changeset 636 for trunk/app/controllers/news_controller.php
- Timestamp:
- 07/09/08 21:55:19 (5 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/news_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/news_controller.php
r621 r636 32 32 $this->layout = 'portal'; 33 33 34 $this->pageTitle = 'Karamelo::Home'; 35 36 $conditions = array("News.status"=>1); 37 38 $fields = null; 39 40 $order = "News.id DESC"; 41 42 $limit = 8; 43 44 //$this->set('data', $this->News->findAll($conditions, $fields, $order, $limit)); 34 $this->pageTitle = 'News'; 35 45 36 $data = $this->paginate('News', array('News.status = 1')); 46 37 … … 61 52 62 53 $this->News->User->unbindAll(); 63 54 $this->News->Discussion->unbindModel(array('belongsTo'=>array('News'))); 64 55 $conditions = array('News.status'=>1, 'News.id'=>$new_id); 65 56
