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

Load views on accessory process_***** methods

Development and Programming

Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
15 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

I was experimenting with Accessories today. Specifically with using the addons method that allows running other Accessory methods via ajax calls (C=addons_accessories&M=process_request&accessory=accessory_test&method=process_). I am trying to figure out how much can be done here in terms of returning data.

At it’s simplest form I am accessing this URL directly (rather than the eventually intended ajax approach) and it works fine if I do something like this:

function process_question()
{
     exit("hello, world.)";
}

it works as expected. However, if I try to load a view file from within my add-on package I get the following error message:

Unable to load the requested file: __myFile__

So, I assume I cannot load view files due to where this method is run in the page load. Is that accurate?

Any insight is appreciated. Thanks 😊

       
Greg Aker's avatar
Greg Aker
6,022 posts
15 years ago
Greg Aker's avatar Greg Aker

Hey Erik,

For my money, it’s buggy. Proper theme paths should be set.

https://support.ellislab.com/bugs/detail/14741/ 😊

-greg

       
Focus Lab Dev Team's avatar
Focus Lab Dev Team
1,129 posts
15 years ago
Focus Lab Dev Team's avatar Focus Lab Dev Team

Good to know. Thanks for letting me know and thanks for adding it to the bug tracker and saving my precious finger strength for other tweets 😊

       

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.