1 2 3 4
<?= $this->form->create($photo, array('type' = > 'file')); ?> <h1>Upload a photo</h1> <?= $this->form->field('file', array('type' => 'file')); ?> <? $this->form->end(); ?>