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 6971803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:53:11+00:00 2026-05-27T16:53:11+00:00

I am working on a project in which I define ID inside of a

  • 0

I am working on a project in which I define ID inside of a <body> tag. For different pages I define different IDs, & I always follow this structure for my all projects. But in our new project which is in CakePHP, my developer said to me that I should never use ID inside the body tag for a CakePHP project.

When I asked him why, he said because we can generate ID through CakePHP.

I don’t know so much about CakePHP, but I think we can define ID inside the body tag for CakePHP & other languages also.

Please provide some links or articles & your suggestions about it.

Thanks in advance 🙂

  • 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-27T16:53:12+00:00Added an answer on May 27, 2026 at 4:53 pm

    You can define id’s in your HTML mark-up that’s not a problem. But from your question it looks like you are defining id’s as an attribute to body tag?

    Well you can define id’s in body tag. but the problem is in cakePHP you have layouts which usually contain the wrapping HTML of your views, like header, footer etc. So you can not manually define static id’s inside body tag for different pages, well you can but then you won’t be using layouts.
    What your developer telling you I guess is the use of (uuid) unique id’s a feature provided by cakePHP to generate unique id’s for DOM elements.

    you can generate id’s via uuid(string $object, mixed $url) function in your views.

    To learn more visit : http://book.cakephp.org/view/1091/uuid

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

Sidebar

Related Questions

I'm currently working on a project in which I'd like to define a generic
I'm currently working on a big JavaScript project for which we want to define
For a project I'm working on, I'm implementing a linked-list data-structure, which is based
For a project I'm working on, I'm implementing a linked-list data-structure, which is based
I'm working on a project which allows the advanced user to define their own
Iam working on a project which involves writing a Mork File (Mork is a
I'm working on a project which uses user authentication. I'm facing a issue with
I'm working on a project which will deliver small pieces of text to a
I'm working on a project which includes some slightly more complex dynamic layout of
I am working on a project which involves uploading flash video files to a

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.