Jump to content

Recommended Posts

Posted

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? 

 

 

Posted

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.
  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...