Re: How to use ClassRegistry::getObject('view') in cake 2.2?

2012-07-12 Thread José Lorenzo
$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?

2012-07-10 Thread lowpass
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?

2012-07-10 Thread Lucas Simon Rodrigues Magalhaes
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