Welcome Guest, Not a member yet? Register   Sign In
Anyone know what this data string is?
#1

[eluser]TechCadre[/eluser]
I'm looking to find out what this string of code means. It was found in a .php page in the controllers.

Code:
$data['section'] = "AboutUs";
#2

[eluser]theprodigy[/eluser]
We need a little more info. Can you show the view code that is being called?

It's possible that variable is being used to tell the template view what content view to show for that page, but I really couldn't tell you without seeing what the view code is.
#3

[eluser]Thorpe Obazee[/eluser]
[quote author="TechCadre" date="1273024886"]I'm looking to find out what this string of code means. It was found in a .php page in the controllers.

Code:
$data['section'] = "AboutUs";
[/quote]

In tutorials, the $data variable is mostly used when passing information in the view file. A little bit more code could reveal what's really happening.




Theme © iAndrew 2016 - Forum software by © MyBB