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

homepage.xml
or render some text in the
homepage.html.twig
nothing changes.

In
homepage.xml
I added this

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


directly below the
article
property, and when I go to the admin page, the
header
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