Separating Logic/Style in PHP properly

前端 未结 3 568
星月不相逢
星月不相逢 2020-12-11 12:18

I\'m just wondering what is the best way to separate logic components from the layout in a PHP web project?

The content is stored in MySQL, the logic is PHP and the

3条回答
  •  半阙折子戏
    2020-12-11 12:48

    Try an MVC framework like

    CodeIgniter: http://codeigniter.com/

    or CakePHP: http://cakephp.org/

    (Cake has got a steeper learning curve, but does a lot more stuff automagically)

    Here's what MVC is about: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

提交回复
热议问题