one variable and multiple controllers..

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-05-18T11:23:20Z Indexed on 2010/05/18 11:40 UTC
Read the original article Hit count: 305

Filed under:
|
|
|

I'm working on a web application, using the CAKEPHP framework. Herefor i need to request one variable on multiple pages (all pages have different controllers). it is oubvious that i get a error on several pages, since the variable isn't declared in all the different controllers.

Is there a workaround for this? i've already tried the app:: import to import a controller in another controller, but this doens't seem to work (still get a undefined variable error).

Thnx for your cooperation!

Regards, Simon

© Stack Overflow or respective owner

Related posts about variable

Related posts about cakephp