开发者

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

开发者 https://www.devze.com 2023-03-01 08:01 出处:网络
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 everyti

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消