Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
  line 231: 'PHP_HANDLING' => false,

to:

Code Block
languagetext
 line 231: 'PHP_HANDLING' => true,

change:

Code Block
languagetext
 line 238: 'PHP_TAGS' => false,

to:

Code Block
languagetext
 line 238: 'PHP_TAGS' => true,

change:

Code Block
languagetext
line 202: var $php_handling  =  SMARTY_PHP_PASSTHRU;

to:

Code Block
languagetext
line 202: var $php_handling = SMARTY_PHP_ALLOW;

Make sure not to overwrite your changes with upgrade.

Main Template file

...

Template file rendered when HostBill index.php is called without params is

...

Located in your template directory.

Previewing new template

...

If you're working on new template in separate directory under /templates [ex. /templates/myintegration/ ]dir you don't need to change your current template just to preview your changes. You can add &systemtemplate=myintegration param to url just to change current template for your session.

...

When you've made mistake in Smarty syntax you wont be able to see your template (it will rende blank) - you can enable error reporting in /includes/config.php file of your HostBill to locate where error has been made.

Getting full list of available variables in template

...