Jaimy Jaimy - 3 years ago 83
PHP Question

Template changes not showing with Sulu

When I bootstrap a new project using the latest version and documentation, and then add some properties to the

or render some text in the
nothing changes.

I added this

<property name="header" type="media_selection">
<title lang="en">Header</title>

directly below the
property, and when I go to the admin page, the
doesn't show up.

Same thing with small changes to the twig file. When I dump the content var there, nothing shows up.

Any ideas on what the problem might be?

Answer Source

I am not familiar with Sulu, but I am guessing that this is a Symfony related issue and you are seeing a cached version. Try clearing the cache (see How to Use the Console):

For the production environment:

php bin/console cache:clear --no-warmup --env=prod

For the development environment:

 php bin/console cache:clear --no-warmup --env=dev
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download