php - Phalcon Overwriting <head> of View Files -


even have different title in head section, phalcon replaces it, phalcon php framework

my volt file :

<head>    <title>search</title>    <link rel="shortcut icon" href="https://raw.githubusercontent.com/phalcon/invo/master/public/favicon.ico" type="image/x-icon"/> </head> 

while @ browser becomes :

    <head>     <meta charset="utf-8">     <meta http-equiv="x-ua-compatible" content="ie=edge">     <meta name="viewport" content="width=device-width, initial-scale=1">     <!-- above 3 meta tags *must* come first in head; other head content must come *after* these tags -->     <title>phalcon php framework</title>     <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">     </head> 

from title , bootstrap link came? , how remove it.

edit: changed indexcontroller :

<?php  class indexcontroller extends controllerbase {     public function initialize()     {         $this->tag->settitle('welcome');     }      public function indexaction()     {      }  } 

and index.volt :

<head>     {{ get_title() }}     <link rel="shortcut icon" href="https://raw.githubusercontent.com/phalcon/invo/master/public/favicon.ico" type="image/x-icon"/> 

still title remains same. deleted browser cache confirm

thanks.

the problem view/index/index.volt automatically inheriting view/index.volt. removed lines there, solved problem.


Comments