I think I don't really understand your answer. :-)
In views I can use $this->element(...), and I'd like to call this
function in a helper's method... at the time being, I pass $this to
the method:
// View
echo $this->MyHelper->element($paras..., $this);
// Helper
function element($params..., &$view) {
return $view->element(...);
}
...but it would be nice if I didn't have to pass it...
On Fri, Jan 28, 2011 at 4:22 PM, <[email protected]> wrote:
>> Oh, but another question: I'd like to make use of the elements()
>> method within my helper. This doesn't seem to be possible...?
>
> make a new function within the helper that contains what your element has
> got in it. you can then share that between helpers.
>
>
>
> Mike Karthauser
> Managing Director - Brightstorm Ltd
>
> Email: [email protected]
> Web: http://www.brightstorm.co.uk
> Tel: 07939 252144 (mobile)
> Fax: 0870 1320560
>
> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
>
> --
> 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
>
--
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