cs_init — Create and initialise a CS context.
resource cs_init( | hdf) ; |
resource hdf
;Returns a CS resource, or null if the resource could not be created. The CS context must be initialised with an HDF containing the data to be rendered in the template.
Example 22. cs_init
example
<?php $hdf = hdf_init(); hdf_set_value($hdf, 'foo', 'bar'); print_r(cs_init($hdf)); ?>