+1  A: 

In the working code you use $this to refer to your form in init in the second version you use $this->studentForm.

So I would be curious to know why the codes differ there and what object is that second init from. The code you posted is different there.

Something tells me in your second controller you should be using

$addform->studentForm->stuff

Since its not an instance of Zend_Form but an object containing a studentForm Zend_Form.

Iznogood
Thank you, you were spot on. I hadn't noticed that difference in my code. As I said, I'd been looking at it too long!Thanks again.
vascowhite
hey your welcome! Please remember to accept answers when they help and vote too!
Iznogood
@vascowhite Welcome to stackoverflow please read up on the faq here: http://stackoverflow.com/faq
Iznogood