memo

  • Abstract class Controller extends Loader { public $load; function Controller() { $this->load=$this; } abstract function index(); } So, I can call like this class IndexController extends Controller { function IndexController() { parent::Controller(); } function index() { $this->load->model(“simple”); print_r($this->simple); } } This is my first time setting look like this and I never thinking before $this->load=$this…

  • //not use theme define(‘WP_USE_THEMES’, false); //load wordpress core require(‘./wp-blog-header.php’);