ballhogjoni Posted May 1, 2009 Share Posted May 1, 2009 I set up a class variable and I get an error: Parse error: parse error, expecting `','' or `';'' in my code class IndexController extends Zend_Controller_Action{ var $db = Zend_Registry::get('db'); } Link to comment https://forums.phpfreaks.com/topic/156347-what-am-i-missing/ Share on other sites More sharing options...
neogemima Posted May 1, 2009 Share Posted May 1, 2009 Can you show us a little more code. Sometimes when there is an error in the preceding lines, the program can expect line terminations later on. Link to comment https://forums.phpfreaks.com/topic/156347-what-am-i-missing/#findComment-823188 Share on other sites More sharing options...
mikesta707 Posted May 1, 2009 Share Posted May 1, 2009 you seem to be missing a semi colon a couple of lines up. Link to comment https://forums.phpfreaks.com/topic/156347-what-am-i-missing/#findComment-823194 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.