Permalink
Browse files

Initial Commit

  • Loading branch information...
masterpuppet
masterpuppet committed Sep 8, 2012
0 parents commit 17928d990d1da6257f13b25a7cb1f26bebdf8c77
Showing with 2,996 additions and 0 deletions.
  1. +12 −0 .gitignore
  2. +3 −0 .gitmodules
  3. +27 −0 LICENSE.txt
  4. +2 −0 README.md
  5. +20 −0 composer.json
  6. BIN composer.phar
  7. +21 −0 config/application.config.php
  8. +2 −0 config/autoload/.gitignore
  9. +8 −0 config/autoload/README.md
  10. +16 −0 config/autoload/global.php
  11. +16 −0 config/autoload/local.php.dist
  12. +2 −0 data/cache/.gitignore
  13. +49 −0 init_autoloader.php
  14. +39 −0 module/Application/Module.php
  15. +110 −0 module/Application/config/module.config.php
  16. BIN module/Application/language/ar_SY.mo
  17. +184 −0 module/Application/language/ar_SY.po
  18. BIN module/Application/language/cs_CZ.mo
  19. +153 −0 module/Application/language/cs_CZ.po
  20. BIN module/Application/language/de_DE.mo
  21. +153 −0 module/Application/language/de_DE.po
  22. BIN module/Application/language/en_US.mo
  23. +153 −0 module/Application/language/en_US.po
  24. BIN module/Application/language/es_ES.mo
  25. +111 −0 module/Application/language/es_ES.po
  26. BIN module/Application/language/fr_CA.mo
  27. +153 −0 module/Application/language/fr_CA.po
  28. BIN module/Application/language/fr_FR.mo
  29. +153 −0 module/Application/language/fr_FR.po
  30. BIN module/Application/language/it_IT.mo
  31. +154 −0 module/Application/language/it_IT.po
  32. BIN module/Application/language/ja_JP.mo
  33. +140 −0 module/Application/language/ja_JP.po
  34. BIN module/Application/language/nl_NL.mo
  35. +153 −0 module/Application/language/nl_NL.po
  36. BIN module/Application/language/pl_PL.mo
  37. +153 −0 module/Application/language/pl_PL.po
  38. BIN module/Application/language/tr_TR.mo
  39. +153 −0 module/Application/language/tr_TR.po
  40. +21 −0 module/Application/src/Application/Controller/IndexController.php
  41. +25 −0 module/Application/view/application/index/index.twig
  42. +41 −0 module/Application/view/error/404.twig
  43. +23 −0 module/Application/view/error/index.twig
  44. +70 −0 module/Application/view/layout/layout.twig
  45. +6 −0 public/.htaccess
  46. +3 −0 public/css/bootstrap-responsive.min.css
  47. +610 −0 public/css/bootstrap.min.css
  48. +37 −0 public/css/style.css
  49. BIN public/images/favicon.ico
  50. BIN public/images/zf2-logo.png
  51. +12 −0 public/index.php
  52. +4 −0 public/js/html5.js
  53. +4 −0 public/js/jquery-1.7.2.min.js
