Light-weight, fast, simple and powerful!
Translations of this page?:


The title() function returns the title of the current page. This code:

<?php echo $this->title(); ?>

will return the text found in the “Page Title” field, prominently displayed when editing a page.


This function does not take any parameters, but it can be used in conjunction with the find() function to display the title of a page that is not current.

Another example of its use can be found in “header” snippet for the Simple layout to generate Wolf's main navigation:

<li><?php echo $menu->link($menu->title, (in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null)); ?></li>
functions/title.txt · Last modified: 2011-09-12 00:46 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 / design by yello studio / Wolf CMS Inside