CakePOWER allows you to add a virtual version name to all your assets:
Every assets url created through CakePHP helpers will be postfixed with that version string:
<script src="/js/foo.js?v=1.0.3" />
<link href="/css/foo.css?v=1.0.3" />
You should manually change version’s string whenever you upload new version of your assets forcing all clients to download new copy of libraries, stylesheets, images, etc!
In my authentication based project I have an Account Settings panel who allow authenticated user to change some profile data like e-mail, language and country.
All things works fine with CakePHP Model’s save() method but AuthComponent still provide old values because it stores user’s data into CakePHP SessionComponent at login time.
The problem is that when an authenticated user updates it’s profile then he need to logout then login to update session’s data.
There is a little bug in BackboneJS Router’s logic:
If you try to trigger the same route twice (or more) then linked action is triggered only once.
In this simple tutorial I tell you why this behavior happens and I propose a simple workaround to let things works.
I also set up a jsFiddle example to demonstrate how this bug influence your app and the simple workaround to kill it.
Let me say I have the view named “tagFilteredView” who contain a simple list of items.
Depending on the tag I want to filter my items by the list may show 3 to hundreds or results. The list is always the same.
Maybe I found a little bug in Sencha Touch UI when you perform these actions:
- render a List with a lot of data inside
- scroll down the list
- update the List’s Store with a small set of data that not require to scroll
In this case you are not able to see data and you are not able to scroll up the list… but there is a simple solution! Continue reading