-
-
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
[NFR] Allow view->partial to return instead of echo #2140
Comments
Hi there, idea really appreciated! maybe it is a bit hard to change this for 1.2.6 or 1.3.0 due to regression support, but at least having the possibility to return the contents instead would be very nice |
Fixed #2140 add param `autorender` to Phalcon\Mvc\View::partial
@dreamsxin why your changes aren't present? Could you add PR into 1.3.3? |
@mruz May be a rollback, I resubmitted. |
Currently I resort to
ob_start()
andob_get_clean()
but it's cumbersome. Would be nice to have a methodgetPartial()
which returns the output as string instead of echo'ing it directly. I imagine quite a few designers would benefit from this. I have a genuine need myself so I can include my design components into smaller partials.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: