Hi Louie,

If the URL pointing to the image remains the same then the web browser
will cache the image on the client side. Each time the page is
displayed the image will not change unless the client refreshes the
page or clears their cache.

You can fix this problem by adding a unique value to the URL. For
example; http://www/about/background/12345, where the 12345 is the
current time.

You have not stated the reason for your approach. If you are trying to
randomize the background image for a website your working on, then
this business logic should most likely be placed in the view. I don't
see any reason to create a controller?

Also, you should add $this->autoRender = false to your action.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to