Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <title></title>
- <h1>Новости</h1>
- <?php
- $news = $this->data['news'];
- foreach ($news->getNews() as $id=>$record) {
- ?>
- <h2><a href="/article.php?id=<?php echo $id ?>"><?php echo $record->getHeader(); ?> </a></h2>
- <article> <?php echo $record->getShortMessage(); ?> </article>
- <hr>
- <?php
- }
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement