Thanks all for the answers. I try to avoid to use the controller into
the view, but actually I have a piece of code I use in many views (for
menus management).
I did as an helper, and I need everytime to see the parameters of the
views and eventually access some static variable define into the
app_controller. This is where I struggle a bit, so how could I do this
:

class AppController extends Controller {
        public static $my_var = array( ... )
...
}

Now into the helper I want to access this static variable, what is the
syntax I could use ? I come from C++, and getting quick in PHP but not
as quick to find out the way to access this without having to write a
static function or derived it.

Thanks



On Oct 14, 12:23 pm, "AD7six" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> >> $this->view->controllerThat's not such a good idea ;). try 
> >> $this->view->name for what was
> asked, or simplly $this->name when you are in the view itself. Never
> access the controller from the view, and when at some point in the
> future the connection is removed, your code will still work.
> 
> HTH,
> 
> AD7six


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to