granviller
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API] [Plugin: JSON API] Problem in creating External controllersLooks like I was wrong and did get it to work, but was receiving a message that reflected an error with what was being accomplished. that Error message that got returned made me thing I didn’t get the external controller working properly.
Talk about embarrassing.
Thank you for making such a great plugin that is highly extensible.
Forum: Plugins
In reply to: [JSON API] [Plugin: JSON API] Problem in creating External controllersI know that this is an old thread, but I was trying to get an external controller to work and I am having problems because it won’t find the file when you try to go to a dev url for a given function in the controller.
example.com/api/hello/hello_world/?dev=1
I get a message of unknown controller. I traced this down to line 35 of the api.php file. I had to edit the strings to determine which one it was.
The problem function seems to be in api.php and is named controller_path(). It seems to always look for controllers in the json_api_dir/controllers folder.
For now I have to put my controller file into the json_api/controlders folder for it to work. Not a big deal, but I like the idea of the external controller. Should the function be passing the directory to the apply filters, or should it be passing a function name like “set_$controller_controller_path”?
Gran