Changeset 559 for trunk/app/views/lessons
- Timestamp:
- 05/23/08 22:39:30 (6 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/lessons/display.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/lessons/display.ctp
r342 r559 1 2 1 <h2>Lessons</h2> 3 2 <?php 4 3 //die(print_r($data)); 5 4 6 if ( count($data) < 1 ) 7 { 5 if ( count($data) < 1 ): 8 6 echo $html->div(null, 'This teacher has not yet published lessons'); 9 } 7 endif; 10 8 11 foreach ($data as $v) 12 { 13 echo $html->para(null, $hrml->link($v['Lesson']['title'], '/lessons/view/'.$blog['User']['username'].'/'.$v['Lesson']['id'], array("class"=>"title"))); 14 } 9 foreach ($data as $v): 10 echo $html->para(null, $html->link($v['Lesson']['title'], '/lessons/view/'.$blog['User']['username'].'/'.$v['Lesson']['id'], array("class"=>"title"))); 11 endforeach; 15 12 ?>
