Re: How to use ClassRegistry::getObject('view') in cake 2.2?
$this->_View in your helper On Tuesday, July 10, 2012 2:27:37 PM UTC-4:30, Lucas Simon Rodrigues Magalhaes wrote: > > I'm using this, $view =& ClassRegistry::getObject('view'); in my Helper > but does not work. > > I imported App::uses('ClassRegistry', 'Utility'); > > but nothing ... and my debug( $view =& ClassRegistry::getObject('view')); > always return false > > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to use ClassRegistry::getObject('view') in cake 2.2?
http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html#view On Tue, Jul 10, 2012 at 2:57 PM, Lucas Simon Rodrigues Magalhaes wrote: > I'm using this, $view =& ClassRegistry::getObject('view'); in my Helper but > does not work. > > I imported App::uses('ClassRegistry', 'Utility'); > > but nothing ... and my debug( $view =& ClassRegistry::getObject('view')); > always return false > > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How to use ClassRegistry::getObject('view') in cake 2.2?
I'm using this, $view =& ClassRegistry::getObject('view'); in my Helper but does not work. I imported App::uses('ClassRegistry', 'Utility'); but nothing ... and my debug( $view =& ClassRegistry::getObject('view')); always return false -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php