Skip to content

Commit

Permalink
Upload project
Browse files Browse the repository at this point in the history
  • Loading branch information
nazargulov committed Apr 2, 2014
1 parent a4d38f9 commit c9b442f
Show file tree
Hide file tree
Showing 8 changed files with 751 additions and 678 deletions.
1,168 changes: 636 additions & 532 deletions .idea/workspace.xml

Large diffs are not rendered by default.

50 changes: 27 additions & 23 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.2.*",
"zf-commons/zfc-user": "dev-master",
"hybridauth/hybridauth": "dev-master",
"socalnick/scn-social-auth": "dev-master"

},
"autoload": {
"classmap": [
"./vendor/hybridauth/hybridauth/additional-providers"
]
}
}
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.2.*",
"zf-commons/zfc-user": "dev-master",
"doctrine/doctrine-module": "0.*",
"doctrine/doctrine-orm-module": "0.*",
"doctrine/common": "dev-master",
"doctrine/orm": "dev-master",
"hybridauth/hybridauth": "dev-master",
"socalnick/scn-social-auth": "dev-master"

},
"autoload": {
"classmap": [
"./vendor/hybridauth/hybridauth/additional-providers"
]
}
}
142 changes: 72 additions & 70 deletions config/application.config.php
Original file line number Diff line number Diff line change
@@ -1,70 +1,72 @@
<?php
return array(
// This should be an array of module namespaces used in the application.
'modules' => array(
'Application',
'ScnSocialAuth',
'ZfcBase',
'ZfcUser',

//
'Secret',
),

// These are various options for the listeners attached to the ModuleManager
'module_listener_options' => array(
// This should be an array of paths in which modules reside.
// If a string key is provided, the listener will consider that a module
// namespace, the value of that key the specific path to that module's
// Module class.
'module_paths' => array(
'./module',
'./vendor',
),

// An array of paths from which to glob configuration files after
// modules are loaded. These effectively override configuration
// provided by modules themselves. Paths may use GLOB_BRACE notation.
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),

// Whether or not to enable a configuration cache.
// If enabled, the merged configuration will be cached and used in
// subsequent requests.
//'config_cache_enabled' => $booleanValue,

// The key used to create the configuration cache file name.
//'config_cache_key' => $stringKey,

// Whether or not to enable a module class map cache.
// If enabled, creates a module class map cache which will be used
// by in future requests, to reduce the autoloading process.
//'module_map_cache_enabled' => $booleanValue,

// The key used to create the class map cache file name.
//'module_map_cache_key' => $stringKey,

// The path in which to cache merged configuration.
//'cache_dir' => $stringPath,

// Whether or not to enable modules dependency checking.
// Enabled by default, prevents usage of modules that depend on other modules
// that weren't loaded.
// 'check_dependencies' => true,
),

// Used to create an own service manager. May contain one or more child arrays.
//'service_listener_options' => array(
// array(
// 'service_manager' => $stringServiceManagerName,
// 'config_key' => $stringConfigKey,
// 'interface' => $stringOptionalInterface,
// 'method' => $stringRequiredMethodName,
// ),
// )

// Initial configuration with which to seed the ServiceManager.
// Should be compatible with Zend\ServiceManager\Config.
// 'service_manager' => array(),
);
<?php
return array(
// This should be an array of module namespaces used in the application.
'modules' => array(
'Application',
'ZfcBase',
'ZfcUser',
'DoctrineModule',
'DoctrineORMModule',
'ScnSocialAuth',

//
'Secret',
),

// These are various options for the listeners attached to the ModuleManager
'module_listener_options' => array(
// This should be an array of paths in which modules reside.
// If a string key is provided, the listener will consider that a module
// namespace, the value of that key the specific path to that module's
// Module class.
'module_paths' => array(
'./module',
'./vendor',
),

// An array of paths from which to glob configuration files after
// modules are loaded. These effectively override configuration
// provided by modules themselves. Paths may use GLOB_BRACE notation.
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),

// Whether or not to enable a configuration cache.
// If enabled, the merged configuration will be cached and used in
// subsequent requests.
//'config_cache_enabled' => $booleanValue,

// The key used to create the configuration cache file name.
//'config_cache_key' => $stringKey,

// Whether or not to enable a module class map cache.
// If enabled, creates a module class map cache which will be used
// by in future requests, to reduce the autoloading process.
//'module_map_cache_enabled' => $booleanValue,

// The key used to create the class map cache file name.
//'module_map_cache_key' => $stringKey,

// The path in which to cache merged configuration.
//'cache_dir' => $stringPath,

// Whether or not to enable modules dependency checking.
// Enabled by default, prevents usage of modules that depend on other modules
// that weren't loaded.
// 'check_dependencies' => true,
),

// Used to create an own service manager. May contain one or more child arrays.
//'service_listener_options' => array(
// array(
// 'service_manager' => $stringServiceManagerName,
// 'config_key' => $stringConfigKey,
// 'interface' => $stringOptionalInterface,
// 'method' => $stringRequiredMethodName,
// ),
// )

// Initial configuration with which to seed the ServiceManager.
// Should be compatible with Zend\ServiceManager\Config.
// 'service_manager' => array(),
);
47 changes: 3 additions & 44 deletions module/Application/view/application/index/index.phtml
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
<div class="jumbotron">
<h1><?php echo sprintf($this->translate('Welcome to %sZend Framework 2%s'), '<span class="zf-green">', '</span>') ?></h1>
<p><?php echo sprintf($this->translate('Congratulations! You have successfully installed the %sZF2 Skeleton Application%s. You are currently running Zend Framework version %s. This skeleton can serve as a simple starting point for you to begin building your application on ZF2.'), '<a href="https://github.com/zendframework/ZendSkeletonApplication" target="_blank">', '</a>', \Zend\Version\Version::VERSION) ?></p>
<p><a class="btn btn-success btn-lg" href="https://github.com/zendframework/zf2" target="_blank"><?php echo $this->translate('Fork Zend Framework 2 on GitHub') ?> &raquo;</a></p>
</div>

