
-----------------------------------
JSBN
Fri Mar 26, 2004 11:35 pm

My little script
-----------------------------------
ok, the first part of my script works well (but that's probly because i stole alot of it out of my resources) but now, i'm making my own script from scratch, w/o the resources i had b4(to explain a bit more, i'm making a script for my site that reads out of a file, which is made in the admin area of my phpbb forum Fatal error: Call to a member function on a non-object in /homepages/43/d87567952/htdocs/Postrec.php on line 4

Here's my code


As i'm sure you will notice, there are many similarities to my code and that of some phpbb scripts, and that could be part of my problem.

-----------------------------------
wtd
Fri Mar 26, 2004 11:55 pm


-----------------------------------
From the rror message, I'd say look at the point in the code where $template is initialazed.  It's not becoming an object.

-----------------------------------
JSBN
Sat Mar 27, 2004 8:44 am


-----------------------------------
yea..... how would i do that? as i am unsure of how i should initalize the $template variable

-----------------------------------
wtd
Sat Mar 27, 2004 10:05 am


-----------------------------------
Well, what class is $template supposed to be an object of?

-----------------------------------
JSBN
Sat Mar 27, 2004 11:28 am


-----------------------------------
ok, because i am an uber newb at PHP, i will put it simply as: i am trying to use $template as it is used throughout phpBB

-----------------------------------
Amailer
Sat Mar 27, 2004 3:16 pm


-----------------------------------
ok, because i am an uber newb at PHP, i will put it simply as: i am trying to use $template as it is used throughout phpBB'
hmm
your missing the important file for your script to work.




-----------------------------------
JSBN
Sat Mar 27, 2004 3:51 pm


-----------------------------------
yea.. i should probly have updated my code for you guys to help me with. what i have now is:
