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

Is it possible to call an extension method using an URL instead of a hook?

Development and Programming

aristidesfl's avatar
aristidesfl
5 posts
15 years ago
aristidesfl's avatar aristidesfl

Is it possible to call an extension method using an URL instead of a hook?

Thanks, Ari

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

No, that’s what hooks are for. Moving to Dev.

       
aristidesfl's avatar
aristidesfl
5 posts
15 years ago
aristidesfl's avatar aristidesfl

So if I wat to call a function with an anchor or a form I will have to create a module for that?

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

Hooks are actually to be used in extensions. They allow to rewrite certain parts of EE, as it were, without the need to hack the original code.

       
aristidesfl's avatar
aristidesfl
5 posts
15 years ago
aristidesfl's avatar aristidesfl

Yeah.. but since you don’t have a hook to redirect after entry deletion.. and it’s not possible do redirect using the delete finish hook because then the entries are not really deleted.. the only option left, without hacking the core is to rewrite the delete_entries() function found in the content_edit.php controller.

The simplest solution would be to rewrite the delete function inside an extension. The problem is that I needed to call the function without using php or javascript code..

If there was a way to call the function using a url, I wouldn’t have to write a whole module just for that..

       

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.