Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: mobile formats and php code
09-30-2011, 04:53 AM #1
- Join Date
- Sep 2011
- Thanked 0 Times in 0 Posts
mobile formats and php code
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;?>
Thanks in advance.
09-30-2011, 11:39 PM #2
- Join Date
- Mar 2007
- Florida, USA
- Thanked 406 Times in 398 Posts
Atom is used for RSS almost exclusively. You don't want to change your pages to that unless you are offering some sort of syndication. Mobile devices(smart phones I should say) understand HTML just fine. You may want to adjust your layout for smaller screens, but you don't need to convert to XML for the page to render on a mobile device.