We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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)?



43.9k
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
        );
    }