Wednesday, February 22, 2012

Return Home
Contact Me

Soholaunch getThisPage() / showThisPage()

Description

The current page the user is on, either echoed or returned.

Usage


<?php $thisPage = $mytemplate->getThisPage(); ?>

or


<?php $mytemplate->showThisPage(); ?>

Return Value

If using getThisPage(), a string is returned with the page name.

Example

If a user is at http://yourdomain.com/About_Us.php,


<?php $thisPage = $mytemplate->getThisPage(); ?>

Would give $thisPage a value of ‘About Us’


<?php $mytemplate->showThisPage(); ?>

Would echo the string ‘About Us’

Comments

Please post your comments, questions, or suggestions here.

* Denotes a required field.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent Posts: