I agree with the other suggestions here, the framework will not be a magical fix.
however, this may help in the long run. I have now converted several mishmash sites to the kohana framework and had the following impressions.
initially I didn’t know very well kohan, so I found out that when transcoding mysite. I stopped rewriting and coded a whole new project from scratch to get to know kohana, and then went back to the rewriting project, now that I understood the structure better.
if you don’t understand the framework, it will be a steep learning curve, trying to use it to transform an old project
The first step in rewriting was to put all the business / database logic embedded in the pages at the top of each page (before html is released). So I did not change the flow / structure of the website, just separating the business logic from the display logic.
After that I had a website that had easy-to-read business logic, only in the old structure, and at the same time I got acquainted with the old code base.
The next step I took was to fix any problems with the database structure so that everything was in 3rd normal form (if possible).
it was easier for me to change the old code to a new database structure, and then to work and the old database structure in the new structure. (kohana is mainly based on agreements, not configuration, so it was nice to follow these agreements to facilitate long-term maintenance).
having a good database structure makes life easier regardless of structure
The next step was to select a part of the website for replacement. set up routes in Cohan and let Kohan serve that part of the project. kohana (and other frameworks without a doubt) have a backup, if the file requested via url already exists on the site, then kohana will not process this request
since you separated the business logic from the display logic in your php files, it is just a matter of separating the code into a controller and a view. make changes to both parts according to the frame. you can split the business logic into a model / controller after you have the controller / view working as expected
make your way through this part of the site to completion. then test / launch / bugfix etc.
then start again on the next part of the site.
in the end you will get there ...
although it took a long time to dub, it was useful to me, as sites are much easier to maintain now. (it is obvious that the gain will depend on the quality of the source code base)
luck
source share