• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View files with common data

#13
[eluser]Body[/eluser]
[quote author="Bramme" date="1220638731"]You're passing the $blogEntry['User'] array to your userinfo view file. The same happens when you pass $content['blogEntry'] to your blog_view. You don't access $content['blogEntry'] in your blog_view, you access $blogEntry.

So you should use $nickname and $rating in your userinfo view file.
[/quote]

I think you're not right.
Yes, when I'm passing $content['blogEntries'] to a view file, I access $blogEntries. So, when I'm passing $blogEntry['User'], i should access $User.

[quote author="Bramme" date="1220638731"]
If you want to keep using $blogEntry['nickname'] in your userinfo view file, don't pass an array in the second argument when loading the view file from your blog_entry view. Just do $this->load->view('userinfo'), the variables get passed along automatically.
[/quote]

Automatically passing is not working - error "Undefined variable: blogEntry ". :/


Messages In This Thread
View files with common data - by El Forum - 09-05-2008, 12:06 AM
View files with common data - by El Forum - 09-05-2008, 01:00 AM
View files with common data - by El Forum - 09-05-2008, 01:10 AM
View files with common data - by El Forum - 09-05-2008, 01:40 AM
View files with common data - by El Forum - 09-05-2008, 01:42 AM
View files with common data - by El Forum - 09-05-2008, 01:47 AM
View files with common data - by El Forum - 09-05-2008, 02:53 AM
View files with common data - by El Forum - 09-05-2008, 02:57 AM
View files with common data - by El Forum - 09-05-2008, 03:11 AM
View files with common data - by El Forum - 09-05-2008, 03:14 AM
View files with common data - by El Forum - 09-05-2008, 06:35 AM
View files with common data - by El Forum - 09-05-2008, 07:18 AM
View files with common data - by El Forum - 09-05-2008, 07:40 AM
View files with common data - by El Forum - 09-05-2008, 08:41 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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