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 | |
|| 开发者_C百科 | |
|+---------------------------------------------+ |
+----------------------------------------------------------------+
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.
In this , You should use Ajax.Its better than reuestAction.
精彩评论