[eluser]123wesweat[/eluser]
hi,
ok i am a bit confused as i am trying to make things as simple as possible and prevent an array ($this->data), like
Code:
if ($this->form_validation->run() == FALSE) {
$this->data = array(
//should come from the db
'metadescription' => "Your page's description here",
'metakeywords' => "keywords, keywords, keywords",
'page' => "register_form"
);
$this->load->view('template',$this->data);
also
function registerTest() {
$this->load->helper('url');
$this->load->helper('form');
$this->data = array(
//comes from the db
'metadescription' => "Your page's description here",
'metakeywords' => "keywords, keywords, keywords",
'pagetitle' => "Nice title",
'page' => "form-test"
);
$this->load->view('template',$this->data);
}
or is there another nice way to have more than one variable replaced?