hamza Posted November 4, 2010 Share Posted November 4, 2010 $s = JRequest::getCMD('option'); // $s = JRequest::getVar('option'); if ( $s=="com_djcatalog2" ) { some code } else { some code } every time i run this code condition is true no matter option varible is present in url or not option value is always true. i am not understanding where is the problem with this code please help me,. Link to comment https://forums.phpfreaks.com/topic/217730-joomla-help/ Share on other sites More sharing options...
lukejd83 Posted November 18, 2010 Share Posted November 18, 2010 I would just do this <?php if($option=="com_djcatalog2") { ?> some code <?php } else { ?> some code <?php } ?> Link to comment https://forums.phpfreaks.com/topic/217730-joomla-help/#findComment-1136201 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.