Welcome Guest, Not a member yet? Register   Sign In
send data + load->view();
#1

[eluser]WebbHelp[/eluser]
Hi!

I am a CodeIgniter beginner and got some question about send data to the page I load.
1. I think when I write:

$this->general['title'] = 'Welcome to my Blog';
$this->load->view('blog_view',$this->general);

The view funktion "convert" my array that I send with the function and create variables of it so I can get the variables by:
echo $title;

Is that right?

2. And, if I use $this-> is that; make variable public in the whole class?

3. You know when I write base_url(); I get the "base url".
Where do I get that class from?
I mean, I don't need to write for example: $this->helper->url('base_url'); to get it //If I have loaded my url helper class before.

Where do I get that class from?

Thanks //WebbHelp


Messages In This Thread
send data + load->view(); - by El Forum - 09-18-2009, 08:31 AM
send data + load->view(); - by El Forum - 09-18-2009, 08:42 AM
send data + load->view(); - by El Forum - 09-18-2009, 09:02 AM
send data + load->view(); - by El Forum - 09-23-2009, 11:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB