SHARE
TWEET

Untitled

a guest Sep 13th, 2017 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
Top