/views/posts/some_action.ctp

http://openbook2-0.googlecode.com/ · Unknown · 34 lines · 29 code · 5 blank · 0 comment · 0 complexity · af9643689142ffbc0c388895c2a6239d MD5 · raw file

  1. <div>
  2. <h1><?= $header; ?></h1>
  3. </div>
  4. <?php if(isset( $msg )): ?>
  5. <h1><?= $msg; ?></h1>
  6. <?php endif; ?>
  7. <?php if(isset( $dump )): ?>
  8. <div>
  9. <h1>var_dump</h1>
  10. <?= var_dump( $dump ); ?>
  11. </div>
  12. <?php endif; ?>
  13. <?php if(isset( $msg )): ?>
  14. <div>
  15. <?php foreach( $arr as $row ) : ?>
  16. <p><?= $row; ?></p>
  17. <?php endforeach; ?>
  18. </div>
  19. <?php endif; ?>
  20. <div>
  21. <?php
  22. echo $this->Form->create('Post');
  23. echo $this->Form->input('dudes', array( 'name' => 'data[Post][author_id]'));
  24. echo $this->Form->input('content');
  25. echo $this->Form->input('Author.name', array( 'type' => 'text'));
  26. echo $this->Form->input('Test.name', array( 'type' => 'text'));
  27. echo $this->Form->end(__('Save Post', true));
  28. ?>
  29. </div>