当前位置: 首页>>代码示例>>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;未经允许,请勿转载。