TheHacker Posted August 30, 2011 Report Share Posted August 30, 2011 Hello, I've got a question again about the CMS tutorial I always get this error: Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in / var/www/web407/html/tests/cms/models/m_template.php on line 11 And now the code: class template { private $ data; / / Construtor function_construct () {} / / Function function load ($ url) { include ($ url); } / / Get / Set Data function setData ($ name, $ value) { $ this-> date [$ name] = htmlentities ($ value, ENT_QUOTES); } function getData ($ name) { if (1sset ($ this-> date [$ name])) { return $ this-> data [$ name]; } else { return''; } } } Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 30, 2011 Report Share Posted August 30, 2011 I believe adding a space between the function name and the opening and closing parenthesis will cause that. For example, this: function_construct () {} should be function_construct() {} otherwise PHP doesn't realize that it is a function. Why all of the extra spaces in front of variable names too? I don't have the time to double check that at the moment, but I would think that separating the variable name from the "$" will cause issues. My videos definitely don't include those extra spaces. Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 Oh ok thank you and your videos are great (Im frome Germany ) Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 sory its didnt work: http://n.alenan.net/cms/models/m_template.php Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 Oh its works Thanks Quote Link to comment Share on other sites More sharing options...
Andrea Posted August 30, 2011 Report Share Posted August 30, 2011 (Im frome Germany ) Ich auch. Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 Ich auch. Cool Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 30, 2011 Report Share Posted August 30, 2011 Oh ok thank you and your videos are great (Im frome Germany ) Glad you are finding them useful! Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 Glad you are finding them useful! Yes:D hmm.. its didnt get all cms videos on youtube or? Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 Glad you are finding them useful! Yes:D hmm.. its didnt get all cms tutorial videos for free at youtube? Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 30, 2011 Report Share Posted August 30, 2011 Yes:D hmm.. its didnt get all cms tutorial videos for free at youtube? Unfortunately no, they aren't all available on YouTube. A couple of the videos are available as a preview, and you can either purchase the stand-alone course here ($40): http://killervideostore.com/video-courses/build-a-cms.php or it is part of the KillerSites Video Tutorial Library's premium package (subscription based - $100 per year): http://killersites.com/university/ Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 ohhh i didnt have 40 dollar im 14 ;( but ok Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 30, 2011 Report Share Posted August 30, 2011 Sorry about that. There's probably 80+ hours of time that went into that course (there are nearly 50 videos in all) so asking viewers to pay something towards that time seems fair. I hope what you watched was useful, and perhaps you will be able to continue the course at some point in the future. Quote Link to comment Share on other sites More sharing options...
TheHacker Posted August 30, 2011 Author Report Share Posted August 30, 2011 Sorry about that. There's probably 80+ hours of time that went into that course (there are nearly 50 videos in all) so asking viewers to pay something towards that time seems fair. I hope what you watched was useful, and perhaps you will be able to continue the course at some point in the future. No Problem its yourtime an its fair but i dont have it nice day and i buy it realy fast Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.