Day 15: Feeds
185
Feeds Latest Jobs Feed Supporting different formats is as easy as creating different templates. To create an Atom feed66 for the latest jobs, create an indexSuccess.atom.php template: <!-- apps/frontend/modules/job/templates/indexSuccess.atom.php --> <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Jobeet</title> <subtitle>Latest Jobs</subtitle> <link href="" rel="self"/> <link href=""/> <updated></updated> <author><name>Jobeet</name></author> <id>Unique Id</id> <entry> <title>Job title</title> <link href="" /> <id>Unique id</id> <updated></updated> <summary>Job description</summary> <author><name>Company</name></author> </entry> </feed>
66. http://en.wikipedia.org/wiki/Atom_(standard)
-----------------
Brought to you by
Listing 15-4