LoginSignup
1
0

More than 5 years have passed since last update.

404ページの分岐方法

Posted at

404ページだけheaderを変えたい時などにつける分岐方法です。
「CakeError」で判別できるので

<?php if($this->name == 'CakeError'): ?> 
<h1>Not Found</h1> 
<?php else: ?> 
<h1><?php echo str_replace("|" . $siteConfig['name'], '', $this->BcBaser->getTitle()) ?></h1> 
<?php endif; ?>

これで分岐することが出来ます。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0