Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

see a view without loading the index.volt

Hi, How I can see a view without loading the contents of index.volt?

I don't understand. What you mean without loading the index.volt ? It's impossible to see something without loading it tbh.

Perhaps you need to debug prepared view before sending it to the actual view component (Volt in ths case)?



30.7k
Accepted
answer

Hi,

do you mean index.volt main layout file ? In that case use :

    public function showAction($postId)
    {
        // Shows only the view related to the action
        $this->view->setRenderLevel(
            View::LEVEL_ACTION_VIEW
        );
    }