Skip to content

Content View

mchalupar edited this page Jan 17, 2013 · 1 revision

In this View the detail page for every User Content is designed.

##Screenshot: Detail Content Page

##Technical Characteristics This view is a very good example, how to realize a strict MVC-Concept. Only a few php-scripts are needet to include the data given from the controller to render it in HTML.

            <?php foreach ($this->comments as $comment) { ?>
                <div class="row comment">
                    <div class="span2 meta">
                        <img src="http://placehold.it/105x80" width="105" height="80" class="img-polaroid">

                        <div class="meta-box">
                            <div class="name"><?php echo $comment['login_name_usr']; ?></div>
                            <div class="date"><?php echo $comment['created_cmt']; ?></div>
                        </div>
                    </div>
                    <div class="span10 comment-content"><?php echo $comment['body_cmt']; ?></div>
                </div>
            <?php } ?>

Clone this wiki locally