<div class="row">

<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Follow Development') ?></h3>
</div>
<div class="panel-body">
<p><?php echo sprintf($this->translate('Zend Framework 2 is under active development. If you are interested in following the development of ZF2, there is a special ZF2 portal on the official Zend Framework website which provides links to the ZF2 %swiki%s, %sdev blog%s, %sissue tracker%s, and much more. This is a great resource for staying up to date with the latest developments!'), '<a href="http://framework.zend.com/wiki/display/ZFDEV2/Home">', '</a>', '<a href="http://framework.zend.com/zf2/blog">', '</a>', '<a href="https://github.com/zendframework/zf2/issues">', '</a>') ?></p>
<p><a class="btn btn-success pull-right" href="http://framework.zend.com/zf2" target="_blank"><?php echo $this->translate('ZF2 Development Portal') ?> &raquo;</a></p>
</div>
</div>
</div>

<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Discover Modules') ?></h3>
</div>
<div class="panel-body">
<p><?php echo sprintf($this->translate('The community is working on developing a community site to serve as a repository and gallery for ZF2 modules. The project is available %son GitHub%s. The site is currently live and currently contains a list of some of the modules already available for ZF2.'), '<a href="https://github.com/zendframework/modules.zendframework.com">', '</a>') ?></p>
<p><a class="btn btn-success pull-right" href="http://modules.zendframework.com/" target="_blank"><?php echo $this->translate('Explore ZF2 Modules') ?> &raquo;</a></p>
</div>
</div>
</div>

<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Help &amp; Support') ?></h3>
</div>
<div class="panel-body">
<p><?php echo sprintf($this->translate('If you need any help or support while developing with ZF2, you may reach us via IRC: %s#zftalk on Freenode%s. We\'d love to hear any questions or feedback you may have regarding the beta releases. Alternatively, you may subscribe and post questions to the %smailing lists%s.'), '<a href="irc://irc.freenode.net/zftalk">', '</a>', '<a href="http://framework.zend.com/wiki/display/ZFDEV/Mailing+Lists">', '</a>') ?></p>
<p><a class="btn btn-success pull-right" href="http://webchat.freenode.net?channels=zftalk" target="_blank"><?php echo $this->translate('Ping us on IRC') ?> &raquo;</a></p>
</div>
</div>
</div>
</div>
<div class="row">

</div>
9 changes: 5 additions & 4 deletions module/Application/view/layout/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<?php echo $this->headTitle('ZF2 '. $this->translate('Skeleton Application'))->setSeparator(' - ')->setAutoEscape(false) ?>
<?php echo $this->headTitle($this->translate('Lingvoguide'))->setSeparator(' - ')->setAutoEscape(false) ?>

<?php echo $this->headMeta()
->appendName('viewport', 'width=device-width, initial-scale=1.0')
Expand Down Expand Up @@ -34,22 +34,23 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo $this->url('home') ?>"><img src="<?php echo $this->basePath('img/zf2-logo.png') ?>" alt="Zend Framework 2"/>&nbsp;<?php echo $this->translate('Skeleton Application') ?></a>
<a class="navbar-brand" href="<?php echo $this->url('home') ?>"><img src="<?php echo $this->basePath('img/zf2-logo.png') ?>" alt="Zend Framework 2"/>&nbsp;<?php echo $this->translate('Lingvoguide') ?></a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="<?php echo $this->url('home') ?>"><?php echo $this->translate('Home') ?></a></li>
<li><a href="<?= $this->url('zfcuser'); ?>"><?= $this->translate('Log in'); ?></a></li>
<li><a href="<?= $this->url('secret'); ?>"><?= $this->translate('Secret'); ?></a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<?php //echo $this->zfcUserLoginWidget(); ?>
<a href="<?php echo $this->url('zfcuser', array("action" => "login")); ?>">Войти</a>
<?php echo $this->content; ?>
<hr>
<footer>
<p>&copy; 2005 - <?php echo date('Y') ?> by Zend Technologies Ltd. <?php echo $this->translate('All rights reserved.') ?></p>
<p>&copy; 2014 - <?php echo date('Y') ?> by Lingvoguides Ltd. <?php echo $this->translate('All rights reserved.') ?></p>
</footer>
</div> <!-- /container -->
<?php echo $this->inlineScript() ?>
Expand Down
5 changes: 1 addition & 4 deletions module/Secret/src/Secret/Controller/MainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ class MainController extends AbstractActionController
{
public function indexAction()
{
if ($this->zfcUserAuthentication()->hasIdentity()) {
return array();
}
return $this->redirect()->toRoute('application');
return array();
}

public function fooAction()
Expand Down
6 changes: 6 additions & 0 deletions module/Secret/view/secret/main/index.phtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<?php if ($this->zfcUserIdentity()) : ?>
<strong>Module:</strong> Secret &raquo;
<strong>Controller:</strong> Main &raquo;
<strong>Action:</strong> index
<?php else : ?>
<div class="alert alert-error">
<?= $this->translate('You must be logged'); ?>
</div>
<?php endif; ?>
2 changes: 1 addition & 1 deletion vendor/socalnick/scn-social-auth
Submodule scn-social-auth updated from 7c07d6 to 846110

0 comments on commit c9b442f

Please sign in to comment.