inventa Posted February 11, 2014 Report Posted February 11, 2014 Hello, I am trying to develop a plugin for Blesta 3.0.6. I followed the documentation but all I get is a blank page when I try to access the page. Can anyone help? statement.zip Quote
Michael Posted February 11, 2014 Report Posted February 11, 2014 I recommend using the latest versions either 3.1.0 or 3.0.8. Blank page could be any reason, have you got a log (tools > logs > modules) or a error_log? Quote
inventa Posted February 11, 2014 Author Report Posted February 11, 2014 Apache Error Log is empty, and I don't have the Modules Log you mentioned. As far as the version is concerned, we have a lot of custom code that would imply lots of work to get it updated. And we have it running in our internal network so we're keeping this one for now. Quote
Paul Posted February 11, 2014 Report Posted February 11, 2014 Try enabling error reporting and see if that white page turns into an error message. To enable error reporting, edit /config/blesta.php and change Configure::errorReporting(0); to Configure::errorReporting(-1); Quote
inventa Posted February 12, 2014 Author Report Posted February 12, 2014 Thanks for the tip, I will try that. Maybe that's a quick edit to the documentation that would help a lot of people trying to develop? Quote
inventa Posted February 12, 2014 Author Report Posted February 12, 2014 Well, it seems like this structure.pdt is required, but also not mentioned anywhere on the docs. I copied it over from another plugin, but now I just get a blank page with the contents of my admin_main view and nothing else. Quote
velaware Posted February 15, 2014 Report Posted February 15, 2014 I had this issue myself and its kind of really annoying. Add this to your controller's preAction method: $this->structure->setDefaultView(APPDIR); $this->structure->setView(null, $this->orig_structure_view); Add this to your plugin's main controller preAction (i.e.: plugin_controller.php file): $this->view->view = "default"; $this->orig_structure_view = $this->structure->view; $this->structure->view = "default"; Note that your controller (where you call setView()) has to extend your plugin's controller for this to work. Michael 1 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.