user210504
user210504

Reputation: 1759

can I call requestAction from within a requestAction chunk in cakephp?

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

Answers (1)

chetanspeed511987
chetanspeed511987

Reputation: 2025

In this , You should use Ajax.Its better than reuestAction.

Upvotes: 1

Related Questions