Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
OOP
I know some php, and instead of installing a vanilla forum on my webspace, i think it would be good exercise to take the script apart and stick it back together on the other end.
However, when anyone even mentions Object Oriented stuff, i just get confused. Are there tutorials out thre that are good enough to explain it to someone who doesn't learn too fast?
0
This discussion has been closed.
Comments
Just search for it on Google.
I recomend also checking out SitePoint.com, they have a few nice tutorials about it and also php.net.
While it might not be the best language for learning OOP in, it at least makes for good practice in grasping how OOP applies to said language. Then stepping up later into something bigger won't seem as challenging as learning it for the first time again.
<li $this->activeType["News"] ><a href="#">News</a></li>
is telling PHP to print '<li ', then the value of $this->activeType (cast to a string, which always produces the string 'Array'), and then '["News"]', resulting in:
<li Array["News"]><a href="#">News</a></li>
Try putting a curly bracket around the variable, like so:
<li {$this->activeType["News"]}><a href="#">News</a></li>
<li ${this->activeType["News"]}><a href="#">News</a></li>
no? okay. i'll get my hat.
(if it works either way in perl too, don't tell me, i'll be crushed)
HOLA!