You are here

DIR_VARS.txt in Live CSS 8

Same filename and directory in other branches
  1. 8.2 DIR_VARS.txt
Just for future reference - directory paths from various PHP functions/variables.

	$relative_dir / drupal_get_path('module', 'live_css') 
		-> modules/live_css

	dirname(__FILE__) 
		-> /full/path/to/drupal/modules/live_css/lib/Drupal/live_css/Controller

	$sanitized_url 
		-> http://www.website.com/themes/custom_theme/css/layout.css

	$relative_file_path 
		-> /full/path/to/drupal/themes/custom_theme/css/layout.css

	$doc_root 
		-> /full/path/to/drupal/

	$stripped_url 
		-> /themes/custom_theme/css/layout.css

File

DIR_VARS.txt
View source
  1. Just for future reference - directory paths from various PHP functions/variables.
  2. $relative_dir / drupal_get_path('module', 'live_css')
  3. -> modules/live_css
  4. dirname(__FILE__)
  5. -> /full/path/to/drupal/modules/live_css/lib/Drupal/live_css/Controller
  6. $sanitized_url
  7. -> http://www.website.com/themes/custom_theme/css/layout.css
  8. $relative_file_path
  9. -> /full/path/to/drupal/themes/custom_theme/css/layout.css
  10. $doc_root
  11. -> /full/path/to/drupal/
  12. $stripped_url
  13. -> /themes/custom_theme/css/layout.css