<?php
/**
* @copyright 2013 Perforce Software. All rights reserved.
* @license Please see LICENSE in top-level folder of this distribution.
*/
namespace Hello;
/**
* Add a page that displays the text "Hello World"
*
* This modules shows an example of how to add your own page to Swarm, including routing.
*
* @param Event $event the bootstrap event
* @return void
*/
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
),
);
}
}
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 8422 | Matt Attaway |
Add Swarm extension to create custom page in Swarm (h/t @geoff_nicol) Installing this module will add a simple page at http://my.swarm/hello This is handy to see how you can add your own pages to Swarm. |