-
-
Save erkurn/cd2f2a151c29f5305659 to your computer and use it in GitHub Desktop.
Revisions
-
erkurn revised this gist
Dec 25, 2015 . 3 changed files with 5 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public function __construct(){ public function daftar(){ $isi['semuadata'] = $this->m_daftar->ambildata(); $this->load->view('template', $isi); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,10 @@ <?php class m_daftar extends CI_model{ public function __construct(){ parent::__construct(); } public function ambildata(){ $isi = array( 'norek'=>'1994', This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,6 @@ <link rel="styilesheet" href=""> </head> <body> <?php print_r($semuadata); ?> </body> </html> -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <?php class data extends CI_controller{ public function __construct(){ parent::__construct(); $this->load->model('m_daftar'); } public function daftar(){ $isi['semuadata'] = $this->m_daftar->_ambildata(); $this->load->view('template', $isi); } } ?> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ <?php class m_daftar extends ci_model{ public function __construct(){ } public function index(){ } public function ambildata(){ $isi = array( 'norek'=>'1994', 'nama'=>'rere', 'alamat'=>'jatira', 'saldo'=>'10000', ); return $isi; } } ?> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Judul</title> <link rel="styilesheet" href=""> </head> <body> <?php print_r(semuadata); ?> </body> </html>