Merhaba arkadaşlar, Benim bir sorunum var localhostta sorunsuz çalışan kodum Web ortamında çalışmıyor. Bir arkadaşıma ödevi için yardımcı olmaya çalışıyorum. Ticari vb bir amacım yok.
Kod: <?php
if(!$logged){
if(
$_SERVER['REQUEST_URI'] <> "/"&&
$_SERVER['REQUEST_URI'] <> "/index.php?route=common/home"&&
$_SERVER['REQUEST_URI'] <> "/index.php?route=information/contact"&&
$_SERVER['REQUEST_URI'] <> "/index.php?route=information/information&information_id=10"&&
$_SERVER['REQUEST_URI'] <> "/index.php?route=account/login" &&
$_SERVER['REQUEST_URI'] <> "/index.php?route=account/register"
)
{
header('Location: index.php?route=account/login');
}
}
?>
Aldığım Hata ise :
Warning: Cannot modify header information - headers already sent by (output started at /home/pfnyazilim/public_html/toptanci/catalog/model/custom/general.php:569) in /home/pfnyazilim/public_html/toptanci/catalog/view/theme/yourstore/template/common/header.tpl on line 251
Merhaba,
controller->product->category.php dosyasına $this->customer->isLogged() ile kontrol edip istediğiniz bir sayfaya yönlendirebilirsiniz.
controller->product->category.php dosyasına $this->customer->isLogged() ile kontrol edip istediğiniz bir sayfaya yönlendirebilirsiniz.
Who is online
Users browsing this forum: No registered users and 22 guests