symfony1 - How are the "cache" files generated by PHP Symfony? -


i new symfony, have experience other web frameworks eg ruby on rails.

i'm trying modify web page, , traced template particular file: cache/backend/dev/modules/autousers/templates/indexsuccess.php

if update file, web page updated.

however, file not in git repository. , given top directory called cache, surmise file generated symfony. modifying file directly not right solution.

i'm trying understand how cache file generated, how can find places of real source files make change. can explain please?

after make changes, how can regenerate cache file? or handled automatically symfony/php?

thanks you.

probably refer version 1 of framework.

the default implementation of crud module generated in folder named cache. if want modify file (and don't want lost modified version) must copy in module , action folder.

in case, must put file in specified folder:

apps/backend/modules/users/templates/indexsuccess.php 

more info in section templates customization in doc:

as classes, can override original templates. templates plain php files , not php classes, template can overridden creating template of same name in module (for instance in apps/backend/modules/job/templates/ directory job admin module):

hope help


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -