forked from wingman007/fmi
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6061a7e
commit e83911a
Showing
19 changed files
with
926 additions
and
0 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
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__, | ||
), | ||
), | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -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
64
module/CsnFileManagerExperimental/config/module.config.php
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 |
---|---|---|
@@ -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', | ||
) | ||
) | ||
) | ||
), | ||
); |
Oops, something went wrong.