Re: Calling functions in a Controller

2007-07-31 Thread Grant Cox
Ok, no worries. Just seeing the $this->function build_resume() set off an alarm bell that perhaps you didn't even know how to call a function, so I may have been a bit harsh :) On Aug 1, 3:38 am, peterhf <[EMAIL PROTECTED]> wrote: > Thanks for the reply, Grant. The "$this->function build_resume(

Re: Calling functions in a Controller

2007-07-31 Thread peterhf
Thanks for the reply, Grant. The "$this->function build_resume()" is a typo, I did indeed try "$this->build_resume()". Your comment about "$sequence=null" is appropriate but more importantly it pointed me in another direction which will lead to a solution of the underlying problem - that build_res

Re: Calling functions in a Controller

2007-07-30 Thread Grant Cox
I would recommend learning the basics of PHP before getting into CakePHP. Many people already experienced with PHP find a steep learning curve. When you want to call another function from inside the same object, use $this->function_name(), not $this->function function_name(); eg: $this->build_r

Calling functions in a Controller

2007-07-30 Thread peterhf
CakePHP 1.13.4450, PHP 4.4.4 Controller A includes multiple functions, two of which are function build_resume() { . . . } and later in the code, function move_up($sequence) { . . . $this->function build_resume(); } When move_up is called from a view, a notice that "sequence" is