Jump to content

My Plugin Renders A Totally Blank Page


inventa

Recommended Posts

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.

Link to comment
Share on other sites

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...