[eluser]Yash[/eluser]
Code:
$data['title'] = $row->title;
set_value('title',$title);
in my case just
Code:
$this->validation->title=value;
and view will take it automatically I mean no need of a variable. You can set value directly to input using validation lib.
There is nothing wrong but my case looks more clean then setting variable.