Skip to content

Instantly share code, notes, and snippets.

@easychen
Created March 11, 2018 05:20
Show Gist options
  • Save easychen/b15a1fc117a5a77da649fee62fdb5753 to your computer and use it in GitHub Desktop.
Save easychen/b15a1fc117a5a77da649fee62fdb5753 to your computer and use it in GitHub Desktop.

Revisions

  1. easychen created this gist Mar 11, 2018.
    11 changes: 11 additions & 0 deletions contrllerDemo.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <?php

    function indexController
    {
    // model
    $data = $db->getUserInfo();

    // view
    $html = $render->toHtml( $data , 'index.tpl.html' );

    }