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

Improve code quality/consistency in Phalcon\Mvc\View #14095

Closed
scrnjakovic opened this issue May 19, 2019 · 2 comments
Closed

Improve code quality/consistency in Phalcon\Mvc\View #14095

scrnjakovic opened this issue May 19, 2019 · 2 comments
Labels
enhancement Enhancement to the framework

Comments

@scrnjakovic
Copy link
Contributor

Any particular reason for using ob_end_clean(); instead of $view->finish() ? :)

cphalcon/phalcon/mvc/view.zep

Lines 1146 to 1159 in 6518334

/**
* Start the output buffering
*/
view->start();
/**
* Perform the render passing only the controller and action
*/
view->render(controllerName, actionName);
/**
* Stop the output buffering
*/
ob_end_clean();

@niden
Copy link
Member

niden commented May 19, 2019

None really. They both do the same thing. We should change that though to view->finish() to keep the consistency.

Nice catch.

@niden niden added the enhancement Enhancement to the framework label May 19, 2019
@niden niden mentioned this issue May 20, 2019
5 tasks
@niden
Copy link
Member

niden commented May 20, 2019

Resolved in #14098

@niden niden closed this as completed May 20, 2019
@niden niden added the 4.0 label Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to the framework
Projects
None yet
Development

No branches or pull requests

2 participants