Not able to access controller data in view
===

 I use the following code in my controller. But the data['msg'] is not being passed to the view file.

Code:
   
    class Operator{


    public function view ($page)
	{
		if ( ! file_exists('application/views/pages/'.$page.'.php'))
		{
			// Whoops, we don't have a page for that!
			show_404();
		}

		$data['title'] = $this->getTitle($page); 
		$this->load->view('templates/header', $data);
		$this->load->view('pages/'.$page, $data);
		$this->load->view('templates/footer', $data);

	}
	public function create_company()
	{
	        // some code
		data['msg1']='my mesg';
		redirect('operator/view/operator_success','refresh');
	}
    };

When operator_success(view page) is loaded it show error message: variable '$msg1' not defined.