PageRenderTime 18ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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