• 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
retrieving and showing data

#5
Your controller defines $data['ctgparent_name'] and $data['ctgparent_description'], then passes $data to the view. So, in the view, you would access this data as $ctgparent_name and $ctgparent_description.

As arma7x mentioned, you didn't show any code which defines $posts in the view or $data['posts'] in the controller, though I'd have to assume that it's defined somewhere, since you're not getting an error on the foreach() loop (unless you're calling $data somewhere before the view code you've included here).
Reply


Messages In This Thread
retrieving and showing data - by davy_yg - 07-12-2016, 07:34 AM
RE: retrieving and showing data - by arma7x - 07-12-2016, 07:44 AM
RE: retrieving and showing data - by davy_yg - 07-12-2016, 07:53 AM
RE: retrieving and showing data - by arma7x - 07-12-2016, 08:09 AM
RE: retrieving and showing data - by mwhitney - 07-12-2016, 08:26 AM
RE: retrieving and showing data - by rtenny - 07-12-2016, 09:18 AM
RE: retrieving and showing data - by davy_yg - 07-12-2016, 09:30 PM
RE: retrieving and showing data - by rtenny - 07-13-2016, 09:19 AM
RE: retrieving and showing data - by InsiteFX - 07-12-2016, 07:10 PM
RE: retrieving and showing data - by InsiteFX - 07-13-2016, 07:42 AM
RE: retrieving and showing data - by InsiteFX - 07-13-2016, 10:14 AM
RE: retrieving and showing data - by davy_yg - 07-13-2016, 06:31 PM
RE: retrieving and showing data - by davy_yg - 07-13-2016, 06:36 PM
RE: retrieving and showing data - by InsiteFX - 07-14-2016, 03:08 AM
RE: retrieving and showing data - by arma7x - 07-14-2016, 03:46 AM
RE: retrieving and showing data - by Ivo Miranda - 07-14-2016, 04:13 AM
RE: retrieving and showing data - by davy_yg - 07-16-2016, 07:18 PM
RE: retrieving and showing data - by mwhitney - 07-18-2016, 01:56 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.