Welcome Guest, Not a member yet? Register   Sign In
load view onclick of href

Hey i am new to CI,

can anyone help me in following problem,

i am using href tag in my view
<a href="[removed]void(null)">Home</a>

what i want to do is , when i click above link,
it would load view with data array like

&lt;? $this->load->view('home_view',$data); ?&gt;

try this....
class ctest extends controller{

function __construct() {

function redirect() {
$data['result'] = "Nandish";

} ?&gt;


function redirect() {
[removed] = "/ctest/redirect";
retrun true;

&lt;a href='#' onlcik ='redirect()' &gt; Click here to load view page &lt;/a &gt;

Theme © iAndrew 2016 - Forum software by © MyBB