Show
Ignore:
Timestamp:
05/23/08 22:39:30 (6 months ago)
Author:
aarkerio
Message:

Shares improved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/lessons/display.ctp

    r342 r559  
    1  
    21<h2>Lessons</h2> 
    32<?php 
    43//die(print_r($data)); 
    54 
    6 if ( count($data) < 1 ) 
    7 { 
     5if ( count($data) < 1 ): 
    86      echo $html->div(null, 'This teacher has not yet published lessons'); 
    9 } 
     7endif; 
    108 
    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 } 
     9foreach ($data as $v): 
     10  echo $html->para(null, $html->link($v['Lesson']['title'], '/lessons/view/'.$blog['User']['username'].'/'.$v['Lesson']['id'], array("class"=>"title"))); 
     11endforeach; 
    1512?>