Skip to content

Instantly share code, notes, and snippets.

@smzn

smzn/pview.ctp

Created Dec 11, 2019
Embed
What would you like to do?
pview.ctp
<div class="streets view">
<h2><?php echo __('Street'); ?></h2>
<?php $path = IMAGES;?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo0_0']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo0_45']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo90_0']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo90_45']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo180_0']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo180_45']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo270_0']); ?>
<?php echo $this->Html->image('/img/image/' . $street['Street']['photo270_45']); ?>
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($street['Street']['id']); ?>
&nbsp;
</dd>
<dt><?php echo __('Latitude'); ?></dt>
<dd>
<?php echo h($street['Street']['latitude']); ?>
&nbsp;
</dd>
<dt><?php echo __('Longitude'); ?></dt>
<dd>
<?php echo h($street['Street']['longitude']); ?>
&nbsp;
</dd>
<dt><?php echo __('Created'); ?></dt>
<dd>
<?php echo h($street['Street']['created']); ?>
&nbsp;
</dd>
<dt><?php echo __('Modified'); ?></dt>
<dd>
<?php echo h($street['Street']['modified']); ?>
&nbsp;
</dd>
</dl>
</div>
<div class="actions">
<h3><?php echo __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(__('Edit Street'), array('action' => 'edit', $street['Street']['id'])); ?> </li>
<li><?php echo $this->Form->postLink(__('Delete Street'), array('action' => 'delete', $street['Street']['id']), array('confirm' => __('Are you sure you want to delete # %s?', $street['Street']['id']))); ?> </li>
<li><?php echo $this->Html->link(__('List Streets'), array('action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New Street'), array('action' => 'add')); ?> </li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.