2

I know I can access public controller actions by doing something like this with jquery:

$("#stuff").load("/controller/action");

But how do I access the private/protected actions in a controller using jquery or javascript?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Jonathan Chiu
  • 1,637
  • 2
  • 16
  • 25

1 Answers1

2

You can create an action in the controller file which will call your private or protected action. A direct call is not possible.

rdp
  • 2,072
  • 4
  • 31
  • 55