Jump to content

Invalid security message in AdminModuleController


magotony

Recommended Posts

Hi everybody,

I'm currently developing a module that creates a new ModuleAdminController controller named AdminAnunciantes. Everything goes fine, the problem comes when I try to access an ajax function on this controller through a 'doAdminAjax' javascript function sited on the template file, because it returns 'invalid security code'.

 

I already tried to get the token with Tools::getAdminToken('AdminModules'.intval....), but nothing happens.

 

Does anyone have a similar problem or can anyone help me?

 

thanks.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...