Skip to content

Instantly share code, notes, and snippets.

@ClemensSahs
Created October 19, 2012 15:15
Show Gist options
  • Save ClemensSahs/3918763 to your computer and use it in GitHub Desktop.
Save ClemensSahs/3918763 to your computer and use it in GitHub Desktop.
use headTitle, with append or prepend
<?php
// my view title - my projekt name
$this->headTitle("my projekt name","prepend")
->setSeparator(' - ')->setAutoEscape(false);
?>
<html>
<head>
<?=$this->headTitle();?>
<?php
// my projekt name - my view title
$this->headTitle("my projekt name","prepend")
->setSeparator(' - ')->setAutoEscape(false);
?>
<html>
<head>
<?=$this->headTitle();?>
<?php
// here we only write our view title
$this->headTitle( 'my view title' );
@khanhasib
Copy link

I can not find any difference in layout_with_append.phtml and layout_with_prepend.phtml .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment