1

That is my controller: (file name: AboutController.php)

class AboutController extends Zend_Controller_Action
{

public function init()
{
    /* Initialize action controller here */
}

public function indexAction()
{
    $this->view->pageTitle="GameNomadTitle";
}

public function contactAction()
{

}


}

And that is my view that is Associated with it. (file name: index.phtml)

    enter code here<br /><br />
<div id="view-content">


<title><?= $this->pageTitle; ?></title>


Links: Homepage – NFO


</div>

The title doesnt seem to be appear..why is that?!?

0

1 Answer 1

2

Try removing the space between the = and the variable you are trying to output:

<?=$this->pageTitle; ?>

better still, don't use short tags:

<?php echo $this->pageTitle; ?>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.