Skip to content

Commit

Permalink
Adding the experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
wingman007 committed Sep 11, 2013
1 parent 6061a7e commit e83911a
Show file tree
Hide file tree
Showing 19 changed files with 926 additions and 0 deletions.
22 changes: 22 additions & 0 deletions module/CsnFileManagerExperimental/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace CsnFileManager;

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__,
),
),
);
}
}
3 changes: 3 additions & 0 deletions module/CsnFileManagerExperimental/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module can not work.
It is only for experiments. You can find interesting code in IndexController.
You can find a single file upload and file upload filed together with other fields.
64 changes: 64 additions & 0 deletions module/CsnFileManagerExperimental/config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php

namespace CsnFileManager;

return array(
'controllers' => array(
'invokables' => array(
'CsnFileManager\Controller\Index' => 'CsnFileManager\Controller\IndexController',
),
),
'router' => array(
'routes' => array(
'csn-file-manager' => array(
'type' => 'Literal',
'options' => array(
'route' => '/csn-file-manager',
'defaults' => array(
'__NAMESPACE__' => 'CsnFileManager\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'type' => 'Segment',
'options' => array(
'route' => '/[:controller[/:action[/:id]]]', // there is no constraints for id!
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
),
),
),
),
),
),
),
'view_manager' => array(
'template_path_stack' => array(
'csn-cms' => __DIR__ . '/../view'
),

'display_exceptions' => true,
),
'doctrine' => array(
'driver' => array(
__NAMESPACE__ . '_driver' => array(
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'cache' => 'array',
'paths' => array(
__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity',
),
),
'orm_default' => array(
'drivers' => array(
__NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_driver',
)
)
)
),
);
Loading

0 comments on commit e83911a

Please sign in to comment.