Return a value not an array from a controller to view php codeigniter....

Posted by udaya on Stack Overflow See other posts from Stack Overflow or by udaya
Published on 2010-04-19T10:35:41Z Indexed on 2010/04/19 10:43 UTC
Read the original article Hit count: 152

Filed under:
|

I use this in my controller,

function phpcalview()
{
    $year = $this->input->post('yearvv');
    $year1 = $year+1;
    //echo $year1;
    $this->load->view('phpcal',$year1); 
}

How to $year1 value to my view phpcal and get that value in the textbox yearvv

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter