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

  • SEARCH
  • Home
  • 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 7748397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:46:30+00:00 2026-06-01T10:46:30+00:00

I was given a project to update a cakePHP website a few days ago

  • 0

I was given a project to update a cakePHP website a few days ago and I’m having some issues. I’ve been reading through the cakePHP cookbook, but I don’t understand why a page that I am creating from scratch does not display in a browser properly.

Here’s what I have:

A default model ‘contact.php’. And A view inside the directory /app/views/pages/ called contact.ctp with the code:

<h1 class="page-title left">Photo Tour</h1>
 <div id='map'>  
<img src="/img/map.png" alt"Map to Our Location"/>  
<p> Hello</p>
 </div> 

 <p>Hello</p>

When I go to the home page and click on the ‘contact us’ page link, the title bar changes to ‘Contact Us’ as it should, but nothing displays on the page itself.

Also, ‘map’ is defined as a div in the master.css file.

Any ideas why this is?

  • 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-06-01T10:46:31+00:00Added an answer on June 1, 2026 at 10:46 am

    If your navbar and logo are displaying, then your layout page is working correctly, but your contact.ctp data may not be. Be sure that your layout.ctp file contains the following:

    <?php echo $content_for_layout; ?>
    

    In your case, it looks like your code should look something like this:

    <html>
      <body>
       <header>
         <a href="http://www.site.com><img src="header_logo.jpg"></a>
        <div id="navbar">
           <ul>
             <li>MenuItem</li>
             <li>MenuItem</li>
             <li>MenuItem</li>
             <li>MenuItem</li>
           </ul>
        </div>
       </header>
       <section>
       <?php echo $content_for_layout; ?>
       </section>
      <footer>Here is the footer information</footer>
      </body>
     </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've worked on many projects where I've been given code by others to update.
Have recently been given a project to complete which uses XML quite extensively.Am looking
I have been given a new project module which involves fuzzy logic. It is
I have inherited an ASP.net 2.0 VB project and have been given a list
I am very new to Spring and I have been given some basic instructions
I want to be able to get a list of issues given a: Project
The project I have been given is to store and retrieve unstructured data from
When writing PHP code for any given project, do you find you can write
I want to measure API evolution for a given Java project, in particular new/renamed
I was given a C++ project that was compiled using MS Visual Studio .net

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.