Example #1
0
 public function getJs($admin = false)
 {
     $jsFiles = $cssFiles = $admin ? App_constants::getADMIN_JS_FILES() : App_constants::getJS_FILES();
     if ($jsFiles) {
         $scripts = '';
         foreach ($jsFiles as $js) {
             $scripts .= '<script type="text/javascript" src="' . base_url($js) . '"></script>';
         }
     }
     return $scripts;
 }
Example #2
0
 public function transactions()
 {
     App_constants::pushJS("assets/frontend/jquery_tables/jquery.dataTables.min.js");
     App_constants::pushCSS("assets/frontend/jquery_tables/jquery.dataTables.css");
     $transactions = $this->UserModel->getTransactions($this->user, $_GET);
     $this->load_view_user('user/transactions', array("user" => $this->user, "messages" => $this->getUnseenComments(), "transactions" => $transactions, "arrow" => "transactions"));
 }