Welcome Guest, Not a member yet? Register   Sign In
about $view->setData($data);

i have an very strange problem.

$view->setData($data) and $pager->makelinks() could not be exist in same controller. I don't know why.
once put them into same controller, the variable of setData will become "Undefined variable: $XXXXX".
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean

If you are trying to access data that you didn't explicitly make available to a view, then it won't be there. By default, it will not save data used in one view to use in another view, even if that view is called from within it. You can always use the save_data option to change that.

Is that what you're seeing? Or are you trying to access setData variables within the pagination templates? Or is it something else?

Theme © iAndrew 2016 - Forum software by © MyBB