@@ -0,0 +1,12 @@
+nbproject
+._*
+.~lock.*
+.buildpath
+.DS_Store
+.idea
+.project
+.settings
+composer.lock
+*sublime*
+vendor/
+.tags*
@@ -0,0 +1,3 @@
+[submodule "vendor/ZF2"]
+ path = vendor/ZF2
+ url = https://github.com/zendframework/zf2.git
@@ -0,0 +1,27 @@
+Copyright (c) 2005-2012, Zend Technologies USA, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Zend Technologies USA, Inc. nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,2 @@
+ProjectManager
+=======================
@@ -0,0 +1,20 @@
+{
+ "name": "zendframework/skeleton-application",
+ "description": "Skeleton Application for ZF2",
+ "license": "BSD-3-Clause",
+ "keywords": [
+ "framework",
+ "zf2"
+ ],
+ "homepage": "http://framework.zend.com/",
+ "minimum-stability": "dev",
+ "require": {
+ "php": ">=5.3.3",
+ "zendframework/zendframework": "2.*",
+ "doctrine/doctrine-module": "dev-master",
+ "doctrine/doctrine-orm-module": "dev-master",
+ "zf-commons/zfc-user-doctrine-orm": "dev-master",
+ "zf-commons/zfc-twig": "dev-master",
+ "twig/extensions": "dev-master"
+ }
+}
Binary file not shown.
@@ -0,0 +1,21 @@
+<?php
+return array(
+ 'modules' => array(
+ 'DoctrineModule',
+ 'DoctrineORMModule',
+ 'ZfcBase',
+ 'ZfcUser',
+ 'ZfcUserDoctrineORM',
+ 'ZfcTwig',
+ 'Application',
+ ),
+ 'module_listener_options' => array(
+ 'config_glob_paths' => array(
+ 'config/autoload/{,*.}{global,local}.php',
+ ),
+ 'module_paths' => array(
+ './module',
+ './vendor',
+ ),
+ ),
+);
@@ -0,0 +1,2 @@
+local.php
+*.local.php
@@ -0,0 +1,8 @@
+About this directory:
+=====================
+
+By default, this application is configured to load all configs in
+`./config/autoload/{,*.}{global,local}.php`. Doing this provides a
+location for a developer to drop in configuration override files provided by
+modules, as well as cleanly provide individual, application-wide config files
+for things like database connections, etc.
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Global Configuration Override
+ *
+ * You can use this file for overridding configuration values from modules, etc.
+ * You would place values in here that are agnostic to the environment and not
+ * sensitive to security.
+ *
+ * @NOTE: In practice, this file will typically be INCLUDED in your source
+ * control, so do not include passwords or other sensitive information in this
+ * file.
+ */
+
+return array(
+ // ...
+);
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Local Configuration Override
+ *
+ * This configuration override file is for overriding environment-specific and
+ * security-sensitive configuration information. Copy this file without the
+ * .dist extension at the end and populate values as needed.
+ *
+ * @NOTE: This file is ignored from Git by default with the .gitignore included
+ * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
+ * credentials from accidentally being comitted into version control.
+ */
+
+return array(
+
+);
@@ -0,0 +1,2 @@
+*
+!.gitignore
@@ -0,0 +1,49 @@
+<?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
+ */
+
+/**
+ * This autoloading setup is really more complicated than it needs to be for most
+ * applications. The added complexity is simply to reduce the time it takes for
+ * new developers to be productive with a fresh skeleton. It allows autoloading
+ * to be correctly configured, regardless of the installation method and keeps
+ * the use of composer completely optional. This setup should work fine for
+ * most users, however, feel free to configure autoloading however you'd like.
+ */
+
+// Composer autoloading
+if (file_exists('vendor/autoload.php')) {
+ $loader = include 'vendor/autoload.php';
+}
+
+$zf2Path = false;
+
+if (getenv('ZF2_PATH')) { // Support for ZF2_PATH environment variable or git submodule
+ $zf2Path = getenv('ZF2_PATH');
+} elseif (get_cfg_var('zf2_path')) { // Support for zf2_path directive value
+ $zf2Path = get_cfg_var('zf2_path');
+} elseif (is_dir('vendor/ZF2/library')) {
+ $zf2Path = 'vendor/ZF2/library';
+}
+
+if ($zf2Path) {
+ if (isset($loader)) {
+ $loader->add('Zend', $zf2Path . '/Zend');
+ } else {
+ include $zf2Path . '/Zend/Loader/AutoloaderFactory.php';
+ Zend\Loader\AutoloaderFactory::factory(array(
+ 'Zend\Loader\StandardAutoloader' => array(
+ 'autoregister_zf' => true
+ )
+ ));
+ }
+}
+
+if (!class_exists('Zend\Loader\AutoloaderFactory')) {
+ throw new RuntimeException('Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.');
+}
@@ -0,0 +1,39 @@
+<?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 Application;
+
+use Zend\Mvc\ModuleRouteListener;
+
+class Module
+{
+ public function onBootstrap($e)
+ {
+ $e->getApplication()->getServiceManager()->get('translator');
+ $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__,
+ ),
+ ),
+ );
+ }
+}
@@ -0,0 +1,110 @@
+<?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
+ */
+
+return array(
+ 'doctrine' => array(
+ 'connection' => array(
+ 'orm_default' => array(
+ 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver'
+ )
+ ),
+ 'driver' => array(
+ 'application_annotation_driver' => array(
+ 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
+ 'cache' => 'array',
+ 'paths' => array(__DIR__ . '/../src/Application/Entity')
+ ),
+ 'orm_default' => array(
+ 'drivers' => array(
+ 'Application\Namespace' => 'application_annotation_driver'
+ )
+ )
+ )
+ ),
+ 'router' => array(
+ 'routes' => array(
+ 'home' => array(
+ 'type' => 'Zend\Mvc\Router\Http\Literal',
+ 'options' => array(
+ 'route' => '/',
+ 'defaults' => array(
+ 'controller' => 'Application\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
+ 'application' => array(
+ 'type' => 'Literal',
+ 'options' => array(
+ 'route' => '/application',
+ 'defaults' => array(
+ '__NAMESPACE__' => 'Application\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(
+ 'factories' => array(
+ 'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
+ ),
+ ),
+ 'translator' => array(
+ 'locale' => 'en_US',
+ 'translation_file_patterns' => array(
+ array(
+ 'type' => 'gettext',
+ 'base_dir' => __DIR__ . '/../language',
+ 'pattern' => '%s.mo',
+ ),
+ ),
+ ),
+ 'controllers' => array(
+ 'invokables' => array(
+ 'Application\Controller\Index' => 'Application\Controller\IndexController'
+ ),
+ ),
+ '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.twig',
+ 'application/index/index' => __DIR__ . '/../view/application/index/index.twig',
+ 'error/404' => __DIR__ . '/../view/error/404.twig',
+ 'error/index' => __DIR__ . '/../view/error/index.twig',
+ ),
+ 'template_path_stack' => array(
+ __DIR__ . '/../view',
+ ),
+ ),
+);
Binary file not shown.
Oops, something went wrong.

0 comments on commit 17928d9

Please sign in to comment.