Setting Page Title - headTitle() - Zend Framework 2 ZF2 -


i in process of building application zf2, going far, having trouble page titles (as in <title> tag in <head>).

in layout.phtml have statically set string using $this->headtitle().

i want include name of module, controller , action default, doc page suggests:
http://framework.zend.com/manual/2.1/en/modules/zend.view.helpers.head-title.html

however when try , implement example code, exception. frankly documentation should @ least show best place put code.

i looking example zf2 noob can follow. want place code somewhere (presumably application\module.php) can set default title "module - controller - action", need example of how override each controller or view (whichever preferred)... please help! :)

as per sams comment... readthedocs has working example: http://zf2.readthedocs.org/en/latest/modules/zend.view.helpers.html#headtitle-helper

thanks sam!


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -