Welcome Guest, Not a member yet? Register   Sign In
Passing more than one variable from view page to controller in mvc
#1

[eluser]rash[/eluser]
Hello all

Can anyone solve my problem?
My problem is i am trying send more than one variable from view page to controller with <a href =""> link,, but it didn't show .... the code is

Code:
<a href="&lt;?php echo URL;?&gt;dashboard/edit_sp/&lt;?php echo $value['sample_id'];?&gt;&&lt;?php echo $value['board_type'];?&gt;"> Edit </a>

in controller page when i am trying to retrieve this it didn't work and the code is :

Code:
public function edit_sp($arg, $arg1)
{
  echo $this->view->board_type = $arg1;;
  $this->view->sptlist = $this->model->TitleList();
  $this->view->spdetails = $this->model->SpDetails($arg);
  $this->view->render('dashboard/edit_sp/'.$arg1);
}

can anyne help for this....

Thanks
#2

[eluser]Massaki[/eluser]
Change "&" for "/"




Theme © iAndrew 2016 - Forum software by © MyBB