Load a HTML template inside another template.
App::Utility()->callElementByPath(path,[Options])
Parameter |
Description |
---|---|
path |
Path of the Template file |
Options |
Pass variable in included template. Array index of options array in will convert in variable name. array("action"=>"change","list"=>array("id"=>5,"note"=>"Comments")) |
See bellow example:
echo App::Utility()
->callElementByPath(
App::Config()->rootDir("/development/view/rainbow/elements/quicklinks.phtml"),
array("action"=>"change","list"=>array("id"=>5,"note"=>"Comments"))
);