Jump to content

Admin_Manage_Plugin


EmptyMind

Recommended Posts

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? 

 

 

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...