I try to make a plugin to show some usage statistics for the client.
I created a plugin "usage", added the action for the navigation, set up language files etc., everything that is required per the documentation.
I created a controller file "plugins/usage/controller/client_main.php" and the view "/plugins/usage/views/default/client_main.pdt".
Once i press the new navigation item "your usage" that leads to "client/plugin/usage/client_main/index/" i get a blank page and in the error log ther is the follwing error:
Question
Tadso
Hi everyone,
I try to make a plugin to show some usage statistics for the client.
I created a plugin "usage", added the action for the navigation, set up language files etc., everything that is required per the documentation.
I created a controller file "plugins/usage/controller/client_main.php" and the view "/plugins/usage/views/default/client_main.pdt".
Once i press the new navigation item "your usage" that leads to "client/plugin/usage/client_main/index/" i get a blank page and in the error log ther is the follwing error:
[2020-06-16 12:27:39] general.ERROR: Exception: Files does not exist: /mypath/blesta/plugins/usage/views/client/bootstrap/client_main_myinfo.pdt in /mypath/blesta/vendors/minphp/bridge/src/Lib/View.php:158 Stack trace: #0 /mypath/blesta/vendors/minphp/bridge/src/Lib/Controller.php(222): View->fetch('mypath...', NULL) #1 /mypath/blesta/app/controllers/client_main.php(717): Controller->partial('client_main_myi...', Array) #2 mypath/blesta/app/controllers/client_main.php(50): ClientMain->setMyInfo() #3 mypath/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php(133): ClientMain->preAction() #4 /mypath/blesta/index.php(21): Dispatcher::dispatch('blesta/...') #5 {main}
why is it looking for the "client_main_myinfo.pdt" in my plugin folder, it is in the app-folder?
4 answers to this question
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.