Reputation: 1759
I have a bunch of independent controller actions, which I need to cascade in a single page. For that I was thinking of making a requestAction call within a requestAction. The second call fails everytime with a 404. I am new to cakephp and am not sure whether if it is even possible.
Is there a better way using jQuery which can help me achieve this.
+----------------------------------------------------------------+
| header |
+----------------------------------------------------------------+
| |
|+---------------------------------------------+ +--------------+|
|| Submenu | | Main Menu ||
|+---------------------------------------------+ | ||
| +--------------+|
|+---------------------------------------------+ |
|| Content View | |
|| | |
|+---------------------------------------------+ |
+----------------------------------------------------------------+
so when an option from main menu is selected submenu is displayed using requestAction, then I want the first menu item of the submenu be selected by default, which should display the ContentView associated with that menu option. I am using second requestAction call for that.
Upvotes: 0
Views: 173
Reputation: 2025
In this , You should use Ajax.Its better than reuestAction.
Upvotes: 1