Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. class Mapa extends Admin_Controller {
  2.     protected $record_id = 1;
  3.    
  4.     function  __construct() {
  5.         parent::__construct();
  6.         $this->auth_user();
  7.         $this->initialize();
  8.     }
  9.    
  10.     // ACCESIBLE DATA
  11.     public function index(){
  12.        $this->$record_id = 2;
  13.     }
  14.    
  15.     // SAVING DATA  
  16.     public function save(){
  17.         echo $this->record_id;  // return 1  .... It should return 2 that is thing what i really want ....
  18.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement