John Davidson

php - Problems with old system title tag using Kohana

0 comments
Message:


This last week i have been trying to solve some problems in an old website using Kohana.
My problem is: I am trying to make changes in tag, but when i make changes on it, title is appearing different that it should, for example, if i say, title = myNewTitle... Title is appearing MyNewTitleMyOldTitle. So it s not appearing just the new one dynamic title, its appearing the old one, and the new, both together, can someone help me please?


$this->template->meta['title'] = 'Administrativo - Comentários - ' . $this->template->site;

This is the code what define my title.



My Answer:
>template->title = 'MyNewTitle';

This should set the title to just 'MyNewTitle' without appending the old title. Make sure you are setting the title in the correct place in your code and that there are no other places where the title is being set or modified. If you are still having issues, you may need to debug further to see where the old title is being added.

Rate this post

5 of 5 based on 8268 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us