super3boy Posted June 1, 2008 Share Posted June 1, 2008 I am writing a scaffolding script for a website statistics app I am making. Everything works fine, but I when I try to refer to a variable that I declared at the start of the class I don't get anything. What wrong with my santax? Code Pastebin Link: http://pastebin.com/m32f0d558 Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/108268-solved-problem-using-in-class-varibles/ Share on other sites More sharing options...
.josh Posted June 1, 2008 Share Posted June 1, 2008 $this->$page should be $this->page Quote Link to comment https://forums.phpfreaks.com/topic/108268-solved-problem-using-in-class-varibles/#findComment-555036 Share on other sites More sharing options...
super3boy Posted June 1, 2008 Author Share Posted June 1, 2008 $this->$page should be $this->page Thanks. That did it. Quote Link to comment https://forums.phpfreaks.com/topic/108268-solved-problem-using-in-class-varibles/#findComment-555038 Share on other sites More sharing options...
hansford Posted June 1, 2008 Share Posted June 1, 2008 ok - the super moderators answer so fast I didn't even have time to evaluate the code lol Quote Link to comment https://forums.phpfreaks.com/topic/108268-solved-problem-using-in-class-varibles/#findComment-555041 Share on other sites More sharing options...
.josh Posted June 1, 2008 Share Posted June 1, 2008 That's why they call me Super! haha j/k. Quote Link to comment https://forums.phpfreaks.com/topic/108268-solved-problem-using-in-class-varibles/#findComment-555043 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.