PHP Classes

File: views/Products/index.mvc.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP MVC Framework   views/Products/index.mvc.php   Download  
File: views/Products/index.mvc.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP MVC Framework
Example application using an MVC framework
Author: By
Last change:
Date: 1 month ago
Size: 374 bytes
 

Contents

Class file image Download
{% extends "base.mvc.php" %}

{% block title %}Products{% endblock %}

{% block body %}

<h1>Products</h1>

<a href="/products/new">New Product</a>

<p>Total: {{ total }}</p>

{% foreach ($products as $product): %}

    <h2>
        <a href="/products/{{ product["id"] }}/show">
            {{ product["name"] }}
        </a>
    </h2>
   
{% endforeach; %}

{% endblock %}