Hi,
I need to take some output from a helper and put it into a variable
rather than echoing it to screen, is this possible with Cake 1.2?

eg.
Helper Function: links.php
[code]
        function return_link() {
                $output = $this->Ajax->link(__('return_link',true),'/
index',array('update' => 'pagecontent','loading' =>
"loading();showMenu();",'complete' => "complete();"),null,false);
                return $output;
        }
[/code]
Page View
[code]
<?php $return_link = $links->return_link(); ?>
[/code]

Doing this prints the link to screen (which I don't want it to do).

Any ideas?

Cheers

Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to