當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseController::prepareHTMLData方法代碼示例

本文整理匯總了PHP中BaseController::prepareHTMLData方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::prepareHTMLData方法的具體用法?PHP BaseController::prepareHTMLData怎麽用?PHP BaseController::prepareHTMLData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseController的用法示例。


在下文中一共展示了BaseController::prepareHTMLData方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getAccountDetails

 public function getAccountDetails(){
     
         ///Validate if the user has been loggen in
         if (parent::allowAccess()){
             
              $webUserDTO = $this->session->userdata('webUserDTO');
             
             //Get Actual User Details
             $data['userData'] = $this->UserModel->get_user($webUserDTO->userID);
             
             $data['entityName'] = $webUserDTO->entityName; 
             
             parent::prepareHTMLData("Mi Cuenta",
                                     "Mi Cuenta",
                                     array("<script src='js/ConredPack/Conred_AccountView.js.php'></script>",
                                             "<script src='js/ConredPack/Conred_ValidateUtils.js.php'></script>",
                                             "<script src='js/ConredPack/md5-min.js.php'></script>",
                                             "<script src='js/ConredPack/sha1-min.js.php'></script>"));
             
             ///Load Content
             $this->template->write_view('content', 'Account/AccountView.php', $data);
             $this->template->render();                
             
         }
         else{
             //Deny Hacking Access
             parent::destroySession();
         }        
 }
開發者ID:gdalvarezr,項目名稱:middleware,代碼行數:29,代碼來源:AccountController.php

示例2: index

    function index(){

            ///Validate if the user has been loggen in
            if (parent::allowAccess()){
                
                parent::prepareHTMLData("Control de Usuarios",
                                        "Control de Usuarios",
                                        array("<script src='js/ConredPack/Conred_UserView.js.php'></script>"));
                ///Load Content
                $this->template->write_view('content', 'User/UserView.php');
                $this->template->render();        
                
            }
            else{
                //Deny Hacking Access
                parent::destroySession();
            }
    }
開發者ID:gdalvarezr,項目名稱:middleware,代碼行數:18,代碼來源:UserController.php

示例3: index

    function index(){

        ///Validate if the user has been loggen in
        if (parent::allowAccess()){

            parent::prepareHTMLData("Panel de Control",
                                    "Panel de Control - Transacciones Recientes (10 min.)",
                                    array("<script src='js/ConredPack/Conred_IndexView.js.php'></script>"));
            ///Load Content
            $this->template->write_view('content', 'Index/IndexView');
            $this->template->render();            
            
        }
        else{
            //Deny Hacking Access
            parent::destroySession();
        }
    }
開發者ID:gdalvarezr,項目名稱:middleware,代碼行數:18,代碼來源:IndexController.php

示例4: index

    function index(){

        ///Validate if the user has been loggen in
        if (parent::allowAccess()){

            parent::prepareHTMLData("Bandeja de Entrada",
                                    "Bandeja de Entrada - Mensajes del Sistema",
                                    array("<script src='js/ConredPack/Conred_InboxView.js.php'></script>"));

            $webUserDTO = $this->session->userdata('webUserDTO');

            //Get User Messages
            $data['userMessages'] = $this->InboxModel->get_messages_per_page($webUserDTO->userID, 1); //Init. Page
            
            //Get Max. Pages
            $data['maxPages'] = $this->InboxModel->get_pages_messages_counter($webUserDTO->userID); 
            
            //Get Current Page
            $data['currentPage'] = $this->InboxModel->get_current_page(); 
            
            //Get Max. Pages Total
            $data['maxPagesTotal'] = $this->InboxModel->get_max_pages_total();             

            //Get Items X Page
            $data['itemsXPage'] = $this->InboxModel->get_itemsXpage();             
            
            ///Load Content
            $this->template->write_view('content', 'Inbox/InboxView', $data);
            $this->template->render();            
            
        }
        else{
            //Deny Hacking Access
            parent::destroySession();
        }
    }
開發者ID:gdalvarezr,項目名稱:middleware,代碼行數:36,代碼來源:InboxController.php

示例5: array

 function decoderBase24(){
     ///Validate if the user has been loggen in
     if (parent::allowAccess()){
         
         parent::prepareHTMLData("Decodificador Base 24",
                                 "Decodificador Base 24",
                                 array("<script src='js/ConredPack/Conred_DecoderBase24View.js.php'></script>",
                                         "<script src='js/ConredPack/Conred_ValidateUtils.js.php'></script>"));
         
         ///Load Content
         $this->template->write_view('content', 'Management/DecoderBase24View', null);
         $this->template->render();    
     }
     else{
         //Deny Hacking Access
         parent::destroySession();
     }
 }    
開發者ID:gdalvarezr,項目名稱:middleware,代碼行數:18,代碼來源:ManagementController.php


注:本文中的BaseController::prepareHTMLData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。