Access shell methods in controller? Cake PHP 1.3

Posted by anonymous coward on Stack Overflow See other posts from Stack Overflow or by anonymous coward
Published on 2010-06-01T21:05:37Z Indexed on 2010/06/02 22:54 UTC
Read the original article Hit count: 132

Filed under:
|
|
|
|

I wrote a shell method in CakePHP 1.3 that has a return value.

I'd like to be able to access that method from within a controller, so that I can pass its return value into the View.

I'm not sure how to access those methods appropriately from within the controller. Have I done it wrong?

I could easily duplicate the code, but I'd like to "keep it DRY", and the actual functionality, I believe, doesn't belong with this particular controller - I just need it's return value in this particular view.

© Stack Overflow or respective owner

Related posts about php

Related posts about shell