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

Impossible to use CSS block into View Cells #7003

Closed
mylux opened this Issue Jul 12, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@mylux
Contributor

mylux commented Jul 12, 2015

In CakePHP 3.0 I am trying to build a Dynamic menu based on user profiles.
I just noticed that it is impossible to do:

$this->Html->css('menupan.css',['block'=>true]);

It seems like the View Cells are loaded after the View Blocks were already rendered.

Is this the real purpose of View Cells, or we may consider this a bug?

Thanks in advance.

@markstory

This comment has been minimized.

Show comment
Hide comment
@markstory

markstory Jul 12, 2015

Member

Cells are not loaded after, but they do use separate view instances that do not share state with the enclosing view. This is intentional as cells are a lightweight replacement for requestaction.

Member

markstory commented Jul 12, 2015

Cells are not loaded after, but they do use separate view instances that do not share state with the enclosing view. This is intentional as cells are a lightweight replacement for requestaction.

@markstory markstory added this to the 3.0.9 milestone Jul 12, 2015

@markstory markstory added the Question label Jul 12, 2015

@markstory markstory closed this Jul 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment