re: When PHP Framework Sucks Series: Business logic free Controllers VIEW POST

FULL DISCUSSION
 

just stepping in for a little typo in the controller example : you wrote

public fucntion getPostsFromDatabase(): PostsFromDatabase

instead of

public function getPostsFromDatabase(): PostsFromDatabase

(and there is the same mistake for the setPostsFromDatabase line.

Thank you very much for the posts, they are extremely interesting.

 

Hei Jonathan, thank you very much for pointing out this typo :D I replace fucntion with function.
Unfortunately, this is typo happen to me so often :( I have to find a way to stop making it. My IDE (PhpStorm) helps me a lot, but when I type without IDE, it is hard to spot misspelling.

Thank you very much for the positive feedback!

Cheers!

code of conduct - report abuse