Changeset 110
- Timestamp:
- 07/18/07 15:14:10 (1 year ago)
- Files:
-
- branch/controllers/posts_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branch/controllers/posts_controller.php
r109 r110 38 38 39 39 // The view function finds by Stub instead of ID for SEO. 40 function view($s tub= null) {40 function view($slug = null) { 41 41 if(!$id) { 42 42 $this->Session->setFlash('Invalid Post.'); 43 43 $this->redirect(array('action'=>'index'), null, true); 44 44 } 45 $this->set('post', $this->Post->findByS tub($stub));45 $this->set('post', $this->Post->findBySlug($slug)); 46 46 } 47 47