Skip to content

Instantly share code, notes, and snippets.

@smzn
Last active May 3, 2017 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smzn/61d83e2eecd7da6673f78c09aff2a9d5 to your computer and use it in GitHub Desktop.
Save smzn/61d83e2eecd7da6673f78c09aff2a9d5 to your computer and use it in GitHub Desktop.
upload.ctp
<div class="schools form">
<?php echo $this->Form->create('School',array('url'=>'import','type'=>'file')); ?>
<fieldset>
<legend><?php echo __('Add School'); ?></legend>
<?php
echo $this->Form->input('XmlFile',array('label'=>'','type'=>'file'));
?>
</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
<h3><?php echo __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(__('List Schools'), array('action' => 'index')); ?></li>
<li><?php echo $this->Html->link(__('List Regions'), array('controller' => 'regions', 'action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New Region'), array('controller' => 'regions', 'action' => 'add')); ?> </li>
<li><?php echo $this->Html->link(__('List Categories'), array('controller' => 'categories', 'action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New Category'), array('controller' => 'categories', 'action' => 'add')); ?> </li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment