[eluser]happs74[/eluser]
Hi,
I'm a noob in both PHP/CI, so I'm going to play my ask-one-stupid-question-free card now.
I have a view with a form with all the validation stuff in it, in one particular case I'd like to add an additional message to it.
So I have 5 calls that do
$this->load->view('bigform');
and I want to do one that does
$data['error'] = 'Its all gone a bit Pete Tong';
$this->load->view('bigform',$data);
I reckon in my view I'd need something like
<?php
if(is_set('error')
{
echo 'Error:'.$error;
}
?>
but I guess it's not going to work like that.
Anyone point me in the right direction, I guess there must be some sort of ability to do this as I'd imagine there are a lot of cases where you'd want a view that you can send different blobs of data to and for it to be able to pick'n'choose what to display depending on what is available.
or maybe not.
Muchos gracias in advance.