Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once("m_programKerja.php");
- class c_programKerja {
- public $model;
- /* yang salah
- public function __construct($nama){
- $this->model = new m_programKerja();
- }
- */
- // yang benar
- public function __construct(){
- $this->model = new m_programKerja(1, "Say HI!", "Belum Eksekusi");
- }
- public function invoke(){
- $proker = $this->model->getSemuaPogramKerja();
- include 'v_programKerja.php';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement