Skip to content
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

[BUG] \Phalcon\Mvc\View #1282

Closed
ovr opened this issue Sep 24, 2013 · 3 comments
Closed

[BUG] \Phalcon\Mvc\View #1282

ovr opened this issue Sep 24, 2013 · 3 comments

Comments

@ovr
Copy link
Contributor

@ovr ovr commented Sep 24, 2013

Hi all)
I'm using layouts and modules structure
in one module feed IndexController in same logic I'm using to render in view

$view = $this->view;
$view->disableLevel(array(
\Phalcon\Mvc\View::LEVEL_LAYOUT => true,
\Phalcon\Mvc\View::LEVEL_MAIN_LAYOUT => true
));
$view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_ACTION_VIEW);
echo $view->render('curation', 'index', array('render' => 'action'));

I'm also seeing 2 layouts but if I disable the view in curation controller and open it can't see layout only view

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ghost
Copy link
Collaborator

@ghost ghost commented Sep 25, 2013

That's the intention of $view->setRenderLevel(\Phalcon\Mvc\View::LEVEL_ACTION_VIEW); only render the action view without the layout

@ovr
Copy link
Contributor Author

@ovr ovr commented Sep 26, 2013

2 codes is only for test. @phalcon I don`t understand u i can put screenshots if it needed

@niden niden added Unassigned and removed Unassigned labels Apr 3, 2014
@stale
Copy link

@stale stale bot commented Apr 17, 2018

Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues

@stale stale bot added the stale label Apr 17, 2018
@sergeyklay sergeyklay closed this Apr 17, 2018
@niden niden added bug status: medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.