Changeset 138
- Timestamp:
- 07/25/07 17:13:45 (1 year ago)
- Files:
-
- branch/app_controller.php (modified) (1 diff)
- branch/config/core.php (modified) (1 diff)
- branch/controllers/posts_controller.php (modified) (1 diff)
- branch/views/elements/recent_posts.ctp (added)
- branch/views/layouts/950px.ctp (added)
- branch/views/posts/recent_posts.ctp (added)
- branch/webroot/css/950px.css (added)
- branch/webroot/img/nhm-header.gif (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branch/app_controller.php
r136 r138 74 74 75 75 76 $sitetheme = " default";76 $sitetheme = "950px"; 77 77 78 78 $this->layout = $sitetheme; branch/config/core.php
r137 r138 55 55 * In development mode, you need to click the flash message to continue. 56 56 */ 57 define('DEBUG', 0);57 define('DEBUG', 2); 58 58 /** 59 59 * Turn off or enable cache checking application-wide. branch/controllers/posts_controller.php
r135 r138 210 210 211 211 } 212 213 function recentPosts($max = 5) 214 { 215 $recentposts = $this->Post->findAll(array(array('Post.published'=>1), array('Post.post_date'=>'<= NOW()')),null,null,$max); 216 if(isset($this->params['requested'])) { 217 return $recentposts; 218 } 219 $this->set('recentposts', $recentposts); 220 } 212 221 213 222 }