Skip to navigation

Question:
How to get current URL in the view for cakephp?

Use simple algorithms as well as simple data structures.