Page 1 of 1
Odd assign_block_vars problem
Posted: 28 Mar 2010, 21:03
by comkid
Re: Odd assign_block_vars problem
Posted: 29 Mar 2010, 18:25
by igorw
And why exactly are you using <!-- PHP --> tags? Use normal template variables.
Re: Odd assign_block_vars problem
Posted: 29 Mar 2010, 19:28
by imkingdavid
Re: Odd assign_block_vars problem
Posted: 16 Apr 2010, 14:15
by Thoul
I agree you should just do it the usual way, but here's the reason your approach didn't work. Template files are parsed inside a function of the template class. Inside the scope of that function, $template isn't set. To do it the way you were trying, instead of $template->_rootref, you'd have to use $this->_rootref.