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 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.