Post by ekremhuseyinhancer » Thu Jun 07, 2018 11:54 pm

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


Posts

Joined
Thu Sep 07, 2017 4:10 pm

Post by eka7a » Fri Jun 08, 2018 4:48 am

Merhaba,
controller->product->category.php dosyasına $this->customer->isLogged() ile kontrol edip istediğiniz bir sayfaya yönlendirebilirsiniz.

Windows 11 Pro Digital License Key


User avatar
Active Member

Posts

Joined
Sun Apr 12, 2009 12:59 am
Location - Türkiye

Post by ekremhuseyinhancer » Fri Jun 08, 2018 2:45 pm

Onu denediğimde hep Hesabım sayfasına atıyordu, nasıl bir kod yazacapım pek PHP bilgim yok,


Posts

Joined
Thu Sep 07, 2017 4:10 pm
Who is online

Users browsing this forum: No registered users and 148 guests