PHP Classes

File: view/album/album/index.phtml

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Album Manager   view/album/album/index.phtml   Download  
File: view/album/album/index.phtml
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Album Manager
Manage a list of albums with Zend Framework 2
Author: By
Last change:
Date: 7 years ago
Size: 805 bytes


Class file image Download
// module/Album/view/album/album/index.phtml:

$title = 'My albums';
<h1><?php echo $this->escapeHtml($title); ?></h1>
    <a href="<?php echo $this->url('album', array('action'=>'add'));?>">Add new album</a>

<table class="table">
<?php foreach ($albums as $album) : ?>
    <td><?php echo $this->escapeHtml($album->title);?></td>
    <td><?php echo $this->escapeHtml($album->artist);?></td>
        <a href="<?php echo $this->url('album',
'action'=>'edit', 'id' => $album->id));?>">Edit</a>
        <a href="<?php echo $this->url('album',
'action'=>'delete', 'id' => $album->id));?>">Delete</a>
<?php endforeach; ?>