EmptyMind Posted July 24, 2013 Report Posted July 24, 2013 I've gotten to the part of my new plugin, where it would be nice to use the manage interface to set a few fields. However I'm running into the problem of blesta trying to load the views pages from the admin view directory, instead of the plugin's view directory. Taken straight from the plugin how-tp docs.. the command: $this->partial("admin_manage_plugin"); In the index() functoin of the 'AdminManagePlugin' controller returns the following error: --- Oh noes!Files does not exist: /home/blesta/htdocs/app/views/admin/default/admin_manage_plugin.pdt on line 120 in /home/blesta/htdocs/lib/view.php --- Even though the plugin docs says that the view file SHOULD be loaded from the plugin/<pluginname>/view/default/ directory as per: http://docs.blesta.com/display/dev/Creating+a+Plugin at the area headed by 'Managing a Plugin'. Are the docs missing a 'set view directory' command? Or something? Quote
EmptyMind Posted July 24, 2013 Author Report Posted July 24, 2013 Forget to mention we are running b5 (haven't updated to b6 yet) Quote
EmptyMind Posted July 24, 2013 Author Report Posted July 24, 2013 aha! $this->view->setView(null, "FeedReader.default"); return $this->partial("admin_manage_plugin", $vars) the examples are missing the 'setView()' to set the view directory. Quote
Jonathan Posted October 9, 2014 Report Posted October 9, 2014 I just got caught up on this too. I'm sure if the docs could be updated it'd save the next person the hour it took me to track this down Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.