예제 #1
0
 public function run()
 {
     // Authenticate user
     $user = $this->getLogin()->authenticate();
     if ($user === null) {
         $user = new User('');
     }
     $this->user = $user;
     // Authorize user
     if (!$this->authorize($user)) {
         // TODO Handle not authorized login, move to login page but store request
         // die("Not authorized");
     }
     // Run Task
     $controller = $this->getMVCFactory()->loadController($this->page->getModule(), $this->getPage()->getGID());
     $rendered = $controller->runTask('web', $this->getTask());
     if ($rendered !== null) {
         $this->getDocument()->setContent($rendered);
         $this->getDocument()->render();
     }
     _tc('end');
 }
예제 #2
0
<?php

/**
 * The view.php (required) is a visual output representation to user using data provided by query.php.
 * It generally should contain HTML between <body> and </body>.
 */
include _i('inc/tpl/header.php');
?>

<h1><?php 
echo _t('Welcome to PHPLucidFrame');
?>
</h1>
<?php 
echo _tc('about');
?>
<h3><?php 
echo _t('Prerequisites');
?>
</h3>
<ul>
    <li>Web Server (For example, Apache with <code class="inline">mod_rewrite</code> enabled)</li>
    <li>PHP version 5.3.0 or newer (<code class="inline">mcrypt</code> extension enabled, but by no means required.)</li>
    <li>MySQL 5.0+ with MySQLi enabled.</li>
</ul>
<p>
    <a href="http://phplucidframe.com" class="button large green"><?php 
echo _t('Download PHPLucidFrame');
?>
</a>
</p>