@TheMVRules You're absolutely right. In fact I wrote another MVC for fun and used output buffer which really improved view handling. Thanks for pointing that out.
If you're already using file_get_contents to get the contents of the view files, why would you use fopen, fwrite, fclose when you can just use file_put_contents?
@WebDevFTW I wasn't paying attention to what I was writing in the video. You'll have to remember that I do little to no work prior, so all of my code is done while making the video.
@ScoobyDooobyD00 Sorry, just trying to give some future tips for new releases. I mean, since it's on github, you can just push a new commit with the edits and maybe put an annotation that the software has been updated.
How about implementing Smarty template engine?
renegade8164 6 months ago
You could use PHP output buffer control instead of using a temp folder.
TheMVRules 7 months ago
@TheMVRules You're absolutely right. In fact I wrote another MVC for fun and used output buffer which really improved view handling. Thanks for pointing that out.
ScoobyDooobyD00 7 months ago
If you're already using file_get_contents to get the contents of the view files, why would you use fopen, fwrite, fclose when you can just use file_put_contents?
WebDevFTW 9 months ago
@WebDevFTW I wasn't paying attention to what I was writing in the video. You'll have to remember that I do little to no work prior, so all of my code is done while making the video.
ScoobyDooobyD00 9 months ago
@ScoobyDooobyD00 Sorry, just trying to give some future tips for new releases. I mean, since it's on github, you can just push a new commit with the edits and maybe put an annotation that the software has been updated.
WebDevFTW 9 months ago
@WebDevFTW Oh yeah, no worries mate. I love getting good feedback on my videos, helps make me a better programmer ;)
ScoobyDooobyD00 9 months ago