Thanks, will give it go!

 

Update as I go.

Appreciated.

 

Dave

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
euromark
Sent: Sunday, May 18, 2014 8:20 PM
To: [email protected]
Subject: Re: Plugin Upgrade

 

The "hack" $this->View =& ClassRegistry::getObject('view'); 
is not needed anymore in 2.x

 

You can directly access the View object in helpers via

 

  $this->_View

 

 

mark

Am Montag, 19. Mai 2014 00:35:52 UTC+2 schrieb advantage+:

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

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to