Re: Passing controller variables to beforeRender

2007-12-12 Thread dr. Hannibal Lecter
Hi, you could just use a variable inside your controller? Set it inside your action as $this->cn_id = $your_id and change your code to: > function beforeRender() > { > if($this->cn_id){ > $current_cn = $this->Account->Note->read(null, $this->cn_id); > $thi

Passing controller variables to beforeRender

2007-12-11 Thread skoggins
Hi All, I assumed that you could use variables set in an action in a beforeRender function because it is called after the controller action but I guess I am wrong. is there a way to pass a variable to beforeRender? Here is my code: function beforeRender() { if($id){ $cu