Thanks beforeRender worked.
Like you said maybe i was misunderstanding the use of afterFilter.
On Mon, Mar 14, 2011 at 12:09 AM, hunny wrote:
> Not sure about the afterFilter function. Are you sure this is being
> invoked automatically?
> Otherwise you can probably right the same logic in before
Not sure about the afterFilter function. Are you sure this is being
invoked automatically?
Otherwise you can probably right the same logic in beforeRender
Function.
On Mar 14, 6:51 am, cake-learner wrote:
> I set up my app object in both beforeFilter and afterFilter callback
> functions
>
> class
I set up my app object in both beforeFilter and afterFilter callback
functions
class AppController extends Controller{
var $myAppObj;
var $components = array("Site" , "Notification", "Auth", "Mailer",
"Session");
function beforeFilter(){
$this -> myAppObj = unserailize( $this ->