}else {
$dil = $this->get('session')->get('dil');
$gelenSayfa = $em->createQuery("SELECT st.id as stid,s.dilgrup,s.id,s.dilgrup,s.title,s.keywords,s.description,s.adi,s.bannerUrl,s.kategoriDurum,s.paylasim FROM AdminBundle:Sayfa s JOIN s.tip st WHERE s.seo='$sayfa_seo'")->getResult();
$gelenSayfaTrId = $this->TrBul($gelenSayfa[0]['dilgrup'], 'Sayfa', 'id');
if ($gelenSayfa[0]['kategoriDurum'] == 1) {
$kategoriDurum = 'JOIN u.kategori k';
$kategoriAlan = 'k.baslik as kadi,k.ustid as kustid,k.id as kid,';
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
//$kernel = new AppCache($kernel);
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
ContextErrorException |
---|
Symfony\Component\Debug\Exception\ContextErrorException: Notice: Undefined offset: 0 at src/SiteBundle/Controller/DefaultController.php:101 at SiteBundle\Controller\DefaultController->sayfaAction('akgun-otomotiv-tabela') (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (web/app.php:16) |