mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
2
data/symfony/skeleton/app/app/config/app.yml
Executable file
2
data/symfony/skeleton/app/app/config/app.yml
Executable file
@ -0,0 +1,2 @@
|
||||
# default values
|
||||
#all:
|
4
data/symfony/skeleton/app/app/config/cache.yml
Executable file
4
data/symfony/skeleton/app/app/config/cache.yml
Executable file
@ -0,0 +1,4 @@
|
||||
default:
|
||||
enabled: off
|
||||
with_layout: false
|
||||
lifetime: 86400
|
8
data/symfony/skeleton/app/app/config/config.php
Executable file
8
data/symfony/skeleton/app/app/config/config.php
Executable file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
// include project configuration
|
||||
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
// symfony bootstraping
|
||||
require_once($sf_symfony_lib_dir.'/util/sfCore.class.php');
|
||||
sfCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);
|
35
data/symfony/skeleton/app/app/config/factories.yml
Executable file
35
data/symfony/skeleton/app/app/config/factories.yml
Executable file
@ -0,0 +1,35 @@
|
||||
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%
|
10
data/symfony/skeleton/app/app/config/filters.yml
Executable file
10
data/symfony/skeleton/app/app/config/filters.yml
Executable file
@ -0,0 +1,10 @@
|
||||
rendering: ~
|
||||
web_debug: ~
|
||||
security: ~
|
||||
|
||||
# generally, you will want to insert your own filters here
|
||||
|
||||
cache: ~
|
||||
common: ~
|
||||
flash: ~
|
||||
execution: ~
|
7
data/symfony/skeleton/app/app/config/i18n.yml
Executable file
7
data/symfony/skeleton/app/app/config/i18n.yml
Executable file
@ -0,0 +1,7 @@
|
||||
#all:
|
||||
# default_culture: en
|
||||
# source: XLIFF
|
||||
# debug: off
|
||||
# cache: on
|
||||
# untranslated_prefix: "[T]"
|
||||
# untranslated_suffix: "[/T]"
|
22
data/symfony/skeleton/app/app/config/logging.yml
Executable file
22
data/symfony/skeleton/app/app/config/logging.yml
Executable file
@ -0,0 +1,22 @@
|
||||
prod:
|
||||
enabled: off
|
||||
level: err
|
||||
rotate: on
|
||||
purge: off
|
||||
|
||||
#all:
|
||||
# enabled: on
|
||||
# level: debug
|
||||
# rotate: off
|
||||
# period: 7
|
||||
# history: 10
|
||||
# purge: on
|
||||
# loggers:
|
||||
# sf_web_debug:
|
||||
# class: sfWebDebugLogger
|
||||
# param:
|
||||
# condition: %SF_WEB_DEBUG%
|
||||
# sf_file_debug:
|
||||
# class: sfFileLogger
|
||||
# param:
|
||||
# file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
|
15
data/symfony/skeleton/app/app/config/routing.yml
Executable file
15
data/symfony/skeleton/app/app/config/routing.yml
Executable file
@ -0,0 +1,15 @@
|
||||
# default rules
|
||||
homepage:
|
||||
url: /
|
||||
param: { module: default, action: index }
|
||||
|
||||
default_symfony:
|
||||
url: /symfony/:action/*
|
||||
param: { module: default }
|
||||
|
||||
default_index:
|
||||
url: /:module
|
||||
param: { action: index }
|
||||
|
||||
default:
|
||||
url: /:module/:action/*
|
2
data/symfony/skeleton/app/app/config/security.yml
Executable file
2
data/symfony/skeleton/app/app/config/security.yml
Executable file
@ -0,0 +1,2 @@
|
||||
default:
|
||||
is_secure: off
|
103
data/symfony/skeleton/app/app/config/settings.yml
Executable file
103
data/symfony/skeleton/app/app/config/settings.yml
Executable file
@ -0,0 +1,103 @@
|
||||
prod:
|
||||
.settings:
|
||||
no_script_name: ##NO_SCRIPT_NAME##
|
||||
|
||||
dev:
|
||||
.settings:
|
||||
# E_ALL | E_STRICT = 4095
|
||||
error_reporting: 4095
|
||||
web_debug: on
|
||||
cache: off
|
||||
no_script_name: off
|
||||
etag: off
|
||||
|
||||
test:
|
||||
.settings:
|
||||
# E_ALL | E_STRICT & ~E_NOTICE = 2047
|
||||
error_reporting: 2047
|
||||
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
|
17
data/symfony/skeleton/app/app/config/view.yml
Executable file
17
data/symfony/skeleton/app/app/config/view.yml
Executable file
@ -0,0 +1,17 @@
|
||||
default:
|
||||
http_metas:
|
||||
content-type: text/html
|
||||
|
||||
metas:
|
||||
title: symfony project
|
||||
robots: index, follow
|
||||
description: symfony project
|
||||
keywords: symfony, project
|
||||
language: en
|
||||
|
||||
stylesheets: [main]
|
||||
|
||||
javascripts: []
|
||||
|
||||
has_layout: on
|
||||
layout: layout
|
0
data/symfony/skeleton/app/app/i18n/.sf
Executable file
0
data/symfony/skeleton/app/app/i18n/.sf
Executable file
5
data/symfony/skeleton/app/app/lib/myUser.class.php
Executable file
5
data/symfony/skeleton/app/app/lib/myUser.class.php
Executable file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
class myUser extends sfBasicSecurityUser
|
||||
{
|
||||
}
|
0
data/symfony/skeleton/app/app/modules/.sf
Executable file
0
data/symfony/skeleton/app/app/modules/.sf
Executable file
18
data/symfony/skeleton/app/app/templates/layout.php
Executable file
18
data/symfony/skeleton/app/app/templates/layout.php
Executable file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
|
||||
<?php include_http_metas() ?>
|
||||
<?php include_metas() ?>
|
||||
|
||||
<?php include_title() ?>
|
||||
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php echo $sf_data->getRaw('sf_content') ?>
|
||||
|
||||
</body>
|
||||
</html>
|
10
data/symfony/skeleton/app/web/index.php
Executable file
10
data/symfony/skeleton/app/web/index.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..'));
|
||||
define('SF_APP', '##APP_NAME##');
|
||||
define('SF_ENVIRONMENT', 'prod');
|
||||
define('SF_DEBUG', false);
|
||||
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
sfContext::getInstance()->getController()->dispatch();
|
10
data/symfony/skeleton/app/web/index_dev.php
Executable file
10
data/symfony/skeleton/app/web/index_dev.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..'));
|
||||
define('SF_APP', '##APP_NAME##');
|
||||
define('SF_ENVIRONMENT', 'dev');
|
||||
define('SF_DEBUG', true);
|
||||
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
sfContext::getInstance()->getController()->dispatch();
|
24
data/symfony/skeleton/batch/default.php
Executable file
24
data/symfony/skeleton/batch/default.php
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ##BATCH_NAME## batch script
|
||||
*
|
||||
* Here goes a brief description of the purpose of the batch script
|
||||
*
|
||||
* @package ##PROJECT_NAME##
|
||||
* @subpackage batch
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
define('SF_ROOT_DIR', realpath(dirname(__file__).'/..'));
|
||||
define('SF_APP', '##APP_NAME##');
|
||||
define('SF_ENVIRONMENT', '##ENV_NAME##');
|
||||
define('SF_DEBUG', ##DEBUG##);
|
||||
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
// initialize database manager
|
||||
//$databaseManager = new sfDatabaseManager();
|
||||
//$databaseManager->initialize();
|
||||
|
||||
// batch process here
|
23
data/symfony/skeleton/batch/rotate_log.php
Executable file
23
data/symfony/skeleton/batch/rotate_log.php
Executable file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Log rotation batch script
|
||||
*
|
||||
* This script is used to manage log rotation, and should be called automatically by a cron task daily
|
||||
*
|
||||
* @package ##PROJECT_NAME##
|
||||
* @subpackage batch
|
||||
* @version $Id: rotate_log.php 3148 2007-01-04 19:34:28Z fabien $
|
||||
*/
|
||||
|
||||
define('SF_ROOT_DIR', realpath(dirname(__file__).'/..'));
|
||||
define('SF_APP', '##APP_NAME##');
|
||||
define('SF_ENVIRONMENT', '##ENV_NAME##');
|
||||
define('SF_DEBUG', ##DEBUG##);
|
||||
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
if (sfConfig::get('sf_logging_enabled') && sfConfig::get('sf_logging_rotate'))
|
||||
{
|
||||
sfLogManager::rotate(SF_APP, SF_ENVIRONMENT, sfConfig::get('sf_logging_period'), sfConfig::get('sf_logging_history'));
|
||||
}
|
10
data/symfony/skeleton/controller/controller.php
Executable file
10
data/symfony/skeleton/controller/controller.php
Executable file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
define('SF_ROOT_DIR', realpath(dirname(__file__).'/..'));
|
||||
define('SF_APP', '##APP_NAME##');
|
||||
define('SF_ENVIRONMENT', '##ENV_NAME##');
|
||||
define('SF_DEBUG', ##DEBUG##);
|
||||
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
sfContext::getInstance()->getController()->dispatch();
|
21
data/symfony/skeleton/module/module/actions/actions.class.php
Executable file
21
data/symfony/skeleton/module/module/actions/actions.class.php
Executable file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ##MODULE_NAME## actions.
|
||||
*
|
||||
* @package ##PROJECT_NAME##
|
||||
* @subpackage ##MODULE_NAME##
|
||||
* @author ##AUTHOR_NAME##
|
||||
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
|
||||
*/
|
||||
class ##MODULE_NAME##Actions extends sfActions
|
||||
{
|
||||
/**
|
||||
* Executes index action
|
||||
*
|
||||
*/
|
||||
public function executeIndex()
|
||||
{
|
||||
$this->forward('default', 'module');
|
||||
}
|
||||
}
|
0
data/symfony/skeleton/module/module/config/.sf
Executable file
0
data/symfony/skeleton/module/module/config/.sf
Executable file
0
data/symfony/skeleton/module/module/lib/.sf
Executable file
0
data/symfony/skeleton/module/module/lib/.sf
Executable file
0
data/symfony/skeleton/module/module/templates/indexSuccess.php
Executable file
0
data/symfony/skeleton/module/module/templates/indexSuccess.php
Executable file
0
data/symfony/skeleton/module/module/validate/.sf
Executable file
0
data/symfony/skeleton/module/module/validate/.sf
Executable file
15
data/symfony/skeleton/module/test/actionsTest.php
Executable file
15
data/symfony/skeleton/module/test/actionsTest.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
include(dirname(__FILE__).'/../../bootstrap/functional.php');
|
||||
|
||||
// create a new test browser
|
||||
$browser = new sfTestBrowser();
|
||||
$browser->initialize();
|
||||
|
||||
$browser->
|
||||
get('/##MODULE_NAME##/index')->
|
||||
isStatusCode(200)->
|
||||
isRequestParameter('module', '##MODULE_NAME##')->
|
||||
isRequestParameter('action', 'index')->
|
||||
checkResponseElement('body', '!/This is a temporary page/')
|
||||
;
|
0
data/symfony/skeleton/project/apps/.sf
Executable file
0
data/symfony/skeleton/project/apps/.sf
Executable file
0
data/symfony/skeleton/project/batch/.sf
Executable file
0
data/symfony/skeleton/project/batch/.sf
Executable file
0
data/symfony/skeleton/project/cache/.sf
vendored
Executable file
0
data/symfony/skeleton/project/cache/.sf
vendored
Executable file
5
data/symfony/skeleton/project/config/config.php
Executable file
5
data/symfony/skeleton/project/config/config.php
Executable file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
// symfony directories
|
||||
$sf_symfony_lib_dir = '##SYMFONY_LIB_DIR##';
|
||||
$sf_symfony_data_dir = '##SYMFONY_DATA_DIR##';
|
5
data/symfony/skeleton/project/config/databases.yml
Executable file
5
data/symfony/skeleton/project/config/databases.yml
Executable file
@ -0,0 +1,5 @@
|
||||
#all:
|
||||
# propel:
|
||||
# class: sfPropelDatabase
|
||||
# param:
|
||||
# dsn: mysql://root:@localhost/dbname
|
44
data/symfony/skeleton/project/config/propel.ini
Executable file
44
data/symfony/skeleton/project/config/propel.ini
Executable file
@ -0,0 +1,44 @@
|
||||
propel.targetPackage = lib.model
|
||||
propel.packageObjectModel = true
|
||||
propel.project = ##PROJECT_NAME##
|
||||
propel.database = mysql
|
||||
propel.database.createUrl = mysql://localhost/
|
||||
propel.database.url = mysql://localhost/##PROJECT_NAME##
|
||||
|
||||
propel.addGenericAccessors = true
|
||||
propel.addGenericMutators = true
|
||||
propel.addTimeStamp = false
|
||||
|
||||
propel.schema.validate = false
|
||||
|
||||
; directories
|
||||
propel.home = .
|
||||
propel.output.dir = ##PROJECT_DIR##
|
||||
propel.schema.dir = ${propel.output.dir}/config
|
||||
propel.conf.dir = ${propel.output.dir}/config
|
||||
propel.phpconf.dir = ${propel.output.dir}/config
|
||||
propel.sql.dir = ${propel.output.dir}/data/sql
|
||||
propel.runtime.conf.file = runtime-conf.xml
|
||||
propel.php.dir = ${propel.output.dir}
|
||||
propel.default.schema.basename = schema
|
||||
propel.datadump.mapper.from = *schema.xml
|
||||
propel.datadump.mapper.to = *data.xml
|
||||
|
||||
; builder settings
|
||||
propel.builder.peer.class = addon.propel.builder.SfPeerBuilder
|
||||
propel.builder.object.class = addon.propel.builder.SfObjectBuilder
|
||||
|
||||
propel.builder.objectstub.class = addon.propel.builder.SfExtensionObjectBuilder
|
||||
propel.builder.peerstub.class = addon.propel.builder.SfExtensionPeerBuilder
|
||||
propel.builder.objectmultiextend.class = addon.propel.builder.SfMultiExtendObjectBuilder
|
||||
propel.builder.mapbuilder.class = addon.propel.builder.SfMapBuilderBuilder
|
||||
propel.builder.interface.class = propel.engine.builder.om.php5.PHP5InterfaceBuilder
|
||||
propel.builder.node.class = propel.engine.builder.om.php5.PHP5NodeBuilder
|
||||
propel.builder.nodepeer.class = propel.engine.builder.om.php5.PHP5NodePeerBuilder
|
||||
propel.builder.nodestub.class = propel.engine.builder.om.php5.PHP5ExtensionNodeBuilder
|
||||
propel.builder.nodepeerstub.class = propel.engine.builder.om.php5.PHP5ExtensionNodePeerBuilder
|
||||
|
||||
propel.builder.addIncludes = false
|
||||
propel.builder.addComments = false
|
||||
|
||||
propel.builder.addBehaviors = false
|
2
data/symfony/skeleton/project/config/properties.ini
Executable file
2
data/symfony/skeleton/project/config/properties.ini
Executable file
@ -0,0 +1,2 @@
|
||||
[symfony]
|
||||
name=##PROJECT_NAME##
|
4
data/symfony/skeleton/project/config/rsync_exclude.txt
Executable file
4
data/symfony/skeleton/project/config/rsync_exclude.txt
Executable file
@ -0,0 +1,4 @@
|
||||
.svn
|
||||
/web/uploads/*
|
||||
/cache/*
|
||||
/log/*
|
0
data/symfony/skeleton/project/config/schema.yml
Executable file
0
data/symfony/skeleton/project/config/schema.yml
Executable file
0
data/symfony/skeleton/project/data/.sf
Executable file
0
data/symfony/skeleton/project/data/.sf
Executable file
0
data/symfony/skeleton/project/data/model/.sf
Executable file
0
data/symfony/skeleton/project/data/model/.sf
Executable file
0
data/symfony/skeleton/project/data/sql/.sf
Executable file
0
data/symfony/skeleton/project/data/sql/.sf
Executable file
0
data/symfony/skeleton/project/doc/.sf
Executable file
0
data/symfony/skeleton/project/doc/.sf
Executable file
0
data/symfony/skeleton/project/lib/.sf
Executable file
0
data/symfony/skeleton/project/lib/.sf
Executable file
0
data/symfony/skeleton/project/lib/model/.sf
Executable file
0
data/symfony/skeleton/project/lib/model/.sf
Executable file
0
data/symfony/skeleton/project/log/.sf
Executable file
0
data/symfony/skeleton/project/log/.sf
Executable file
0
data/symfony/skeleton/project/plugins/.sf
Executable file
0
data/symfony/skeleton/project/plugins/.sf
Executable file
14
data/symfony/skeleton/project/symfony
Executable file
14
data/symfony/skeleton/project/symfony
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
chdir(dirname(__FILE__));
|
||||
include('config/config.php');
|
||||
include($sf_symfony_data_dir.'/bin/symfony.php');
|
0
data/symfony/skeleton/project/test/.sf
Executable file
0
data/symfony/skeleton/project/test/.sf
Executable file
29
data/symfony/skeleton/project/test/bootstrap/functional.php
Executable file
29
data/symfony/skeleton/project/test/bootstrap/functional.php
Executable file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// guess current application
|
||||
if (!isset($app))
|
||||
{
|
||||
$traces = debug_backtrace();
|
||||
$caller = $traces[0];
|
||||
$app = array_pop(explode(DIRECTORY_SEPARATOR, dirname($caller['file'])));
|
||||
}
|
||||
|
||||
// define symfony constant
|
||||
define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/../..'));
|
||||
define('SF_APP', $app);
|
||||
define('SF_ENVIRONMENT', 'test');
|
||||
define('SF_DEBUG', true);
|
||||
|
||||
// initialize symfony
|
||||
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
// remove all cache
|
||||
sfToolkit::clearDirectory(sfConfig::get('sf_cache_dir'));
|
17
data/symfony/skeleton/project/test/bootstrap/unit.php
Executable file
17
data/symfony/skeleton/project/test/bootstrap/unit.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the symfony package.
|
||||
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
$_test_dir = realpath(dirname(__FILE__).'/..');
|
||||
define('SF_ROOT_DIR', realpath($_test_dir.'/..'));
|
||||
|
||||
// symfony directories
|
||||
include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
|
||||
|
||||
require_once($sf_symfony_lib_dir.'/vendor/lime/lime.php');
|
0
data/symfony/skeleton/project/test/functional/.sf
Executable file
0
data/symfony/skeleton/project/test/functional/.sf
Executable file
0
data/symfony/skeleton/project/test/unit/.sf
Executable file
0
data/symfony/skeleton/project/test/unit/.sf
Executable file
25
data/symfony/skeleton/project/web/.htaccess
Executable file
25
data/symfony/skeleton/project/web/.htaccess
Executable file
@ -0,0 +1,25 @@
|
||||
Options +FollowSymLinks +ExecCGI
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
# uncomment the following line, if you are having trouble
|
||||
# getting no_script_name to work
|
||||
#RewriteBase /
|
||||
|
||||
# we skip all files with .something
|
||||
RewriteCond %{REQUEST_URI} \..+$
|
||||
RewriteCond %{REQUEST_URI} !\.html$
|
||||
RewriteRule .* - [L]
|
||||
|
||||
# we check if the .html version is here (caching)
|
||||
RewriteRule ^$ index.html [QSA]
|
||||
RewriteRule ^([^.]+)$ $1.html [QSA]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
|
||||
# no, so we redirect to our front web controller
|
||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||
</IfModule>
|
||||
|
||||
# big crash from our front web controller
|
||||
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"
|
27
data/symfony/skeleton/project/web/css/main.css
Executable file
27
data/symfony/skeleton/project/web/css/main.css
Executable file
@ -0,0 +1,27 @@
|
||||
ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input
|
||||
{ margin: 0; padding: 0; }
|
||||
a img,:link img,:visited img { border: none; }
|
||||
|
||||
a
|
||||
{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover
|
||||
{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
body, td
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Arial, Verdana, sans-serif;
|
||||
font-size: 11px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
padding: 20px;
|
||||
}
|
0
data/symfony/skeleton/project/web/images/.sf
Executable file
0
data/symfony/skeleton/project/web/images/.sf
Executable file
0
data/symfony/skeleton/project/web/js/.sf
Executable file
0
data/symfony/skeleton/project/web/js/.sf
Executable file
2
data/symfony/skeleton/project/web/robots.txt
Executable file
2
data/symfony/skeleton/project/web/robots.txt
Executable file
@ -0,0 +1,2 @@
|
||||
#User-agent: *
|
||||
#Disallow:
|
0
data/symfony/skeleton/project/web/uploads/.sf
Executable file
0
data/symfony/skeleton/project/web/uploads/.sf
Executable file
0
data/symfony/skeleton/project/web/uploads/assets/.sf
Executable file
0
data/symfony/skeleton/project/web/uploads/assets/.sf
Executable file
Reference in New Issue
Block a user