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


PHP BaseController::render方法代碼示例

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


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

示例1: render

 function render()
 {
     if (uri_string() != "/admin/login") {
         $this->slots['content'] .= '<p>' . anchor("admin/logout", 'Log out') . '</p>';
     }
     parent::render();
 }
開發者ID:qzqfirst,項目名稱:site,代碼行數:7,代碼來源:admin.php

示例2: render

 public function render($path, $param = [], $setting = [])
 {
     $predefinedSettings = ['title' => $this->setTitle()];
     if ($this->exists()) {
         $predefinedSettings = array_merge($predefinedSettings, ['design' => $this->game->present()->readDesign()]);
     }
     $settings = array_merge($predefinedSettings, $setting);
     return parent::render('game.profile.layout', ['content' => $this->theme->section($path, $param)], $settings);
 }
開發者ID:weddingjuma,項目名稱:world,代碼行數:9,代碼來源:GameBaseController.php

示例3: render

 public function render($path, $param = [], $setting = [])
 {
     $predefinedSettings = ['title' => $this->setTitle()];
     if ($this->exists()) {
         $predefinedSettings = array_merge($predefinedSettings, ['design' => $this->community->present()->readDesign()]);
     }
     $settings = array_merge($predefinedSettings, $setting);
     if (\Config::get('page-design') and isset($settings['design'])) {
         extract($settings['design']);
         $bgImage = !empty($bg_image) ? 'background-image:url(' . \Image::url($bg_image) . ');' : null;
         $this->theme->asset()->afterStyleContent("\n                body{\n                    " . $bgImage . "\n                    background-position: " . $bg_position . ";\n                    background-color: " . $bg_color . ";\n                    background-repeat: " . $bg_repeat . ";\n                    background-attachment : " . $bg_attachment . ";\n                }\n\n                a {\n                    color : " . $link_color . ";\n                }\n\n                .page-content{\n                    background-color: " . $content_bg_color . ";\n                }\n            ");
     }
     return parent::render('community.page.layout', ['content' => $this->theme->section($path, $param)], $settings);
 }
開發者ID:adamendvy89,項目名稱:intifadah,代碼行數:14,代碼來源:CommunityPageBaseController.php

示例4: render

 public function render($tpl, $params = [])
 {
     if ($this->_userinfo['roled'] == 3) {
         $params['menus_list'] = $this->_menus;
     } else {
         $params['menus_list'] = array();
         foreach ($this->_menus as $key => $item) {
             if (!in_array($item['action'], array('anchor', 'live', 'withdraw', 'roomset'))) {
                 $params['menus_list'][] = $item;
             }
         }
     }
     return parent::render($tpl, $params);
 }
開發者ID:TeamOfMalaysia,項目名稱:H,代碼行數:14,代碼來源:MemberController.php

示例5: render

 public function render($path, $param = [], $setting = [])
 {
     $predefinedSettings = [];
     if (\Auth::check()) {
         /**
          * If there is login we help this user to design his page
          */
         $predefinedSettings = array_merge($predefinedSettings, ['design' => \Auth::user()->present()->readDesign()]);
     }
     $settings = array_merge($predefinedSettings, $setting);
     if (\Config::get('page-design') and isset($settings['design'])) {
         extract($settings['design']);
         $bgImage = !empty($bg_image) ? 'background-image:url(' . \Image::url($bg_image) . ');' : 'background-image : none';
         $this->theme->asset()->afterStyleContent("\n                body{\n                    " . $bgImage . "\n                    background-position: " . $bg_position . ";\n                    background-color: " . $bg_color . ";\n                    background-repeat: " . $bg_repeat . ";\n                    background-attachment : " . $bg_attachment . ";\n                }\n\n                a {\n                    color : " . $link_color . ";\n                }\n\n                .page-content{\n                    background-color: " . $content_bg_color . ";\n                }\n            ");
     }
     return parent::render($path, $param, $settings);
 }
開發者ID:weddingjuma,項目名稱:world,代碼行數:17,代碼來源:UserBaseController.php

示例6: AltoRouter

<?php

$router = new AltoRouter();
//example
//$router->map( 'GET', '/customer/[i:id]/', 'CustomerController#getData' );
$match = $router->match();
if ($match) {
    //check if its a static file
    if (is_file("app/template/" . $match['target'])) {
        include_once "app/template/" . $match['target'];
    }
    if (strpos($match['target'], "#")) {
        list($object, $method) = explode("#", $match['target']);
        $view = new $object();
        $view->{$method}($match['params']);
    }
} else {
    header("HTTP/1.0 404.php Not Found");
    $error = new BaseController();
    $error->assign("title", "404");
    $error->render("404.php");
}
開發者ID:ilikes,項目名稱:FastPHPFramework,代碼行數:22,代碼來源:routing.php

示例7: updateProfileAction

 public function updateProfileAction()
 {
     session_start();
     parent::render('updateProfile');
     if (isset($_POST['update'])) {
         $user = new UserModel();
         if ($user->updateProfile() === true) {
             echo "Records Updated Successfully!!";
         } else {
             echo "Not updated";
         }
     }
     if (isset($_POST['change_password'])) {
         $user = new UserModel();
         if ($user->updatePassword() === true) {
             echo "Password Updated Successfully!!";
         } else {
             echo "Password cannot changed";
         }
     }
 }
開發者ID:kapsi44,項目名稱:Gangouts,代碼行數:21,代碼來源:UserController.php

示例8: render

 function render()
 {
     $this->slots['content'] = $this->load->view('blog/skeleton', $this->slots, true);
     parent::render();
 }
開發者ID:qzqfirst,項目名稱:site,代碼行數:5,代碼來源:blog.php

示例9: accessAction

 /**
  *@return void  
  * 
  */
 public function accessAction()
 {
     parent::render('adminPage');
 }
開發者ID:kapsi44,項目名稱:Gangouts,代碼行數:8,代碼來源:AdminController.php

示例10: startAction

 /**
  *rendring the home page
  */
 public function startAction()
 {
     parent::render("home");
 }
開發者ID:kapsi44,項目名稱:Gangouts,代碼行數:7,代碼來源:HomeController.php


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