56

First time dealing with front and backend web programming. Any advice or tutorials that can help me get on the track with good MVC? I hate having a giant discombobulated mess of an index.php file

Comments
  • 1
    I'm cutting my teeth in the same area. I'd recommend keeping familiar and stable tools in your aresonal at all times. PHP Storm and Intellij for coding, CentOS for hosting, phpMyAdmin to access SQL database in my case.
  • 5
    Just dont use index files and use a framework like Laravel or Symfony or any other one.
    PhP has a ton of great features as long as you use them correctly
  • 2
    @RicoNijeboer until you realise those frameworks so slow!
  • 1
    There's a library called Klein which can help you with routing. And then there's a view engine called twig that does well, views.

    Alternatively there are a bunch of frameworks, like larval and symphony that does mvc
  • 0
    1st, Adobe XD is free, prototype software (instead of using paint).

    2nd, Microsoft .NET MVC got well detailed tutorials on their websites. Just google .NET MVC
  • 1
    @gazza101uk you can use symfony as micro framework, just pick the bits you need, and I think they have a second project which is a stripped down minimal version.
  • 8
    🙂
  • 0
    Try codeigniter or phalcon, they are both light and simple
  • 0
    @inaba I'd say fuck twig..

    if you use a decent framework/or roll your own you can easily have a structure with views files without the need of an extra layer
  • 0
    @theMaintainer Symphony would be a good candidate for a framework to use
  • 0
    I would advise u to have a ViewModel layer too if u have a complex database.
  • 1
    Laravel. Very simple and useful with big documentation and community. For me, the best. Try it. Never quite it.
  • 0
    @gazza101uk what, to you, is defined as slow response time exactly? Because i get responses in the blink of an eye with most of my laravel apps.
    May also be an optimized code/query thing (not trying to bash you)
  • 1
    @sonofwind brilliant, absolutely brilliant.
  • 1
    Don't use PHP, use Node.js :)
  • 0
    @D3add3d ++ because i hope it was a meme
  • 0
    @RicoNijeboer well kind of, I hate PHP and it's not built for modern web and I don't use Node.js either, I just make webapps using baas such as Firebase :)
  • 0
    @D3add3d I mean i on the nodejs part, but php aint that bad for modern development. I used it for work every day the past year and it's helped me more than i have given it credit for :)
  • 0
    I use mvc like that: modèl (i put some sql req) in view i put html(php file) With some include php display and in the controller i put display algo and executing the modèl on conditions or Just some conditions for thé navigations . I'm student i Will know what pro do 😊.
Add Comment