I'm playing with changing a test site and so far have managed to do everything with zero core code changes.
However, there will come a time where this is not possible and I will need to change the code in a file. Now in this situation I understand that the file should first be copied to the same file structure in the templates/ override directory,which is great as the original code remains unchanged, and Phoenix uses the override version.
What then happens when a Phoenix update comes along which updates that file, or maybe even removes its requirement?
Im assuming that when updating that any changes in the override file would need to be done again to a copy of the new updated file?
Maybe I'm overthinking things
Override Question
- Mort_Lemur
- Builder
- Posts: 63
- Joined: Tue Jun 02, 2026 6:12 pm
- Phoenix Version: v1.1.0.6
- Has thanked: 42 times
- Been thanked: 17 times
- tessthepup
- Certified Developer
- Posts: 382
- Joined: Mon Mar 01, 2021 5:55 pm
- Phoenix Version:
- Has thanked: 47 times
- Been thanked: 62 times
Re: Override Question
If you look at templates/default as an example you will see that all files in there are files that can be overriden.Mort_Lemur wrote: ↑Sun Jul 05, 2026 2:12 pm I'm playing with changing a test site and so far have managed to do everything with zero core code changes.
However, there will come a time where this is not possible and I will need to change the code in a file. Now in this situation I understand that the file should first be copied to the same file structure in the templates/ override directory,which is great as the original code remains unchanged, and Phoenix uses the override version.
What then happens when a Phoenix update comes along which updates that file, or maybe even removes its requirement?
Im assuming that when updating that any changes in the override file would need to be done again to a copy of the new updated file?
Maybe I'm overthinking things
IMO and @burt will probably come along with a more definitive answer but I would say that the files that can be over ridden will most probably never be removed.
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Override Question
Overthinking. But thats not a bad thing, especially when starting out.
You're thinking about a hypothetical situation that may never affect you.
Could you give a more `concrete` example, of this "what if" situation -> it'll be a lot easier to then give a proper eaisly understandable answer.
You're thinking about a hypothetical situation that may never affect you.
Could you give a more `concrete` example, of this "what if" situation -> it'll be a lot easier to then give a proper eaisly understandable answer.