Changeset 427
- Timestamp:
- 04/24/08 14:57:03 (9 months ago)
- Location:
- trunk/app
- Files:
-
- 2 modified
-
app_controller.php (modified) (1 diff)
-
views/tests/view.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/app_controller.php
r425 r427 12 12 class AppController extends Controller { 13 13 14 public $components = array('Auth', 'Cookie', 'Session' , 'Security'); // set Security component later14 public $components = array('Auth', 'Cookie', 'Session'); // set Security component later 15 15 16 16 public $helpers = array('Html', 'Form', 'Session'); -
trunk/app/views/tests/view.ctp
r426 r427 25 25 26 26 foreach ($data['Question'] as $val): 27 //exit(var_dump($val));27 //exit(debug($val)); 28 28 echo '<div>'; 29 29 30 30 $options = array(); // to build options radio buttons 31 31 32 echo $form->label('Result.'.$v[''], $val['worth'] .' points, '.$val['question']).'<br>'; 33 32 34 foreach ($val['Answer'] as $v): 33 35 $options[$v['id']] = $v['answer']; 34 36 endforeach; 37 38 echo $form->radio('Result.'.$v['id'], $options, array('separator'=>' ', 'legend'=>false)) . '<br /><br />'; 35 39 36 echo $form->label('Result.'.$v['id'], $val['worth'] .' points, '.$val['question']);37 echo $form->radio('Result.'.$v['id'], $options);38 39 40 echo $html->para(null, $val['hint']); 40 41 echo '</div>';
