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