diff options
Diffstat (limited to 'views/Users/profile.html.php')
-rw-r--r-- | views/Users/profile.html.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/views/Users/profile.html.php b/views/Users/profile.html.php new file mode 100644 index 0000000..a29304d --- /dev/null +++ b/views/Users/profile.html.php @@ -0,0 +1,9 @@ +<h1><?=$user->name; ?></h1> +<?= $this->form->create($photo, array('type' => 'file')); ?> + <?php if($photo->exists()): ?> + <?= $this->form->label("This is you"); ?> + <?php else: ?> + <p>Upload a photo</p> + <?= $this->form->field('file', array('type' => 'file')); ?> + <?php endif; ?> +<?= $this->form->end(); ?>
\ No newline at end of file |