Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config/application.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'ZfcBase',
'ZfcUser',
'WebsafeZfModZfcUserI18nDeDe', //Übersetzung auf Deutsch
'BjyAuthorize',
#'BjyAuthorize',
'BjyProfiler',
'ZendDeveloperTools',
// 'CdliTwoStageSignup',
Expand All @@ -15,7 +15,8 @@
#'Company',
'Administration',
'Fachhochschule',
// 'Generator',
'Generator',
'ZfcTwitterBootstrap',
),

// These are various options for the listeners attached to the ModuleManager
Expand Down
1 change: 0 additions & 1 deletion module/Base

This file was deleted.

130 changes: 130 additions & 0 deletions module/Base/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace Base;

use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;

use Base\Constants as C;

class Module
{
public function onBootstrap(MvcEvent $e)
{
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
}

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__,
),
),
);
}


public function getServiceConfig(){

return array(
'factories' => array(

// ----------------------------------------------- TableGateways
C::SERVICE_TABLEGATEWAY_INSERATBILDSCHIRMLINKER => '\Base\Service\Factory\TableGateway\InseratBildschirmLinker',
C::SERVICE_TABLEGATEWAY_INSERAT => '\Base\Service\Factory\TableGateway\Inserat',
C::SERVICE_TABLEGATEWAY_INFOSCRIPT => '\Base\Service\Factory\TableGateway\Infoscript',
C::SERVICE_TABLEGATEWAY_BILDSCHIRM => '\Base\Service\Factory\TableGateway\Bildschirm',

C::SM_TABLEGATEWAY_USER => '\Base\Service\Factory\TableGateway\User',
C::SM_TABLEGATEWAY_FACHHOCHSCHULE => '\Base\Service\Factory\TableGateway\Fachhochschule',


// ------------------------------------------------------ Tables
C::SERVICE_TABLE_INSERAT => '\Base\Service\Factory\Table\Inserat',
C::SERVICE_TABLE_INSERATBILDSCHIRMLINKER => '\Base\Service\Factory\Table\InseratBildschirmLinker',
C::SERVICE_TABLE_INFOSCRIPT => '\Base\Service\Factory\Table\Infoscript',
C::SERVICE_TABLE_BILDSCHIRM => '\Base\Service\Factory\Table\Bildschirm',

C::SM_TABLE_USER => '\Base\Service\Factory\Table\User',
C::SM_TABLE_FACHHOCHSCHULE => '\Base\Service\Factory\Table\Fachhochschule',


// ----------------------------------------------------- Mappers
C::SERVICE_MAPPER_INFOSCRIPT => '\Base\Service\Factory\Mapper\Infoscript',
C::SM_MAPPER_FACHHOCHSCHULE => '\Base\Service\Factory\Mapper\Fachhochschule',


// ----------------------------------------------------- Services
C::SERVICE_INFOSCRIPT => '\Base\Service\Factory\Infoscript',
C::SERVICE_DISPLAYLINK => '\Base\Service\Factory\DisplayLink',
),
'invokables' => array (

// ---------------------------------------------------- Entities
C::SERVICE_ENTITY_INSERAT => '\Base\Model\Entity\Inserat',
C::SERVICE_ENTITY_INFOSCRIPT => '\Base\Model\Entity\Infoscript',
C::SERVICE_ENTITY_BILDSCHIRM => '\Base\Model\Entity\Bildschirm',

C::SM_ENTITY_USER => '\Base\Model\Entity\User',
C::SM_ENTITY_FACHHOCHSCHULE => '\Base\Model\Entity\Fachhochschule',

// ------------------------------------------------------- Forms
C::SERVICE_FORM_INFOSCRIPT => '\Base\Form\Infoscript',
C::SERVICE_FORM_DELETE => '\Base\Form\Delete',

// ------------------------------------------------- DbHydrators
C::SERVICE_HYDRATOR_MODEL_INSERAT => '\Base\Model\Hydrator\Inserat',
C::SERVICE_HYDRATOR_MODEL_INFOSCRIPT => '\Base\Model\Hydrator\Infoscript',
C::SERVICE_HYDRATOR_MODEL_BILDSCHIRM => '\Base\Model\Hydrator\Bildschirm',

C::SM_HYDRATOR_MODEL_USER => '\Base\Model\Hydrator\User',
C::SM_HYDRATOR_MODEL_FACHHOCHSCHULE => '\Base\Model\Hydrator\Fachhochschule',


),
'shared' => array(

// ---------------------------------------------------- Entities
C::SERVICE_ENTITY_INSERAT => false,
C::SERVICE_ENTITY_INFOSCRIPT => false,
C::SERVICE_ENTITY_BILDSCHIRM => false,

C::SM_ENTITY_USER => false,
C::SM_ENTITY_FACHHOCHSCHULE => false,

// ------------------------------------------------------- Forms
C::SERVICE_FORM_INFOSCRIPT => false,

C::SERVICE_FORM_DELETE => false,

)

);

}

public function getViewHelperConfig() {
return [
'invokables' => [
// 'FormCollection' => 'Base\View\Helper\FormCollection',
'FormRow' => 'Base\View\Helper\FormRow',
]
];
}
}
103 changes: 103 additions & 0 deletions module/Base/config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

return array(
'router' => array(
'routes' => array(
'home' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/',
'defaults' => array(
'controller' => 'Base\Controller\Index',
'action' => 'index',
),
),
),
// The following is a route to simplify getting started creating
// new controllers and actions without needing to create a new
// module. Simply drop new controllers in, and you can access them
// using the path /application/:controller/:action
'base' => array(
'type' => 'Literal',
'options' => array(
'route' => '/base',
'defaults' => array(
'__NAMESPACE__' => 'Base\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'type' => 'Segment',
'options' => array(
'route' => '/[:controller[/:action]]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
),
),
),
),
),
),
),
'service_manager' => array(
'abstract_factories' => array(
'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
'Zend\Log\LoggerAbstractServiceFactory',
),
'aliases' => array(
'translator' => 'MvcTranslator',
),
),
'translator' => array(
'locale' => 'de_DE',
'translation_file_patterns' => array(
array(
'type' => 'gettext',
'base_dir' => __DIR__ . '/../language',
'pattern' => '%s.mo',
),
),
),
'controllers' => array(
'invokables' => array(
'Base\Controller\Index' => 'Base\Controller\IndexController',
'Base\Controller\DisplayLink' => 'Base\Controller\DisplayLinkController',
),
),
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => array(
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
'base/index/index' => __DIR__ . '/../view/base/index/index.phtml',
'error/404' => __DIR__ . '/../view/error/404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
),
'template_path_stack' => array(
__DIR__ . '/../view',
),
),
// Placeholder for console routes
'console' => array(
'router' => array(
'routes' => array(
),
),
),
);
Binary file added module/Base/language/ar_JO.mo
Binary file not shown.
Loading