Hi there,

I would like to be able, in the controller, to use $this->set to set an
array within an array.
I'm not going to post any code cos it's probably all completely wrong,
but basically I want to pull the 'date' field out of a table, then use
that date to create an array for that date, so it would look something
like this:

Array
(
 [0] => Array
  (
   [assets] => Array
    (
     [DateAcquired] => 2006-02-07 00:00:00
   (
 [asset] =>
  (
   [Name] => Magazine
   [Type] => Softback
  )
   )
    )
  )

 [1] => Array
  (
   [assets] => Array
    (
     [DateAcquired] => 2005-11-29 00:00:00
   (
 [asset] =>
  (
   [Name] => Book
   [Type] => Paperback
  )
   )
    )
  )
) etc..,

Thanks.
 Shaf.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to