25
mk3d
7y

Really???
Love work on other guy project...
But, please, not this shit..

Comments
  • 4
    sending prayers hugs and love your way
  • 2
    My god! Get that code out the view file!!!!!!
  • 0
    @AlexDeLarge HAHAAHAHAHA the french part got me
  • 5
    To be honest, how should this have been done instead?
  • 4
    Controller should call the sql from a model and then call the view file while passing the variable for the table.

    And a simple foreach for the table data (can do an except if you need to exclude data) turnes that mess in the view to about 5 lines.

    People that code php like that pic is why people mock it.
  • 3
    I've seen worse
  • 2
    No mvc here :p this is a fucking student code, all things in a single file! Yeah! My work: all these shit in mvc.
    1638 lines... about 70 files to read...
    Love my job, love my job, love my job..
  • 1
    @mk3d are you saying you don’t like MVC?
  • 0
    ¯\_(ツ)_/¯
  • 0
    @AlexDeLarge french habits. I made my studies in a french speaking school and they (almost) all do it.

    It's fucking awful.
  • 1
    @ColonelPhantom

    So basically PHP code should be separated from the markup.

    i.e
    <tr>
    <td><?php echo $title; ?><td>
    <td><?php echo $excerpt; ?><td>
    </tr>

    Although I know it looks really tedious, this will make the code more maintainable to future changes (i.e PDO related changes)
  • 0
    @AlexDeLarge I said french speaking school, not "in France".
    There are 4 official languanges in Switzerland: german, italian, romansh and french.
  • 0
    @AlexDeLarge ah, ok, reading the comment a second time i got the meaning of the last sentence. My bad.
    For the spoken languanges, well, I said them because not everybody knows that, sometimes even our neighbours (like Italy, where some people think we speak Swiss..)
  • 0
    @gazza101uk nope mvc is life
Add Comment