Do you echo renderElement() output? This method only returns element output, not print it.
On Mar 17, 10:41 pm, furionn <[email protected]> wrote: > Hi all! > > Here is my code: > > Controller: > ================================== > <?php > class NewsController extends AppController { > > var $name = 'News'; > var $helpers = array('Html', 'Form'); > > function newsLeft() > { > $news = $this->News->findAll(); > if(isset($this->params['requested'])) > { > return $news; > } > > $this->set('news', $news); > > }} > > ?> > > Element: > ================================= > <?php > $a = $this->requestAction('news/newsLeft'); > foreach ($a as $key => $val) > { > echo $val['News']['short']; > > } > > //die('================='); > ?> > > Problem is: > > if die(); commented out displays nothing > else displays normal > > P.S. Sorry for my bad english --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
