![]() |
Whats wrong with my php code?
I get this error" Parse error: parse error, unexpected '=', expecting ')' in /home/content/g/h/o/ghostingadmin/html/arktos/plugins/system/comments.php on line 34
here is the code. anyone know? class ContactController extends JController { /** * Display the view */ function display() { $document =& JFactory::getDocument(); $viewName = JRequest::getVar('view', 'category', 'default', 'cmd'); $viewType = $document->getType(); // in |
this is in joomla btw
|
line 34 is function display()
|
$document =& JFactory::getDocument();
-> $document = JFactory::getDocument(); |
Quote:
So I take something out and put that in? |
that code didnt work. but thanks though ;/
|
Quote:
teh ghey, I won't bore you with the technical details, but you are probably using PHP 4. Time to upgrade. As an aside: when asking for help, give the whole bloody file. Seriously. |
Quote:
thanks |
Quote:
Your problem is this: function onGetComments($mode, &$item, &$params=null) Which is valid in PHP 5 but not in 4, since in 5 default values can be passed by reference, which they can't in 4. |
Quote:
|
All times are GMT -7. The time now is 05:58 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123