My colleague and me are both working in a MVC system on the same controller. Problem is that we can’t edit the same file at the same time because we’re overwriting each others changes.
Is there a way to include methods into a class using the include() function?
Basically I want three files, controller.php his_file.php and my_file.php
U need a Versioning System like SVN to handle this conflicts and code loss or need a centralised system where you and ur colleague must place code after taking the latest code from each other, thats what versioning system do generally… you dont have to add any extra code load to acheive what you need this which would be again a bad practice.
As a single user the main advantages are
a file) you can undelete it. If you change something and want to
undo it, the VCS can do so.
a pdf and want to fix some typos in them while simultaneously
working on the notes for next year. No problem. And you only need to
fix the typos once, the VCS will merge them to the other versions.
VCS themselves. I can make a branch copy for my collaborator on my
own system and simply copy in their corrections to that each time,
then merge them into the main branch as if they’d been using the VCS
all along. Keeps the advantages of using version control but without
requiring all collaborators to use it.