Hi Ashton,

i don't know what specifically  do you want but maybe this code help you:


class mymoduleActions extends sfActions
{

  public function executeXML(sfWebRequest $request)
  {
    $this->rows = Doctrine::getTable('table')
      ->createQuery('a')
      ->execute();
  }
}


//template
<?php
$xmlDoc = new DOMDocument('1.0', 'utf-8');
$xmlDoc->formatOutput = true;

$noticias = $xmlDoc->createElement('items');
$noticias = $xmlDoc->appendChild($rows);


foreach ($rows as $row)
{
  $item = $xmlDoc->createElement('item');
  $item = $noticias->appendChild($item);

  $title = $xmlDoc->createElement('title',$tow->getName().' -
'.$row->getField());
  $title = $item->appendChild($title);
}
echo $xmlDoc->saveXML();

?>



Bye


Augusto Morais

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to