php mysql jquery codes hints

PHP, Symfony, Mysql, jQuery, Ajax, Web development, Payment Gateways, CCavenue, Interview Questions, Web Service Integrations

Thursday, 2 October 2014

Symfony Basic File Structure

The Basic File Structure

The path variables are defined in the sfProjectConfiguration and sfApplicationConfigurationclasses and stored in the sfConfig object.  
sf_root_dir           # myproject/
sf_apps_dir           #   apps/
sf_app_dir            #     frontend/
sf_app_config_dir     #       config/
sf_app_i18n_dir       #       i18n/
sf_app_lib_dir        #       lib/
sf_app_module_dir     #       modules/
sf_app_template_dir   #       templates/
sf_cache_dir          #   cache/
sf_app_base_cache_dir #     frontend/
sf_app_cache_dir      #       prod/
sf_template_cache_dir #         templates/
sf_i18n_cache_dir     #         i18n/
sf_config_cache_dir   #         config/
sf_test_cache_dir     #         test/
sf_module_cache_dir   #         modules/
sf_config_dir         #   config/
sf_data_dir           #   data/
sf_lib_dir            #   lib/
sf_log_dir            #   log/
sf_test_dir           #   test/
sf_plugins_dir        #   plugins/
sf_web_dir            #   web/
sf_upload_dir         #     uploads/
Every path to a key directory is determined by a parameter ending with _dir. Always use the path variables instead of real (relative or absolute) file paths, so that you will be able to change them later, if necessary. For instance, when you want to move a file to the uploads/ directory in an application, you should use sfConfig::get('sf_upload_dir') for the path instead of
Posted by Rath at 00:25
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Symfony

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contact Me

Name

Email *

Message *

Pages

  • Home
  • Symfony
  • PHP
  • My PHP Works
  • Contact Me

Categories

  • CCavenue (2)
  • General Tips (5)
  • git (1)
  • htaccess (5)
  • Interview Questions (3)
  • jQuery (2)
  • jQuery interview questions (2)
  • Mobile App (1)
  • MongoDB (1)
  • Payment gateway (3)
  • PHP (28)
  • PrestaShop (2)
  • Symfony (9)
  • Wordpress (4)

Blog Archive

  • ►  2024 (1)
    • ►  July (1)
  • ►  2021 (5)
    • ►  December (1)
    • ►  November (1)
    • ►  July (2)
    • ►  June (1)
  • ►  2019 (1)
    • ►  June (1)
  • ►  2018 (1)
    • ►  January (1)
  • ►  2017 (2)
    • ►  December (1)
    • ►  February (1)
  • ►  2016 (2)
    • ►  February (1)
    • ►  January (1)
  • ►  2015 (7)
    • ►  December (1)
    • ►  October (3)
    • ►  July (2)
    • ►  April (1)
  • ▼  2014 (38)
    • ►  November (1)
    • ▼  October (2)
      • Remove .php, .html, .htm extensions with .htaccess
      • Symfony Basic File Structure
    • ►  September (6)
    • ►  July (4)
    • ►  April (9)
    • ►  February (16)
  • ►  2013 (4)
    • ►  December (3)
    • ►  November (1)

About Me

My photo
Rath
View my complete profile

Total Pageviews