Ranter
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
Comments
-
neodite6147yController 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. -
mk3d35077yNo 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.. -
taglia5717y@AlexDeLarge french habits. I made my studies in a french speaking school and they (almost) all do it.
It's fucking awful. -
pwd-root767y@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) -
taglia5717y@AlexDeLarge I said french speaking school, not "in France".
There are 4 official languanges in Switzerland: german, italian, romansh and french. -
taglia5717y@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..)
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
CCAtAlvis16Shit happens... but never let your shit go to far... specially while in production or drunk.
Really???
Love work on other guy project...
But, please, not this shit..
rant
otherguywork
shit
wtf