Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12742547
HelloWorldApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
HelloWorldApplication.php
View Options
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Hello World application class
*
* @package ObsidianWorkspaces
* @subpackage HelloWorld
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
/**
* Hello World application class
*
* This class provides a sample of how an application is structured.
*/
class
HelloWorldApplication
extends
Application
{
/**
* @var string the application name
*/
public
static
$name
=
"HelloWorld"
;
/**
* Handles controller request
*/
public
function
handleRequest
()
{
//Reference to URL fragments and Smarty engine
$url
=
$this
->
context
->
url
;
$smarty
=
$this
->
context
->
templateEngine
;
//Serves header
$smarty
->
assign
(
'PAGE_TITLE'
,
$title
);
HeaderController
::
Run
(
$this
->
context
);
//Output Hello world
echo
"<p>Hello world!</p>"
;
//TODO: call an hello world view
//Servers footer
FooterController
::
Run
(
$this
->
context
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 16, 13:49 (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3159069
Default Alt Text
HelloWorldApplication.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment