Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d624af

Browse files
author
Miltex
committed
comitando... init
1 parent 81bc473 commit 7d624af

63 files changed

Lines changed: 3137 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

zf2-tutorial/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ZF2 tutorial application
2+
3+
See [http://akrabat.com/zend-framework-2-tutorial/](http://akrabat.com/zend-framework-2-tutorial/)

zf2-tutorial/composer.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "zendframework/skeleton-application",
3+
"description": "Skeleton Application for ZF2",
4+
"license": "BSD-3-Clause",
5+
"keywords": [
6+
"framework",
7+
"zf2"
8+
],
9+
"homepage": "http://framework.zend.com/",
10+
"require": {
11+
"php": ">=5.3.3",
12+
"zendframework/zendframework": "dev-master"
13+
}
14+
}

zf2-tutorial/composer.lock

Lines changed: 140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zf2-tutorial/composer.phar

915 KB
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
return array(
3+
'modules' => array(
4+
'Application',
5+
'Album',
6+
),
7+
'module_listener_options' => array(
8+
'config_glob_paths' => array(
9+
'config/autoload/{,*.}{global,local}.php',
10+
),
11+
'module_paths' => array(
12+
'./module',
13+
'./vendor',
14+
),
15+
),
16+
);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local.php
2+
*.local.php
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
About this directory:
2+
=====================
3+
4+
By default, this application is configured to load all configs in
5+
`./config/autoload/{,*.}{global,local}.php`. Doing this provides a
6+
location for a developer to drop in configuration override files provided by
7+
modules, as well as cleanly provide individual, application-wide config files
8+
for things like database connections, etc.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Global Configuration Override
4+
*
5+
* You can use this file for overridding configuration values from modules, etc.
6+
* You would place values in here that are agnostic to the environment and not
7+
* sensitive to security.
8+
*
9+
* @NOTE: In practice, this file will typically be INCLUDED in your source
10+
* control, so do not include passwords or other sensitive information in this
11+
* file.
12+
*/
13+
14+
return array(
15+
'db' => array(
16+
'driver' => 'Pdo',
17+
'dsn' => 'mysql:dbname=zf2tutorial;hostname=localhost',
18+
'username' => 'root',
19+
'password' => 'miltonf',
20+
'driver_options' => array(
21+
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
22+
),
23+
),
24+
'service_manager' => array(
25+
'factories' => array(
26+
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
27+
),
28+
),
29+
);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Global Configuration Override
4+
*
5+
* You can use this file for overridding configuration values from modules, etc.
6+
* You would place values in here that are agnostic to the environment and not
7+
* sensitive to security.
8+
*
9+
* @NOTE: In practice, this file will typically be INCLUDED in your source
10+
* control, so do not include passwords or other sensitive information in this
11+
* file.
12+
*/
13+
14+
return array(
15+
'db' => array(
16+
'driver' => 'Pdo',
17+
'dsn' => 'mysql:dbname=zf2tutorial;hostname=localhost',
18+
'username' => 'rob',
19+
'password' => '123456',
20+
'driver_options' => array(
21+
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
22+
),
23+
),
24+
'service_manager' => array(
25+
'factories' => array(
26+
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
27+
),
28+
),
29+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
* Local Configuration Override
4+
*
5+
* This configuration override file is for overriding environment-specific and
6+
* security-sensitive configuration information. Copy this file without the
7+
* .dist extension at the end and populate values as needed.
8+
*
9+
* @NOTE: This file is ignored from Git by default with the .gitignore included
10+
* in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
11+
* credentials from accidentally being comitted into version control.
12+
*/
13+
14+
return array(
15+
// ...
16+
);

0 commit comments

Comments
 (0)