alex-w
(Pr0j3ct A1ex)
1
Placeholders that would be replaced in render or before final output. This is for dynamic content.
Variables:
...html
{{placeholder1}}
...html
placeholder1 would be the key for the placeholder array somewhere.
Class based:
...html
{{Class:2}}
...html
Possibly some default method present in the class that would be passed 2 as the parameter.
Could then query etc. returning a string to insert.
dckurushin
(Diavolonok)
2
this is already exists actually…
alex-w
(Pr0j3ct A1ex)
3
Can you provide the link to this so anyone else searching can find it too.
jacmoe
(Jacob Moena)
4
Anything you pass into the array parameter to the render or renderPartial functions are available in the view.
$this->render('view', array('var1' => $var1));
If you want more templatized approach, then check out the various template extensions.