I have to design an application in slim framework in PHP. Which are the best practises to build a stable app ?
I have to divide the logic from the view and the db layer ? How ?

How would you do it ?