-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
27 additions
and
28 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
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 |
---|---|---|
|
@@ -6,5 +6,4 @@ | |
class Shared extends BaseController | ||
{ | ||
|
||
|
||
} |
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 |
---|---|---|
@@ -1,43 +1,41 @@ | ||
<?php | ||
|
||
namespace [MODULE_NAME]; | ||
|
||
use PPI\Module\Module as BaseModule; | ||
use PPI\Autoload; | ||
use PPI\Module\AbstractModule; | ||
|
||
class Module extends BaseModule | ||
class Module extends AbstractModule | ||
{ | ||
protected $_moduleName = '[MODULE_NAME]'; | ||
|
||
public function init($e) | ||
/** | ||
* Get the routes for this module | ||
* | ||
* @return \Symfony\Component\Routing\RouteCollection | ||
*/ | ||
public function getRoutes() | ||
{ | ||
Autoload::add(__NAMESPACE__, dirname(__DIR__)); | ||
return $this->loadYamlRoutes(__DIR__ . '/resources/config/routes.yml'); | ||
} | ||
|
||
/** | ||
* Get the configuration for this module | ||
* | ||
* @return array | ||
*/ | ||
public function getConfig() | ||
{ | ||
return include(__DIR__ . '/resources/config/config.php'); | ||
return $this->loadConfig(__DIR__ . '/resources/config/config.php'); | ||
} | ||
|
||
/** | ||
* Get the routes for this module | ||
* | ||
* @return \Symfony\Component\Routing\RouteCollection | ||
*/ | ||
public function getRoutes() | ||
public function getAutoloaderConfig() | ||
{ | ||
return $this->loadYamlRoutes(__DIR__ . '/resources/config/routes.yml'); | ||
return array( | ||
'Zend\Loader\StandardAutoloader' => array( | ||
'namespaces' => array( | ||
__NAMESPACE__ => __DIR__ . '/src/', | ||
), | ||
), | ||
); | ||
} | ||
|
||
// public function getServiceConfig() | ||
// { | ||
// return array('factories' => array( | ||
// | ||
// )); | ||
// } | ||
|
||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[MODULE_NAME]_home: | ||
pattern: /[MODULE_NAME]/home | ||
[MODULE_NAME]_Index: | ||
pattern: /[MODULE_NAME]/index | ||
defaults: { _controller: "[MODULE_NAME]:Index:index"} |
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