Česky
Kamil Dudka

QuickMenu (Javascript, PHP)

File detail

Name:Downloadconfig.php [Download]
Location: QuickMenu > QuickMenu-with-example
Size:921 B
Last modification:2007-09-05 19:11

Source code

<?php
/**
 * @attention Do not forget update next line when chaging documentRoot or classDir!
 */
include_once('base.php');
function initConfig() {
  $config = Config::instance();
 
  /**
   * Base path for all files accessed at @b server's @b side
   */
  $config->setDocumentRoot('.');
 
  /**
   * URL base for all files accessed from @b web @b browser
   */
  $config->setWebRoot('.');
 
  /**
   * Visible name of the web
   */
  $config->setWebName('QuickMenu demo');
 
  /**
   * Relative path to class definition files
   */
  $config->setClassDir('');
 
  /**
   * Relative path to Javascript files
   */
  $config->setScriptDir('');
 
  /**
   * Relative path to CSS files
   */
  $config->setStyleDir('');
 
  /**
   * Relative path to images
   * @note There should be only common usage images.
   * Page-specific images can be in filesDir or htmlDir.
   */
  $config->setImgDir('');
}
initConfig();
?>