<?php use Core\ResultExecution\ViewEngine; use Core\HtmlHelpers\Html; ?> <section> <h4>Users: </h4> <div id="users-page"> <?php Html::renderAction('users', 'paged', array('page' => $model), 'administrators'); ?> </div> </section>
<div>Name: <?php ViewEngine::show($model->getProduct()->getName()); ?> </div> <div>Category: <?php ViewEngine::show($model->getProduct()->getCategoryName()); ?> </div> <div>Description: <?php ViewEngine::show($model->getProduct()->getDescription()); ?> </div> </section> <section> <?php Html::renderAction('Comments', 'newComment', array('productId' => $model->getProduct()->getId())); ?> </section> <section> <?php foreach ($model->getComments() as $comment) { ?> <div class="comment"> <div>Username: <?php ViewEngine::show($comment->getUsername()); ?> </div> <div><?php ViewEngine::show($comment->getCommentDate()); ?> </div>
<main id="main"> <?php include_once $view; ?> </main> </div> <div class="col-lg-2"> <aside> <?php Html::renderAction('cart', 'show'); ?> </aside> <aside> <h4>Categories</h4> <?php Html::renderAction('categories', 'all'); ?> </aside> </div> <?php include '../Views/Shared/Footer.php'; ?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <script type="text/javascript" src='<?php echo APP_ROOT_URL; ?> Core/Scripts/AjaxFormHelper.js'></script> <script type="text/javascript" src='<?php echo APP_ROOT_URL;
<?php use Core\ResultExecution\ViewEngine; use Core\HtmlHelpers\Html; ?> <section> <h4>Products: </h4> <?php echo Html::link('editors/products/newproduct', 'Add product', 'btn btn-info '); ?> <div id="products-page"> <?php Html::renderAction('products', 'paged', array('page' => $model), 'editors'); ?> </div> </section>
<?php use Core\ResultExecution\ViewEngine; use Core\HtmlHelpers\Html; ?> <header> <?php Html::renderAction('navigation', 'show'); ?> <h1 class="col-lg-10 col-lg-offset-1">Shop</h1> <div class="clearfix"> </header>