Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12944172
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'
,
'Hello world from Obsidian'
);
HeaderController
::
run
(
$this
->
context
);
//Output Hello world
echo
"<p>Hello world!</p>"
;
//TODO: call an hello world view
//Serves footer
FooterController
::
run
(
$this
->
context
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 18, 17:05 (18 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3152783
Default Alt Text
HelloWorldApplication.php (1 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment