Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3678686
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:22:16+00:00 2026-05-19T03:22:16+00:00

I am using CakePHP 1.3 I have a static page called temp.ctp located at

  • 0

I am using CakePHP 1.3

I have a static page called temp.ctp located at app/views/pages/temp.ctp.

It is accessible from my site like: localhost/pages/temp

I am trying to set the page title from the view.

I have tried putting each of the following inside the temp.ctp file:

<?php $this->set("title_for_layout","Temp Temp Temp"); ?>

and

<? $this->pageTitle = 'Temp Temp Temp'; ?>

The entire file looks like this:

<?php $this->set("title_for_layout","Temp Temp Temp"); ?>


Hello World temp

And is using the default layout (for header and footer) that ships with cakephp 1.3.

Neither of which have worked. What is the correct way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:22:17+00:00Added an answer on May 19, 2026 at 3:22 am

    According to a thread on the CakePHP Google Group, it should be possible to use $this->set("title_for_layout","Temp"); directly in your view – in CakePHP 1.3 that is, 1.2 uses this->pageTitle = "Temp";

    According to a ticket, the pages controller still uses the $title instead of $title_for_layout though, so try that:

    $this->set("title","Temp");

    http://cakephp.lighthouseapp.com/projects/42648/tickets/511-pages-controller-needs-updating-for-title_for_layout

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using CakePHP 1.3, I have the following layout: /srv/www/_cakephp13/ /app/ /cake/ /plugins/ /vendors/ etc...
This site is built using CakePHP 1.2* I have an element that needs to
I have a site set up using CakePHP and MySQL and I want to
As part of a larger web-app (using CakePHP), I'm putting together a simple blog
In a CakePHP 1.2 app, I'm using <?php $session->flash();?> to output messages like Record
I am developing a travels related website using cakephp. I have to put some
Using CakePHP: I have a many-to-one relationship, let's pretend it's many Leafs to Trees.
I have used cakePHP 1.2 and know how to use behaviors in it. using
Using cakephp, I have a generic address table, which I want to link to
I have a PHP application using CakePHP. I need to present a table showing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.