profile.html.php 310 B

123456789
  1. <h1><?=$user->name; ?></h1>
  2. <?= $this->form->create($photo, array('type' => 'file')); ?>
  3. <?php if($photo->exists()): ?>
  4. <?= $this->form->label("This is you"); ?>
  5. <?php else: ?>
  6. <p>Upload a photo</p>
  7. <?= $this->form->field('file', array('type' => 'file')); ?>
  8. <?php endif; ?>
  9. <?= $this->form->end(); ?>