Welcome Guest, Not a member yet? Register   Sign In
How to change the text on a button progamatically?
#17

(This post was last modified: 01-13-2018, 01:21 AM by richb201.)

    Well I got a solution! What I did was get rid of the red button and added this line  in my _configure_output()

public function _configure_output($output = null)
  {
      // $GLOBALS['title']="this is my title";
      //  $this->load->vars( array( 'html_title' => $this->session->userdata('campaign')) );     // <- This puts $html_title into the context for the view() below
      //set default campaign
       if ($output<>null) {
              echo "<br><br><h1>ACTIVE CAMPAIGN: " . $this->session->userdata('campaign') . "</h1>";
      }
     $this->load->view('configure.php',(array)$output);
}


I trial and error'd it into the right spot. Thank you so much for your help! 

The ONLY problem now is that when I first start up, I get two of these headers! See image. I guess this is because _configure_ouput gets called once (from somewhere) where $output: {output=> "", js_files=>[0], css_files=>[0]} [3]. For some reason i can't seem to catch ($output<>null). 
 

You have been fantastic, btw.
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: How to change the text on a button progamatically? - by richb201 - 01-13-2018, 12:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB