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

Calling an extensions method via CP url?

Development and Programming

Daniel Walton's avatar
Daniel Walton
553 posts
18 years ago
Daniel Walton's avatar Daniel Walton

Have tried using an action id, also tried to manipulate the C/P/M get variables, but as yet no luck :(

Anybody have any ideas?

In short I need to process a query, and return the results in an XML format, but only within the CP. And this is to all be within an extension file, I don’t really want to, unless completely necessary, separate it into a cp class.

       
Derek Jones's avatar
Derek Jones
7,561 posts
18 years ago
Derek Jones's avatar Derek Jones

Actions are reserved for modules, and you could probably do something with a session hook to parse the URL and trigger your extension’s method, but I don’t like the idea of bypassing like that. Perhaps a module is the more appropriate solution? Can you give some broader details about what you’re doing, and where?

       
Daniel Walton's avatar
Daniel Walton
553 posts
about 18 years ago
Daniel Walton's avatar Daniel Walton

Hmm, sorted it now… I hi-jacked the edit page to display the data I need if a certain get variable is present 😊

It’s sort of an ajax’y publish/edit form enhancement ;]

Details to follow i’m sure.

       

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.