We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How can I make ajax calls within Custom Module's management console?

Development and Programming

Environ-IT's avatar
Environ-IT
26 posts
15 years ago
Environ-IT's avatar Environ-IT

I’d love to be able to call functions from within my Custom Modules management page. But I’m struggling to work out where to define the php functions and how to work out the URL to call them.

I thought I’d just need to define a function in my modules mcp class and call it using something like this

$vars['ajax_url'] = 'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=document_editor'.AMP.'method=ajax_function';

But I realise that’s not right. I’d welcome any suggestions on how to structure my module to allow me to do this.

Thanks

Andrew

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.