Details
-
Skillssymfony, git, PHP, SCSS, JS, jQuery, HTML, SCRUM, Web Development, etc
Joined devRant on 10/24/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
and yes, depending on you need cases, it's better to decouple your code: functionality from view. So functionality will remain in PHP files and the templating will be done in TWIG. WordPress still isn't using MVC approach by default (see Timber for that) but more complicated CMSs like Drupal changed its structure to follow this approach. It's up to you :) Hope I helped.
-
I can try explaining Model View Controller in a simple way:
You're a client and you go to the restaurant. You make a request to the waiter (depending on the route, a certain controller will be called) that takes your request and give it to the chef to cook it. So the waiter is your CONTROLLER, that tells the chef, which is the server, what do you need from it. The chef takes your requirements and says: ok, I'll need these ingredients, so he goes to the fridge (database) and takes only what he needs. So the server (chef) is your MODEL and it communicates with the DATABASE. Than it gives to the controller what it asked for and he prepares a plate with everything the client asked for in his request. The plate is served, and that is your VIEW. :D -
great! what technologies are you going to work with?
-
Google home mini seems way cooler. if you don't really want Alexa, I'd go for this one.
-
but DI is not about folders and less files. is about inversion of control and...well, dependencies (coming from another object). or are you trying to say smth else? 😁
-
but it's not only you that struggle with this weird trick the mind is playing on you, girls do too. so, for the past months I've been trying to get girls way out of my league (so I thought) by just pretending I don't want them. they were so used to guys instantly liking them and buying them stuff that an asshole like me was something really interesting aaaaaand hard to get! so they felt for it. start using it as an exploit of the human mind, not as a bug of yours.
-
and you still decide to use the remaining power to post it to devRant, hah! what a hero
-
by now you should be poor again
-
@adifferent yes, just made a website in grav. it's decent. flat-file system seems awesome and twig is fast and nice to edit templates in. guess I'll stick with grav if nobody has a better idea
-
@illusion466 I don't want to attract so much attention. a little journal would be enough, but I'd like full control over my code but no worries about database and hosting. heh
-
@JoshBent I'll take a look, thx
-
testicles?
-
I'd do my job for free, but that doesn't stop me for asking for a lot of money and tech if they're ok with that 😂😅
-
it doesn't give a fuck
-
start using Drupal :D