I have an old plugin I am converting to work with 2.x and have run into an error and need a bit of help from anyone who might know the reason for this:
Error:
Warning (4096): Argument 1 passed to HtmlHelper::__construct() must be an instance of View, none given, called in …. on line 377
In the helper:
public function __construct()
{
$this->View =& ClassRegistry::getObject('view'); // this is line 377 from the error log
$this->init();
}
Any help would be greatly appreciated.
Dave
No comments:
Post a Comment