alxsss
09-30-2011, 03:53 AM
Hello,
I have php templates and have been told that if I have those templates in xml and atom formats then my site will work in mobile devices too. However, I do not know how to convert php templates to these formats and did not find anything about them in the net.
I have the following code php code
<?php foreach ($objects as $obj):?>
<div class="obj_title"><?php echo $obj->getTitle();?></div>
<div class="obj_content"><?php echo $obj->getContent();?></div>
<?php enforecah;?>
I need to know how should I translate it to xml and atom formats?
Thanks in advance.
Alex.
I have php templates and have been told that if I have those templates in xml and atom formats then my site will work in mobile devices too. However, I do not know how to convert php templates to these formats and did not find anything about them in the net.
I have the following code php code
<?php foreach ($objects as $obj):?>
<div class="obj_title"><?php echo $obj->getTitle();?></div>
<div class="obj_content"><?php echo $obj->getContent();?></div>
<?php enforecah;?>
I need to know how should I translate it to xml and atom formats?
Thanks in advance.
Alex.