Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Mapa extends Admin_Controller {
- protected $record_id = 1;
- function __construct() {
- parent::__construct();
- $this->auth_user();
- $this->initialize();
- }
- // ACCESIBLE DATA
- public function index(){
- $this->$record_id = 2;
- }
- // SAVING DATA
- public function save(){
- echo $this->record_id; // return 1 .... It should return 2 that is thing what i really want ....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement