Hi All, Am in the process of developing a stats app for work, that grabs data directly from a MySQL database. Have done some PHP based development before, so decided to use CakePHP as a framework, am glad to say, is all good so far.
In essence my URLs are like so... http://server/webstats/<id> And you get a series of graphs of *live* data for that vhost (vhosts are mapped to ids) for the past month. It all works pretty well. I added the sluggable behaviour from one of the articles and all works fine, so now I can input http://server/webstats/<virtual_host_name> and everything works well and as expected. I would like to add additional parameters, for example a sub-set of graphs (summary maybe) or more likely a different data set based on date (eg different month). Something like... http://server/webstats/<virtual_host_name>/yyyy-mm/ or similar (webstats/vhost/yyyy/mm or webstats/yyyy/mm/vhost or whatever really). Had a look at the main cake docs regarding routing and also the sluggable behaviour docs, but my Cake understanding is obviously a little lacking as although it makes some sense, I have no idea if this is possible or not. So, can anyone answer if this is doable/simple/impossible and any routing examples/snippets that would accomplish this. Thanks Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
