diff --git a/Module.php b/Module.php new file mode 100644 index 0000000..19f8360 --- /dev/null +++ b/Module.php @@ -0,0 +1,25 @@ +initAutoloader(); + } + + public function initAutoloader() + { + include __DIR__ . '/autoload_register.php'; + } + + public function getConfig($env = null) + { + return new Config(include __DIR__ . '/configs/module.config.php'); + } +} diff --git a/autoload_classmap.php b/autoload_classmap.php new file mode 100644 index 0000000..9f75bd5 --- /dev/null +++ b/autoload_classmap.php @@ -0,0 +1,5 @@ + __DIR__ . DIRECTORY_SEPARATOR . 'Module.php', + 'ZendSkeletonModule\\Controller\\SkeletonController' => __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'ZendSkeletonModule' . DIRECTORY_SEPARATOR . 'Controller' . DIRECTORY_SEPARATOR . 'SkeletonController.php', +); \ No newline at end of file diff --git a/autoload_function.php b/autoload_function.php new file mode 100644 index 0000000..3ea81c4 --- /dev/null +++ b/autoload_function.php @@ -0,0 +1,12 @@ + array( + 'instance' => array( + 'alias' => array( + 'skeleton' => 'ZendSkeletonModule\Controller\SkeletonController', + ), + 'Zend\View\PhpRenderer' => array( + 'methods' => array( + 'setResolver' => array( + 'resolver' => 'Zend\View\TemplatePathStack', + 'options' => array( + 'script_paths' => array( + 'skeleton' => __DIR__ . '/../views', + ), + ), + ), + ), + ), + ), + ), +); diff --git a/src/ZendSkeletonModule/Controller/SkeletonController.php b/src/ZendSkeletonModule/Controller/SkeletonController.php new file mode 100644 index 0000000..73d561c --- /dev/null +++ b/src/ZendSkeletonModule/Controller/SkeletonController.php @@ -0,0 +1,13 @@ +Module: ZendSkeletonModule » +Controller: Skeleton » +Action: index