Asp - Php - Cgi - Perl
PHP De Yarim Edebilecek Bir Babayigit??? (Sorunu Bulamiyorum)
PHP De Yarim Edebilecek Bir Babayigit??? (Sorunu Bulamiyorum)
-
Selam arkadaslar,
ozet geceyim, Sistem Bootstrap ve Lavarel kullaniyor, PHP ile yapilmis bir Musteri Iliskileri Yonetimi (CRM) sistemi var.
Sorun:
Kontaklar sayfasinda, secili kontaklari masaustune CSV olarak export etmek ama lanet sey bir hata veriyor ve anlamiyorum :(( Kafayi yememek elde degil, biri yardim etsin su sorunun ustesinden geleyim.
Bir screen shot attim, baska ne lazimsa yazar veririm
Simdiden tesekkurler arkadaslar
-
Buda Error Log:
[11-May-2015 13:08:52 UTC] PHP Fatal error: Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::withCookie() in /home/mirjamro/public_html/mr-admin.com/app/filters.php on line 30
-
-
hocam o sayfayı tüm atar mısın
-
Kizilgun bunu yazdı
hocam o sayfayı tüm atar mısın
hocam burda:
http://emreakkaya.co.uk/wp-content/uploads/2015/05/filters.rar
-
Lavarelden anlayan yok mu?
UP
-
composer ile paketleri update ettikten sonra mı bu hata oluştu ?
-
update falan yapmadm hocam, ama benden onceki eleman yapmis olabilir. nasil anlicaz
-
mesela invoice dosyalari var sitede, pdf uzantili. onlara da download deyince ayni hatayi veriyor. hic birsey download yapamiyorsun
-
hocam bak Symfony\Component\HttpFoundation\BinaryFileResponse::withCookie() bu fonksiyon Symfony\Component\HttpFoundation\Cookie\BinaryFileResponse::withCookie() böyle olması lazım bu fonksiyonun yeri bu.
-
yüklediğin dosyada syntax hatası var ancak resimdeki hata farklı
laravelin kendi kimlik doğrulayıcı sistemini kullanmışlar,ekrana isim basıyo o kadar gibime geldi
if(Auth::check()){
$ckname=Auth::getRecallerName(); //Get the name of the cookie, where remember me expiration time is stored
$ckval=Cookie::get($ckname); //Get the value of the cookie
return $response->withCookie(Cookie::make($ckname,$ckval,1440)); //change the expiration time
}
yüklediğin dosyada syntax hatası var ancak resimdeki hata farklı
laravelin kendi kimlik doğrulayıcı sistemini kullanmışlar,ekrana isim basıyo o kadar gibime geldi
if(Auth::check()){
$ckname=Auth::getRecallerName(); //Get the name of the cookie, where remember me expiration time is stored
$ckval=Cookie::get($ckname); //Get the value of the cookie
return $response->withCookie(Cookie::make($ckname,$ckval,1440)); //change the expiration time
}
edit: yada silme şöyle yap
routes.php içerisinde hangi rotada pdf veya excel olarak indirtiyorsan orada yukarıdaki kontrolü yaptırma
if(Route::currentRouteName()!='excelecevir'):
if(Auth::check()){
$ckname=Auth::getRecallerName(); //Get the name of the cookie, where remember me expiration time is stored
$ckval=Cookie::get($ckname); //Get the value of the cookie
return $response->withCookie(Cookie::make($ckname,$ckval,1440)); //change the expiration time
}
endif;
ama rota tanımlarken pdf veya execele cevirdiğin rotanın ismi exelecevir olmalı
Genki tarafından 12/May/15 16:14 tarihinde düzenlenmiştir