Welcome Guest, Not a member yet? Register   Sign In
How do I make a database row be a global?
#4

PHP Code:
<?php
class MY_Admin extends CI_Controller {

public 
$me;

public function 
__construct()
    {
            
parent::__construct();
            
$this ->load->database();  
            
$this->me "testing 123";

    }



Then in your controller:

PHP Code:
public function somefunc() {

   echo 
$this->me;


Reply


Messages In This Thread
RE: How do I make a database row be a global? - by Kaosweaver - 06-26-2017, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB