PHP Classes

File: views/frontend/posts/posts.phtml

Recommend this page to a friend!
  Classes of carlos carvalho   COC Framework   views/frontend/posts/posts.phtml   Download  
File: views/frontend/posts/posts.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: COC Framework
Web application development MVC framework
Author: By
Last change:
Date: 7 years ago
Size: 491 bytes
 

Contents

Class file image Download
<h2>Bem aos Posts</h2>

<?php
if (isset($posts)):
   
?>
<table class="table table-bordered">
        <thead><tr><th>ID</th><th>TITULO</th> </tr></thead><tbody>
        <?php
       
foreach ($posts as $post):
                echo
"<tr><td>{$post->id}</td><td>{$post->titulo}</td></tr>";

        endforeach;
       
?>
</tbody>
    </table>
    <?php
endif;

?>
<div class="pull-right">
    <a class="btn btn-primary" href="<?php echo base_url('posts/novo'); ?>">Novo</a>
</div>