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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:11:56+00:00 2026-06-07T14:11:56+00:00

I have multiple arrays with an unknow amount of items per array. I want

  • 0

I have multiple arrays with an unknow amount of items per array. I want to put the items in a html table with 4 td’s per row. Our work is a bit pedantic and want us to use the cakephp helper and I am a bit unsure how I would go about using modulus with the HTML helper or does cake have a way to ensure I only have 4 td’s per row before going to the next row?

I am sorry, I really have no idea how to go about this, hence no sample code

  • 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-07T14:11:58+00:00Added an answer on June 7, 2026 at 2:11 pm

    If you want to rely on the Helper this won’t work with the CakePHP core helper.

    I’ve written a more powerful helper for tables for CakePHP 2.x.

    Check the test for an example https://github.com/burzum/BzUtils/blob/master/Test/Case/View/Helper/TableHelperTest.php

    You can pass an anonymous function as callback to a row and do your td’s there as you need them. You also can change the code directly and make your helper app and case specific but you should not need to do this using my TableHelper.

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

Sidebar

Related Questions

I have an html document with multiple commented-out PHP arrays, e.g.: <!-- Array (
I have multiple arrays with string values and I want to compare them and
Assume that we have multiple arrays of integers. You can consider each array as
I have a multidimensional array, and I would have multiple arrays within it. Some
I have an Array that contains some elements multiple times. Now I want to
I have an array that I want on multiple pages, so I made it
Basically I have multiple string arrays and I want to combine them. Not just
i have an array of names which have multiple files and folders...now i want
I have multiple arrays shown below. <?php $arrLayout = array( section1 => array( wXBMCLibrary
Foreach don't work properly because in the a array there are multiple arrays and

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.