PHP Classes

File: app/sts/Views/blog/listArticle.php

Recommend this page to a friend!
  Classes of Marcelo Telles   CRUD PHP MVC   app/sts/Views/blog/listArticle.php   Download  
File: app/sts/Views/blog/listArticle.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CRUD PHP MVC
Application that uses the MVC Design Pattern
Author: By
Last change:
Date: 5 months ago
Size: 396 bytes
 

Contents

Class file image Download
<?php
echo "<h1>Listar artigos</h1>";

foreach (
$this->Data['article'] as $article) {
   
extract($article);
    echo
"ID: {$id} <br>";
    echo
"Titulo: {$title} <br>";
    echo
"Conteúdo: {$content} ";
    echo
"<a href='/exemplomvc/edit?id={$id}' class='btn btn-info pull-right'>Edit</a> ";
    echo
"<a href='/exemplomvc/delete?id={$id}' class='btn btn-danger pull-right'>Delete</a> <hr>";
}