HospitalId = empty($_SESSION['HospitalID'])?'1':$_SESSION['HospitalID']; } public function IndexAction(){ $this->assign('HospitalId',$this->HospitalId); } }