first commit
This commit is contained in:
16
apps/frontend/config/app.yml
Normal file
16
apps/frontend/config/app.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
# default values
|
||||
all:
|
||||
sf_captchagd:
|
||||
image_width: 172 # image width in pixels
|
||||
image_height: 50 # image height in pixels
|
||||
chars: "1234567890" # possible chars in captcha
|
||||
length: 4 # length of captcha
|
||||
font_size: 18 # font size
|
||||
|
||||
# possible chars colors
|
||||
font_color: ["8b8787", "550707", "3526E6", "88531E"]
|
||||
|
||||
# chars fonts
|
||||
fonts: ["molten/molten.ttf", "akbar/akbar.ttf"]
|
||||
background_color: FFFFFF # image background color
|
||||
border_color: CCCCCC # image border color
|
||||
4
apps/frontend/config/cache.yml
Normal file
4
apps/frontend/config/cache.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
default:
|
||||
enabled: off
|
||||
with_layout: false
|
||||
lifetime: 31536000
|
||||
114
apps/frontend/config/config.php
Normal file
114
apps/frontend/config/config.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/stFrontend
|
||||
*
|
||||
* Ten plik należy do aplikacji stFrontend opartej na licencji (Open License SOTE) Otwarta Licencja SOTE.
|
||||
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
|
||||
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
|
||||
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
|
||||
*
|
||||
* @package stFrontend
|
||||
* @subpackage configs
|
||||
* @copyright SOTE (www.sote.pl)
|
||||
* @license http://www.sote.pl/license/open (Open License SOTE) Otwarta Licencja SOTE
|
||||
* @version $Id: config.php 9 2009-08-24 09:31:16Z michal $
|
||||
* @author Marek Jakubowicz <marek.jakubowicz@sote.pl>
|
||||
* @author Michal Prochowski <michal.prochowski@sote.pl>
|
||||
*/
|
||||
|
||||
/**
|
||||
* include project configuration
|
||||
*/
|
||||
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
/**
|
||||
* symfony bootstraping
|
||||
*
|
||||
* @package stFrontend
|
||||
* @subpackage configs
|
||||
*/
|
||||
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'symfony'.DIRECTORY_SEPARATOR.'util'. DIRECTORY_SEPARATOR.'stCore.class.php');
|
||||
stCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);
|
||||
|
||||
/**
|
||||
* Uzupelnienie funkcji lcfirst (wystepuje tylko w CVS dla php 5.2.x. Dostepna dla php 5.3.x)
|
||||
*
|
||||
* @author Marcin Butlak <marcin.butlak@sote.pl>
|
||||
*/
|
||||
if(function_exists('lcfirst') == false)
|
||||
{
|
||||
/**
|
||||
* Make a string's first character lowercase
|
||||
*
|
||||
* @param string $str The input string.
|
||||
* @return string The resulting string.
|
||||
*/
|
||||
function lcfirst($str)
|
||||
{
|
||||
$str[0] = strtolower($str[0]);
|
||||
return $str;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ładowanie plików z konfiguracyjnych wszystkich zainstalowanych modułów
|
||||
*
|
||||
* @author Michal Prochowski <michal.prochowski@sote.pl>
|
||||
*/
|
||||
if (!defined('ST_SYMFONY_OPTIMIZATION'))
|
||||
{
|
||||
foreach (stApplication::getApps() as $app => $data)
|
||||
{
|
||||
$dir = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$app;
|
||||
if (!ereg('Plugin',$app) && file_exists($dir))
|
||||
{
|
||||
$file_config = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$app.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php';
|
||||
if (file_exists($file_config))
|
||||
{
|
||||
include_once($file_config);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Dodawanie limitów
|
||||
*
|
||||
* @author Piotr Halas <piotr.halas@sote.pl>
|
||||
*/
|
||||
$limit = stLimits::getInstance();
|
||||
|
||||
/**
|
||||
* Włączanie/wyłączanie cache
|
||||
*
|
||||
* @author Michal Prochowski <michal.prochowski@sote.pl>
|
||||
*/
|
||||
if (SF_ENVIRONMENT == 'prod')
|
||||
{
|
||||
if (stConfig::getInstance(null, array(), 'stOptimizationBackend')->get('off') == 1)
|
||||
{
|
||||
sfConfig::set('sf_cache', '');
|
||||
} else {
|
||||
sfConfig::set('sf_cache', '1');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ustawianie domyślnego języka
|
||||
*
|
||||
* @author Michal Prochowski <michal.prochowski@sote.pl>
|
||||
*/
|
||||
$stConfigOptimizer = stConfigOptimizer::getInstance();
|
||||
|
||||
if ($stConfigOptimizer->has('default_language'))
|
||||
{
|
||||
$defaultLanguage = $stConfigOptimizer->get('default_language');
|
||||
} else {
|
||||
$databaseManager = new sfDatabaseManager();
|
||||
$databaseManager->initialize();
|
||||
|
||||
$language = LanguagePeer::doSelectDefault();
|
||||
$defaultLanguage = $language->getOriginalLanguage();
|
||||
$defaultLanguage = $stConfigOptimizer->set('default_language',$defaultLanguage);
|
||||
}
|
||||
|
||||
if (!empty($defaultLanguage)) stPluginHelper::addSetting('sf_i18n_default_culture', $defaultLanguage, 'frontend');
|
||||
4
apps/frontend/config/config_compile.yml
Normal file
4
apps/frontend/config/config_compile.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
search_paths:
|
||||
- apps/frontend/modules/*/config/config.php
|
||||
|
||||
27
apps/frontend/config/config_handlers.yml
Normal file
27
apps/frontend/config/config_handlers.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
modules/*/config/soteshop.yml:
|
||||
class: stThemeConfigHandler
|
||||
param:
|
||||
prefix: st_
|
||||
|
||||
config/soteshop.yml:
|
||||
class: stThemeConfigHandler
|
||||
param:
|
||||
prefix: st_
|
||||
|
||||
modules/*/config/layout/*.yml:
|
||||
class: stThemeConfigHandler
|
||||
param:
|
||||
prefix: st_layout_
|
||||
|
||||
config/layout/*.yml:
|
||||
class: stThemeConfigHandler
|
||||
param:
|
||||
prefix: st_layout_
|
||||
|
||||
data/config/*.yml:
|
||||
class: sfDefineEnvironmentConfigHandler
|
||||
param:
|
||||
prefix: st_module_
|
||||
|
||||
modules/*/config/cache.yml:
|
||||
class: stCacheConfigHandler
|
||||
39
apps/frontend/config/factories.yml
Normal file
39
apps/frontend/config/factories.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
all:
|
||||
request:
|
||||
class: stWebRequest
|
||||
|
||||
cli:
|
||||
controller:
|
||||
class: sfConsoleController
|
||||
request:
|
||||
class: sfConsoleRequest
|
||||
response:
|
||||
class: sfConsoleResponse
|
||||
|
||||
test:
|
||||
storage:
|
||||
class: sfSessionTestStorage
|
||||
|
||||
#all:
|
||||
# controller:
|
||||
# class: sfFrontWebController
|
||||
#
|
||||
# request:
|
||||
# class: sfWebRequest
|
||||
#
|
||||
# response:
|
||||
# class: sfWebResponse
|
||||
#
|
||||
# user:
|
||||
# class: myUser
|
||||
#
|
||||
# storage:
|
||||
# class: sfSessionStorage
|
||||
# param:
|
||||
# session_name: symfony
|
||||
#
|
||||
# view_cache:
|
||||
# class: sfFileCache
|
||||
# param:
|
||||
# automaticCleaningFactor: 0
|
||||
# cacheDir: %SF_TEMPLATE_CACHE_DIR%
|
||||
21
apps/frontend/config/filters.yml
Normal file
21
apps/frontend/config/filters.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
rendering: ~
|
||||
web_debug: ~
|
||||
security: ~
|
||||
|
||||
# generally, you will want to insert your own filters here
|
||||
|
||||
cache: ~
|
||||
common:
|
||||
enabled: false
|
||||
price_compare:
|
||||
class: stPriceCompareFilter
|
||||
language:
|
||||
class: stLanguageFilter
|
||||
positioning:
|
||||
class: stPositioningFilter
|
||||
flash: ~
|
||||
execution: ~
|
||||
short_code:
|
||||
class: stShortCodeFilter
|
||||
fastcache:
|
||||
class: sfSuperCacheFilter
|
||||
7
apps/frontend/config/i18n.yml
Normal file
7
apps/frontend/config/i18n.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
all:
|
||||
default_culture: pl_PL
|
||||
source: XLIFF
|
||||
debug: off
|
||||
cache: on
|
||||
untranslated_prefix: "[T]"
|
||||
untranslated_suffix: "[/T]"
|
||||
17
apps/frontend/config/layout/default.yml
Normal file
17
apps/frontend/config/layout/default.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
all:
|
||||
.layout:
|
||||
name: layout1
|
||||
container_left:
|
||||
display: [stProducer.list, stCategoryTree.show, stNewsletterFrontend.newsletter, stProduct.new, stProduct.productGroup-1]
|
||||
params:
|
||||
stProduct.productGroup-1: {product_group: RECOMMEND}
|
||||
|
||||
|
||||
container_right:
|
||||
display: [stNavigationFrontend.productsBox, stProduct.productGroup-1, stBoxFrontend.boxes, stProduct.productGroup-2, stTrustedShopsFrontend.showSealbox, stTrustedShopsFrontend.showRatingWidget]
|
||||
params:
|
||||
stProduct.productGroup-1: {product_group: PROMOTION}
|
||||
stProduct.productGroup-2: {product_group: SALES}
|
||||
|
||||
|
||||
|
||||
2
apps/frontend/config/logging.yml
Normal file
2
apps/frontend/config/logging.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
prod:
|
||||
enabled: off
|
||||
2
apps/frontend/config/module.yml
Normal file
2
apps/frontend/config/module.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
all:
|
||||
view_class: stTheme
|
||||
18
apps/frontend/config/routing.yml
Normal file
18
apps/frontend/config/routing.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
##
|
||||
# Frontend default routings
|
||||
##
|
||||
homepage:
|
||||
url: /
|
||||
param: {module: stFrontendMain, action: index}
|
||||
|
||||
default_index:
|
||||
url: /:module
|
||||
param: {action: index}
|
||||
requirements:
|
||||
module: "[a-zA-Z0-9]+"
|
||||
|
||||
default:
|
||||
url: /:module/:action/*
|
||||
requirements:
|
||||
module: "[a-zA-Z0-9]+"
|
||||
action: "[a-zA-Z0-9]+"
|
||||
9
apps/frontend/config/security.yml
Normal file
9
apps/frontend/config/security.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
edit:
|
||||
all:
|
||||
is_secure: on
|
||||
|
||||
dev:
|
||||
all:
|
||||
is_secure: off
|
||||
|
||||
|
||||
131
apps/frontend/config/settings.yml
Normal file
131
apps/frontend/config/settings.yml
Normal file
@@ -0,0 +1,131 @@
|
||||
all:
|
||||
st_theme:
|
||||
clipboard: true
|
||||
.settings:
|
||||
standard_helpers: [Partial, Cache, Form, I18N, stTheme, stPartial, Javascript]
|
||||
i18n: on
|
||||
charset: utf-8
|
||||
enabled_modules: [default]
|
||||
.actions:
|
||||
error_404_module: stErrorFrontend
|
||||
error_404_action: error404
|
||||
unavailable_module: stUnavailableFrontend
|
||||
unavailable_action: unavailable
|
||||
|
||||
prod:
|
||||
.settings:
|
||||
no_script_name: on
|
||||
cache: on
|
||||
compressed: off
|
||||
etag: off
|
||||
|
||||
cache:
|
||||
.settings:
|
||||
# E_ALL | E_STRICT = 4095
|
||||
error_reporting: 4095
|
||||
web_debug: on
|
||||
cache: on
|
||||
no_script_name: off
|
||||
etag: off
|
||||
disable_package_verification: on
|
||||
|
||||
dev:
|
||||
.settings:
|
||||
# E_ALL | E_STRICT = 4095
|
||||
error_reporting: 4095
|
||||
web_debug: on
|
||||
cache: off
|
||||
no_script_name: off
|
||||
etag: off
|
||||
disable_package_verification: on
|
||||
|
||||
test:
|
||||
.settings:
|
||||
# E_ALL | E_STRICT & ~E_NOTICE = 2047
|
||||
error_reporting: 0
|
||||
cache: off
|
||||
web_debug: off
|
||||
no_script_name: off
|
||||
etag: off
|
||||
|
||||
#all:
|
||||
# .actions:
|
||||
# default_module: default # Default module and action to be called when
|
||||
# default_action: index # A routing rule doesn't set it
|
||||
#
|
||||
# error_404_module: default # To be called when a 404 error is raised
|
||||
# error_404_action: error404 # Or when the requested URL doesn't match any route
|
||||
#
|
||||
# login_module: default # To be called when a non-authenticated user
|
||||
# login_action: login # Tries to access a secure page
|
||||
#
|
||||
# secure_module: default # To be called when a user doesn't have
|
||||
# secure_action: secure # The credentials required for an action
|
||||
#
|
||||
# module_disabled_module: default # To be called when a user requests
|
||||
# module_disabled_action: disabled # A module disabled in the module.yml
|
||||
#
|
||||
# unavailable_module: default # To be called when a user requests a page
|
||||
# unavailable_action: unavailable # From an application disabled via the available setting below
|
||||
#
|
||||
# .settings:
|
||||
# available: on # Enable the whole application. Switch to off to redirect all requests to the unavailable module and action.
|
||||
#
|
||||
# # Optional features. Deactivating unused features boots performance a bit.
|
||||
# use_database: on # Enable database manager. Set to off if you don't use a database.
|
||||
# use_security: on # Enable security features (login and credentials). Set to off for public applications.
|
||||
# use_flash: on # Enable flash parameter feature. Set to off if you never use the set_flash() method in actions.
|
||||
# i18n: off # Enable interface translation. Set to off if your application should not be translated.
|
||||
# check_symfony_version: off # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
|
||||
# use_process_cache: on # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
|
||||
# compressed: off # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
|
||||
# check_lock: off # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
|
||||
#
|
||||
# # Output escaping settings
|
||||
# escaping_strategy: bc # Determines how variables are made available to templates. Accepted values: bc, both, on, off. The value off deactivates escaping completely and gives a slight boost.
|
||||
# escaping_method: ESC_ENTITIES # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES.
|
||||
#
|
||||
# # Routing settings
|
||||
# suffix: . # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on.
|
||||
# no_script_name: off # Enable the front controller name in generated URLs
|
||||
#
|
||||
# # Validation settings, used for error generation by the Validation helper
|
||||
# validation_error_prefix: ' ↓ '
|
||||
# validation_error_suffix: ' ↓'
|
||||
# validation_error_class: form_error
|
||||
# validation_error_id_prefix: error_for_
|
||||
#
|
||||
# # Cache settings
|
||||
# cache: off # Enable the template cache
|
||||
# etag: on # Enable etag handling
|
||||
#
|
||||
# # Logging and debugging settings
|
||||
# web_debug: off # Enable the web debug toolbar
|
||||
# error_reporting: 341 # Determines which events are logged. The default value is E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR = 341
|
||||
#
|
||||
# # Assets paths
|
||||
# rich_text_js_dir: js/tiny_mce
|
||||
# prototype_web_dir: /sf/prototype
|
||||
# admin_web_dir: /sf/sf_admin
|
||||
# web_debug_web_dir: /sf/sf_web_debug
|
||||
#
|
||||
# # Helpers included in all templates by default
|
||||
# standard_helpers: [Partial, Cache, Form]
|
||||
#
|
||||
# # Activated modules from plugins or from the symfony core
|
||||
# enabled_modules: [default]
|
||||
#
|
||||
# # Charset used for the response
|
||||
# charset: utf-8
|
||||
#
|
||||
# # Miscellaneous
|
||||
# strip_comments: on # Remove comments in core framework classes as defined in the core_compile.yml
|
||||
# autoloading_functions: ~ # Functions called when a class is requested and this it is not already loaded. Expects an array of callables. Used by the framework bridges.
|
||||
# timeout: 1800 # Session timeout, in seconds
|
||||
# max_forwards: 5
|
||||
# path_info_array: SERVER
|
||||
# path_info_key: PATH_INFO
|
||||
# url_format: PATH
|
||||
#
|
||||
# # ORM
|
||||
# orm: propel
|
||||
4
apps/frontend/config/soteshop.yml
Normal file
4
apps/frontend/config/soteshop.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
all:
|
||||
.view:
|
||||
theme:
|
||||
default_theme: default
|
||||
11
apps/frontend/config/view.yml
Normal file
11
apps/frontend/config/view.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
default:
|
||||
http_metas:
|
||||
content-type: text/html
|
||||
|
||||
|
||||
stylesheets: []
|
||||
|
||||
javascripts: []
|
||||
|
||||
has_layout: on
|
||||
layout: layout
|
||||
Reference in New Issue
Block a user