-
-
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
Render LEVEL doesn't work correctly #4
Comments
Yep, render level seems to be wrong, sorry, it will be fixed soon as possible. Thanks for reporting it |
Here's the problem: /dev/view.c v4 is the value read from the LEVEL_x_VIEW var
So what's happening is if LEVEL_x_VIEW is equal or smaller than 5, then render the index.phtml. However, zend_declare_class_constant_long(phalcon_view_class_entry, "LEVEL_ACTION_VIEW", sizeof("LEVEL_ACTION_VIEW")-1, 5 TSRMLS_CC); here we can see that LEVEL_ACTION_VIEW is equal to 5 and this will be rendered. This isn't properly written. There has to be something that checks "if greater than", if you want to keep your vars untouched. I'm rewriting it as we speak, however not sure it'll be very good... My C is dodgy and I'm unfamiliar with the entire code... And the PHP magic vars :) Just my 2 cents. |
Hi JCVD, it was exactly that! It was fixed at dev repository, many thanks! |
Yep, pretty much exactly as mine (by reversing the order of the levels). Will overwrite, I had a extra if statement, yours is great! Thanks for the quick response! |
Declaration of ConcatOperator::compile() should be compatible with Logic...
Phalcon_View::setRenderLevel is broken (for me atleast).
What happens?
$this->view->setRenderLevel(Phalcon_View::LEVEL_ACTION_VIEW);
This prints out the main layout!
What should happen?
Only the view layout should've been printed.
Can anyone replicate this?
EDIT:
JCVD :)
The text was updated successfully, but these errors were encountered: