/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
- <div>
- <h1><?= $header; ?></h1>
- </div>
-
-
- <?php if(isset( $msg )): ?>
- <h1><?= $msg; ?></h1>
- <?php endif; ?>
-
- <?php if(isset( $dump )): ?>
- <div>
- <h1>var_dump</h1>
- <?= var_dump( $dump ); ?>
- </div>
- <?php endif; ?>
-
- <?php if(isset( $msg )): ?>
- <div>
- <?php foreach( $arr as $row ) : ?>
- <p><?= $row; ?></p>
- <?php endforeach; ?>
- </div>
- <?php endif; ?>
-
- <div>
- <?php
- echo $this->Form->create('Post');
- echo $this->Form->input('dudes', array( 'name' => 'data[Post][author_id]'));
- echo $this->Form->input('content');
- echo $this->Form->input('Author.name', array( 'type' => 'text'));
- echo $this->Form->input('Test.name', array( 'type' => 'text'));
- echo $this->Form->end(__('Save Post', true));
- ?>
- </div>