-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View - setRenderLevel() parsing layout on LEVEL_NO_RENDER #76
Comments
Hello Agile, I'm not able to reproduce your problem. I added an action to the MVC example with a main view: https://github.com/phalcon/mvc/blob/master/single/apps/controllers/ProductsController.php Accesing the "/products/test" isn't producing the output in the main view. Check the following urls: Also, we added a unit test to test that render level: https://github.com/phalcon/cphalcon/blob/0.5.0/unit-tests/ViewTest.php#L96 |
Closing issue because this isn't a bug. Thanks |
it seems that this problem still present, but only with volt engine, it does not listen this: $view->disableLevel(array(
\Phalcon\Mvc\View::LEVEL_ACTION_VIEW,
\Phalcon\Mvc\View::LEVEL_AFTER_TEMPLATE,
\Phalcon\Mvc\View::LEVEL_BEFORE_TEMPLATE,
\Phalcon\Mvc\View::LEVEL_LAYOUT,
\Phalcon\Mvc\View::LEVEL_MAIN_LAYOUT,
)); (or any of them) and this: $view->setLayout('widget'); (can't change layout with this function, only by 'extends' in view) |
No, it works, sorry, but not everywhere i will try to investigate this... |
From Google Groups:
Sooperagile Agile
Guys, Even if one sets Render Level to $this->view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_NO_RENDER); main layout is still parsed
The text was updated successfully, but these errors were encountered: