Author Topic

kracker

The Doctor

Wednesday 04 May 2005 5:09:18 am

Comment18738

Yes!

The eZ template compiler supports a wide range of settings and options via the command line.

 ./bin/linux/php-cli bin/php/eztc.php --help
Usage: bin/php/eztc.php [OPTION]...
Exponential Template Compiler

./bin/php/eztc.php -snews --www-dir='/mypath' --index-file='/index.php' --access-path='news'

General options:
  -h,--help        display this help and exit
  -q,--quiet       do not give any output except when errors occur
  -s,--siteaccess  selected siteaccess for operations,
                     if not specified default siteaccess is used
  -d,--debug...    display debug output at end of execution,
                     the following debug items can be controlled:
                     all, accumulator, include, timing, error, warning, debug or notice.
  -c,--colors      display output using ANSI colors (default)
  --no-colors      do not use ANSI coloring
  --logfiles       create log files
  --no-logfiles    do not create log files (default)
  -v,--verbose...  display more information,
                     used multiple times will increase amount of information

Options:
  --compile-directory=VALUE  Where to place compiled files,
                               default is template/compiled in current cache directory
  --www-dir=VALUE            The part before the index.php in your URL, you should supply this if you are running in non-virtualhost mode
  --index-file=VALUE         The name of your index.php if you are running in non-virtualhost mode
  --access-path=VALUE        Extra access path
  --force                    Force compilation of template whether it has changed or not
  --full-url                 Makes sure generated urls have http:// in them (i.e. global), used mainly by sites that include the Exponential HTML (e.g payment gateways)
  --no-full-url              Makes sure generated urls are relative to the site. (default)

Cheers,
//kracker

Trigun : Episode 26

Member since: 2001.07.13 || http://ezpedia.se7enx.com/