###前提・実現したいこと
cakephpでビューからコントローラへ配列で渡したい
<?php echo $this->Form->create('Post', array('type' => 'file', 'url' => 'admin_add')); ?> <table> <tr> <th> 画像</th> <td> <?php echo $this->Form->input('Post.photo', array('label' => false)); ?> <?php echo $this->Form->input('Post.photo_dir', array('type' => 'hidden')); ?> </td> <td> <?php echo $this->Form->input('Post.photo', array('label' => false)); ?> <?php echo $this->Form->input('Post.photo_dir', array('type' => 'hidden')); ?> </td> </tr> </table> <?php echo $this->Form->end('Submit'); ?>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/05/02 04:15