当前位置: 首页>>代码示例>>PHP>>正文


PHP Admin::render方法代码示例

本文整理汇总了PHP中Admin::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::render方法的具体用法?PHP Admin::render怎么用?PHP Admin::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Admin的用法示例。


在下文中一共展示了Admin::render方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: indexAction

 public function indexAction()
 {
     $fc = FrontController::getInstance();
     $admin = new Admin();
     $output = $admin->render(ADMIN_TEMPLATE, ADMIN_LOGIN);
     $fc->setBody($output);
 }
开发者ID:TimaVox,项目名称:First-MVC,代码行数:7,代码来源:AdminController.php

示例2: render

 /**
  * @protected
  */
 public function render()
 {
     if ($this->member) {
         if ($this->actionView) {
             $this->actionView->set("member", $this->member);
         }
         if ($this->layoutView) {
             $this->layoutView->set("member", $this->member);
         }
     }
     if ($this->organization) {
         if ($this->actionView) {
             $this->actionView->set("organization", $this->organization);
         }
         if ($this->layoutView) {
             $this->layoutView->set("organization", $this->organization);
         }
     }
     parent::render();
 }
开发者ID:HLitmus,项目名称:WebApp,代码行数:23,代码来源:vendor.php

示例3: loginForm

 public function loginForm()
 {
     $template = new Template('admin/ui.login.tpl');
     $admin = new Admin();
     return $admin->render($template->parse());
 }
开发者ID:BackupTheBerlios,项目名称:frameorm-svn,代码行数:6,代码来源:Page.class.php

示例4: die

<?php

/**
 * @package		Arastta eCommerce
 * @copyright	Copyright (C) 2015 Arastta Association. All rights reserved. (arastta.org)
 * @credits		See CREDITS.txt for credits and other copyright notices.
 * @license		GNU General Public License version 3; see LICENSE.txt
 */
if (version_compare(PHP_VERSION, '5.3.10', '<')) {
    die('Your host needs to use PHP 5.3.10 or higher to run Arastta.');
}
define('AREXE', 1);
require_once 'define.php';
// Startup
require_once DIR_SYSTEM . 'library/client.php';
Client::setName('admin');
require_once DIR_SYSTEM . 'startup.php';
// App
$app = new Admin();
// Initialise main classes
$app->initialise();
// Load eCommerce classes
$app->ecommerce();
// Route the app
$app->route();
// Dispatch the app
$app->dispatch();
// Render the output
$app->render();
开发者ID:sojimaxi,项目名称:arastta,代码行数:29,代码来源:index.php

示例5: function

    require_once $composer_autoload;
}
const ENV_API_KEY = 'THISDATA_API_KEY';
const ENV_JS_WRITE_KEY = 'THISDATA_JS_WRITE_KEY';
const ENV_JS_SIGNATURE = 'THISDATA_JS_SIGNATURE';
const ENV_WEBHOOK_SIGNATURE = 'THISDATA_WEBHOOK_SIGNATURE';
if (version_compare(\PHP_VERSION, '5.5', '<')) {
    add_action('admin_notices', function () {
        $message = sprintf(sprintf(__('Sorry your PHP version is too old. The ThisData plugin requires PHP >= 5.5. You are running version %s.', 'thisdata-plugin'), \PHP_VERSION), Admin::getSettingsPageURL());
        echo '<div class="notice notice-info"><p>' . $message . '</p></div>';
    });
} else {
    if (is_admin()) {
        $admin = new Admin();
        $admin->init();
        $admin->render();
    }
    add_action('init', function () {
        if ($apiKey = API::getKey()) {
            try {
                Events::init(API::getEventsEndpoint());
                Webhook::init();
                JS::init();
            } catch (\Exception $e) {
                add_action('admin_notices', function () use($e) {
                    $message = $e->getMessage();
                    echo '<div class="notice notice-error"><p>' . $message . '</p></div>';
                });
            }
        } elseif (empty($_GET['page']) || $_GET['page'] !== Admin::SETTINGS) {
            add_action('admin_notices', function () {
开发者ID:thisdata,项目名称:thisdata-wordpress,代码行数:31,代码来源:index.php


注:本文中的Admin::render方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。