Welcome Guest, Not a member yet? Register   Sign In
Passing the variable to view from another view
#8

[eluser]Martin_new[/eluser]
In controller I add:

Code:
$data['todo_list'] = array(validation_errors());
$this->load->view('register/register_open',$data);

in open view:
Code:
<?php
$this->load->view('mains/header');
$this->load->view('login/loggin');
$this->load->view('mains/menu');
$this->load->view('left_column/left_column_before');
$this->load->view('left_column/menu_left');
$this->load->view('left_column/left_column');
$this->load->view('center/center_column_before');
$this->load->view('register/register_view');
$this->load->view('center/center_column');
$this->load->view('right_column/right_column_before');
$this->load->view('right_column/right_column');
$this->load->view('mains/footer');
?>

and in view:

Code:
<?php foreach ($todo_list as $item):?>
     <?php echo $item;?>
<?php endforeach;?>


Messages In This Thread
Passing the variable to view from another view - by El Forum - 10-26-2012, 02:44 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 03:11 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 03:23 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 05:04 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 05:32 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 08:25 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 08:59 AM
Passing the variable to view from another view - by El Forum - 10-26-2012, 11:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB