Load a controller into an other controller in cakephp

Posted by john on Stack Overflow See other posts from Stack Overflow or by john
Published on 2010-05-19T09:28:23Z Indexed on 2010/05/19 9:30 UTC
Read the original article Hit count: 319

Filed under:
|
|

im developing a web application, using multiple pages, each with their own controller.

The problem now is that there are some variables in a controller, created for one page, that are required for an other page ( with a different controller).

Therefor i need to load one controller into the other one.

I did this by adding App::import('Controller', 'sections');

$sections= new sectionsController; $sections->constructClasses();

to the controller, but this doens't seem to work..

Maybe u guys have some ideas?

Thnx in advance!

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about php