我在的Joomla 2.5 viewform.php
鑑於組件如何檢查是否設置了JFactory :: getSession()中的會話?
$session = & JFactory::getSession();
if(empty($session->get('MasterIndex'))) $session->set('MasterIndex',0);
,我得到
Fatal error: Can't use method return value in write context in /var/www/ ..
我也試過
if(empty($session->get('MasterIndex'))) $session->set('MasterIndex',0);
以下行我怎麼能檢查會議值是否設置?
啊哈! thanx它的工作 – themis