Advertisement
pandamonium_arwen

Untitled

Apr 27th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class ProfilPeribadi extends CI_Controller {
  5.  
  6. function __construct()
  7.  
  8. {
  9.  
  10. parent :: __construct();
  11.  
  12.  
  13.  
  14.  
  15.  
  16. }
  17.  
  18.  
  19. function index()
  20. {
  21. /*capai maklumat profile*/
  22.  
  23. $data = $this->info_profile($_SESSION['info']['id']);
  24.  
  25.  
  26. //$this->info_profile('KQ00770');
  27.  
  28. $data["content"] = $this->load->view("ProfilePeribadi/profilutama",$data,TRUE);
  29.  
  30. /*$this->load->vars($data);
  31.  
  32. $this->load->view("profilutama");
  33. $this->load->model('ProfilPeribadi_m'); */
  34.  
  35. }
  36.  
  37. /*$data["content"] = $this->load->view("ProfilePeribadi/profilutama",$data,TRUE);
  38.  
  39. $this->load->vars($data);
  40.  
  41. $this->load->view("layout");
  42. /*$this->load->view('profilutama', $data);*/
  43.  
  44. //}
  45.  
  46. function info_profile($ukmper)
  47.  
  48. {
  49.  
  50. $bil = 0;
  51.  
  52. foreach ($this->ProfilPeribadi_m->ProfilPeribadi_smk($ukmper) as $ProfilPeribadi) {
  53.  
  54. $bil++;
  55.  
  56. $data["u20ngelaran"] = $ProfilPeribadi->$u20ngelaran;
  57.  
  58. $data["kk01nama"] = $ProfilPeribadi->$kk01nama;
  59. /*$data = ["$kk01nama"];*/
  60.  
  61. $data["ku13jwtn"] = $ProfilPeribadi->ku13jwtn;
  62.  
  63. $data["ku13jwtnbi"] = $ProfilPeribadi->ku13jwtnbi;
  64.  
  65. $data["notel"] = $ProfilPeribadi->notel;
  66.  
  67. $data["nohp"] = $ProfilPeribadi->nohp;
  68.  
  69. $data["nofax"] = $ProfilPeribadi->nofax;
  70.  
  71. $data["email"] = $ProfilPeribadi->kk56email;
  72.  
  73. $data["alt_email"] = $ProfilPeribadi->emel;
  74.  
  75. $data["website"] = $ProfilPeribadi->website;
  76.  
  77. $data["expertbrief"] = $ProfilPeribadi->expertbrief;
  78.  
  79. }
  80.  
  81. echo json_encode($data); exit;
  82. /*return $data;
  83. */
  84.  
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement