Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. class News_ControllerPublic_Index extends XenForo_ControllerPublic_Abstract
  3. {
  4.     public function actionIndex()
  5.     {
  6.         $newsId = $this->_input->filterSingle('news_id', XenForo_Input::UINT);
  7.        
  8.         if ($newsId)
  9.         {
  10.             // User is viewing a single article so fetch and display it
  11.         }
  12.         else
  13.         {
  14.             // User wants to view all news articles so fetch them all and display them
  15.         }
  16.     }
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement