Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move basic view pages to separate library files
- Loading branch information
Showing
24 changed files
with
1,620 additions
and
1,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* Ingo basic view. | ||
* | ||
* Base URL Parameters: | ||
* - page: (string) The current page view. | ||
* | ||
* Copyright 2013 Horde LLC (http://www.horde.org/) | ||
* | ||
* See the enclosed file LICENSE for license information (ASL). If you | ||
* did not receive this file, see http://www.horde.org/licenses/apache. | ||
* | ||
* @author Michael Slusarz <slusarz@horde.org> | ||
* @category Horde | ||
* @copyright 2013 Horde LLC | ||
* @license http://www.horde.org/licenses/apache ASL | ||
* @package Ingo | ||
*/ | ||
|
||
require_once __DIR__ . '/lib/Application.php'; | ||
Horde_Registry::appInit('ingo'); | ||
|
||
$vars = $injector->getInstance('Horde_Variables'); | ||
|
||
$class = 'Ingo_Basic_' . Horde_String::ucfirst($vars->page); | ||
if (!class_exists($class)) { | ||
throw new Ingo_Exception('Page not found: ' . $vars->page); | ||
} | ||
|
||
$ob = new $class($vars); | ||
|
||
$status = $ob->status(); | ||
|
||
$page_output->header(array( | ||
'title' => $ob->title, | ||
'view' => $registry::VIEW_BASIC | ||
)); | ||
|
||
echo $status; | ||
$ob->render(); | ||
|
||
$page_output->footer(); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.