Ben sadece Symfony ile çalışmaya başladık. Ben sf_sandbox indirilen ve ben $ sf_params ile sorun yaşıyorum. Ben gibi üzerinde herhangi yöntemleri kullanmaya çalıştığınızda $sf_params->has('status')
Ben hata alıyorum:
Notice: Undefined variable: sf_params in /var/www/sf_sandbox/apps/frontend/modules/login/actions/actions.class.php on line 14 Fatal error: Call to a member function has() on a non-object in /var/www/sf_sandbox/apps/frontend/modules/login/actions/actions.class.php on line 14
İşte blok:
public function executeIndex() {
if ($sf_params->has('status') && $sf_params->has('message')) { // <--line 14
if ($sf_params->get('status') == 'failed') {
$this->message = $sf_params->get('message');
}
}
}