cs_parse_file — Parse a CS template file.
bool cs_parse_file( | cs, | |
path); |
resource cs;string path;
Parses a template file path, adding it to the CS context cs. Returns true on successful parsing, false otherwise.
Example 24. cs_parse_file example
<?php
$hdf = hdf_init();
hdf_set_value($hdf, 'message', 'Hello World!');
$cs = cs_init($hdf);
if (!cs_parse_file($cs, '/path/to/template.cs')) {
die('Failed to parse template');
}
?>