Try this mate:
<?php
if (strpos($_SERVER['REQUEST_URI'], "client") || strpos($_SERVER['REQUEST_URI'], "order") !== false){
$today_date = date('Y-m-d H:i:s');
if($client->date_added == $today_date){
echo "Welcome ";
echo $client->first_name;
echo "...";
}else{
echo "Welcome back ";
echo $client->first_name;
echo "!";
}
}else{
echo ($this->Html->ifSet($title) ? $this->Html->_($title, true) : $this->_("AppController.client_structure.default_title", true));
}
?>
remember you are replacing:
<?php echo ($this->Html->ifSet($title) ? $this->Html->_($title, true) : $this->_("AppController.client_structure.default_title", true));?>