Utiliser la constante SYMFONY_VERSION:
<?php echo link_to('Powered by symfony '. SYMFONY_VERSION, 'http://www.symfony-project.com'); ?>
constant($peer_class::FIELD_NAME);
Utiliser la constante magique :
DIRECTORY_SEPARATOR
pour construire les chemins.
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
all:
lucene:
index_path: %MY_CONSTANT%/data/lucene
image_path:
photos: %SF_WEB_DIR%/images/photos
avatars: %SF_WEB_DIR%/images/avatars
logs
8062.5 KB