Favorites Browser Progress Report
Moving from perl to PHP isn't always easy, especially when you use CPAN modules to get most of the work done. But I had no idea I was digging such a hole with my decision to move to php. The Smarty setup isn't that big of a deal, but it does force you to think about how you want to separate logic from presentation and how to best get HTML out of your code and into your templates. Your code should deal with data, not ever-changing HTML.
Then there is the issue of parsing the xml that you get back from the Flickr REST interface. zeman on the Flickr API group pointed me to miniXML, which is nice since it is pure PHP and requires no additional modules. It did take a while to get used to though, even with the nice docs and samples. I'm just slow that way.
Speaking of slow, I haven't even fully replicated the main feature of the perl version, that is to have the first column be a specified user's favorites and the rest of the row be the favorites of the owner of the picture in the first column. Although, now that I have my head around miniXML and how the Smarty templates are going to be laid out, I should be able to make better progress. I would like to have something I'm not embarrassed to post the code for by tonight.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
















