On Sep 13, 11:54 am, gremlin <[email protected]> wrote: > Keep in mind - when you are doing $this->set from an element: You > aren't calling View::set - you are calling Element::set. Why would you > expect that to behave as if it was an instance of the View class when > it isn't? Also, the two pass rendering of CakePHP means that in order > for what you propose to work you would need a 3rd pass through the > stack of set variables and rendered elements before parsing the > combined view output. This isn't how Cake works and struggling this > much to force the framework to do something it isn't meant to is going > to simply be a waste of your time, either now - getting it to work - > or later when you have to support it. >
Element::set is not a function in CakePHP, so I don't know why you think it exists. Elements execute in the context of the view. So their $this is the same as the $this in the view and layout. -Mark -- 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
