diff --git a/AntonTonev/Module.php b/AntonTonev/Module.php new file mode 100644 index 00000000..0c89ee03 --- /dev/null +++ b/AntonTonev/Module.php @@ -0,0 +1,24 @@ +<?php +namespace AlexanderAlexandrov; + +class Module +{ + public function getAutoloaderConfig() + { + return array( + 'Zend\Loader\ClassMapAutoloader' => array( + __DIR__ . '/autoload_classmap.php', + ), + 'Zend\Loader\StandardAutoloader' => array( + 'namespaces' => array( + __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, + ), + ), + ); + } + + public function getConfig() + { + return include __DIR__ . '/config/module.config.php'; + } +} \ No newline at end of file diff --git a/AntonTonev/autoload_classmap.php b/AntonTonev/autoload_classmap.php new file mode 100644 index 00000000..dad330e6 --- /dev/null +++ b/AntonTonev/autoload_classmap.php @@ -0,0 +1,2 @@ +<?php +return array(); \ No newline at end of file diff --git a/AntonTonev/config/module.config.php b/AntonTonev/config/module.config.php new file mode 100644 index 00000000..2f0dfede --- /dev/null +++ b/AntonTonev/config/module.config.php @@ -0,0 +1,34 @@ +<?php +return array( + 'controllers' => array( + 'invokables' => array( + 'AlexanderAlexandrov\Controller\Index' => 'AlexanderAlexandrov\Controller\IndexController', + ), + ), + + // The following section is new and should be added to your file + 'router' => array( + 'routes' => array( + 'alexander_alexandrov' => array( + 'type' => 'segment', + 'options' => array( + 'route' => '/alexander-alexandrov[/:action][/:id]', + 'constraints' => array( + 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', + 'id' => '[0-9]+', + ), + 'defaults' => array( + 'controller' => 'AlexanderAlexandrov\Controller\Index', + 'action' => 'index', + ), + ), + ), + ), + ), + + 'view_manager' => array( + 'template_path_stack' => array( + 'alexander_alexandrov' => __DIR__ . '/../view', + ), + ), +); \ No newline at end of file diff --git a/AntonTonev/src/AlexanderAlexandrov/Controller/IndexController.php b/AntonTonev/src/AlexanderAlexandrov/Controller/IndexController.php new file mode 100644 index 00000000..6341a878 --- /dev/null +++ b/AntonTonev/src/AlexanderAlexandrov/Controller/IndexController.php @@ -0,0 +1,21 @@ +<?php +/** + * Zend Framework (http://framework.zend.com/) + * + * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ + +namespace AlexanderAlexandrov\Controller; + +use Zend\Mvc\Controller\AbstractActionController; +use Zend\View\Model\ViewModel; + +class IndexController extends AbstractActionController +{ + public function indexAction() + { + return new ViewModel(); + } +} \ No newline at end of file diff --git a/AntonTonev/view/alexander-alexandrov/index/index.phtml b/AntonTonev/view/alexander-alexandrov/index/index.phtml new file mode 100644 index 00000000..b565cf57 --- /dev/null +++ b/AntonTonev/view/alexander-alexandrov/index/index.phtml @@ -0,0 +1 @@ +<h1>I am the index.phtml in AlexanderAlexandrov module</h1> \ No newline at end of file diff --git a/module/AntonTonev/Module.php b/module/AntonTonev/Module.php new file mode 100644 index 00000000..9841c443 --- /dev/null +++ b/module/AntonTonev/Module.php @@ -0,0 +1,24 @@ +<?php +namespace AntonTonev; + +class Module +{ + public function getAutoloaderConfig() + { + return array( + 'Zend\Loader\ClassMapAutoloader' => array( + __DIR__ . '/autoload_classmap.php', + ), + 'Zend\Loader\StandardAutoloader' => array( + 'namespaces' => array( + __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, + ), + ), + ); + } + + public function getConfig() + { + return include __DIR__ . '/config/module.config.php'; + } +} \ No newline at end of file diff --git a/module/AntonTonev/autoload_classmap.php b/module/AntonTonev/autoload_classmap.php new file mode 100644 index 00000000..dad330e6 --- /dev/null +++ b/module/AntonTonev/autoload_classmap.php @@ -0,0 +1,2 @@ +<?php +return array(); \ No newline at end of file diff --git a/module/AntonTonev/config/module.config.php b/module/AntonTonev/config/module.config.php new file mode 100644 index 00000000..e099b8de --- /dev/null +++ b/module/AntonTonev/config/module.config.php @@ -0,0 +1,34 @@ +<?php +return array( + 'controllers' => array( + 'invokables' => array( + 'AntonTonev\Controller\Index' => 'AntonTonev\Controller\IndexController', + ), + ), + + // The following section is new and should be added to your file + 'router' => array( + 'routes' => array( + 'anton_tonev' => array( + 'type' => 'segment', + 'options' => array( + 'route' => '/anton-tonev[/:action][/:id]', + 'constraints' => array( + 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', + 'id' => '[0-9]+', + ), + 'defaults' => array( + 'controller' => 'AntonTonev\Controller\Index', + 'action' => 'index', + ), + ), + ), + ), + ), + + 'view_manager' => array( + 'template_path_stack' => array( + 'anton_tonev' => __DIR__ . '/../view', + ), + ), +); \ No newline at end of file diff --git a/module/AntonTonev/src/AntonTonev/Controller/IndexController.php b/module/AntonTonev/src/AntonTonev/Controller/IndexController.php new file mode 100644 index 00000000..4b329212 --- /dev/null +++ b/module/AntonTonev/src/AntonTonev/Controller/IndexController.php @@ -0,0 +1,21 @@ +<?php +/** + * Zend Framework (http://framework.zend.com/) + * + * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ + +namespace AntonTonev\Controller; + +use Zend\Mvc\Controller\AbstractActionController; +use Zend\View\Model\ViewModel; + +class IndexController extends AbstractActionController +{ + public function indexAction() + { + return new ViewModel(); + } +} \ No newline at end of file diff --git a/module/AntonTonev/view/anton-tonev/index/index.phtml b/module/AntonTonev/view/anton-tonev/index/index.phtml new file mode 100644 index 00000000..dd53c29b --- /dev/null +++ b/module/AntonTonev/view/anton-tonev/index/index.phtml @@ -0,0 +1 @@ +<h1>I am the index.phtml in AntonTonev module</h1> \ No newline at end of file