[eluser]Icehawg[/eluser]
[quote author="Alexander84" date="1299886705"]
Code:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 2 for MY_Parser::parse(), called in somepage_controller.php on line 6 and defined
Filename: libraries/MY_Parser.php
Line Number: 22
[/quote]
Downloaded the repo today from github and still getting this error. Added an if(is_array($data)) to My_parser library.
Code:
if(is_array($data))
{
$data = array_merge($data, $this->load->_ci_cached_vars);
}
However, with and without this code change, it does not seem to be pushing my loaded variables to the Smarty engine.
Code:
$this->_data['testvar'] = 'blue';
$this->parser->parse('default',$this->_data);
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: testvar
Filename: sysplugins/smarty_internal_data.php
Line Number: 291
Would love to use Smarty but can't seem to puzzle this out. Been scratching my head over this for a couple of hours now. Any thoughts. I can access the variable as $testvar if I ignore Smarty and I use the standard load->view.
BTW - Using Smarty's built in debug mechanism causes a crash of "not enough resources" when attempting to spit out the $this variable details.