We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE2 HTML Tabe Helper - Array

Development and Programming

Nige_EE's avatar
Nige_EE
17 posts
14 years ago
Nige_EE's avatar Nige_EE

I am trying to make use of

$this->EE->load->library('table')

The $data I have is a multidimensional array as follows and I would like to use the $data[‘filed_list’][0][array 0 to 3]=>[name] - as the first table row headings

<pre><code>

Array ( [field_list] => Array
(

        [0] => Array
                (
                    [0] => Array
                        (
                            [name] => PTS number
                            [type] => header
                            [label] => PTS number /* table heading */
                            [required] => 0
                            [options] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [name] => Job Status
                            [type] => header
                            [label] => Job Status
                            [required] => 0
                            [options] => Array
                                (
                                )

                        )

                    [2] => Array
                        (
                            [name] => Job name
                            [type] => header
                            [label] => Job name
                            [required] => 0
                            [options] => Array
                                (
                                )

                        )

                    [3] => Array
                        (
                            [name] => Contact
                            [type] => header
                            [label] => Contact
                            [required] => 0
                            [options] => Array
                                (
                         )

           )


            )


    )[/code]

Not quite sure of the best way. I have tried several and am having difficulty. Arrays are definitely not my strength. Any help would be great.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.