console.php to tempalte