Welcome Guest, Not a member yet? Register   Sign In
Passing variables
#2

[eluser]beeLoop[/eluser]
Lets Debug your problem.
In your controller, First check the value of $data['users'].
If you are getting the correct result, then next step.

In views includes/template, it is assumed that you have included the main_content variable.
As in the controller you are passing the value as $data['main_content'] = 'active_users';, so echo the $main_content variable in includes/template view.

That's it for now.
Let me know what value of $data['users'] you are getting in controller.




Messages In This Thread
Passing variables - by El Forum - 10-12-2012, 04:12 AM
Passing variables - by El Forum - 10-12-2012, 04:54 AM
Passing variables - by El Forum - 10-12-2012, 05:14 AM
Passing variables - by El Forum - 10-12-2012, 05:21 AM
Passing variables - by El Forum - 10-12-2012, 05:25 AM
Passing variables - by El Forum - 10-12-2012, 05:43 AM
Passing variables - by El Forum - 10-12-2012, 05:47 AM
Passing variables - by El Forum - 10-12-2012, 05:49 AM
Passing variables - by El Forum - 10-12-2012, 06:00 AM
Passing variables - by El Forum - 10-12-2012, 09:05 AM
Passing variables - by El Forum - 10-12-2012, 07:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB