Everything works only if I comment on the controller verification code ( if (!$acl->isResource($controller)) ). Otherwise, the error 404 (or rather, instead of success, ajax returns an error).
Probably the $controller does not display the real controller (indicated in the path ajax). Independently did not understand.