Hey

I'm very close to launching a new website but this particular bug is very
frustrating.

I have the following:
http://pastie.org/private/pg2yyscxo54vliustpp6ua


I have trouble with is the final step *"$this->add_options()".*

>From the action *add_options() ..*
    pr($options); ## Returns an array of data

>From the view *edit.ctp ...
* pr($options); ## Undefined Variable: $options



If I add "$this->render();" to the bottom of the *edit* action it will
duplicate the layout again and all the data but it will display the $options
data in the duplicated view/layout.
This is great, except 2 versions of the same action (one a dud, one working)
in the same page, this includes the layout i.e. <html>Layout & Content
1</html><html>Layout & Content 2 (Working Version)</html>


This is baffling me!
Any help would be appreciated.

-- 
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to