Implementing a Cakephp Model using an Array
Posted
by Zubin
on Stack Overflow
See other posts from Stack Overflow
or by Zubin
Published on 2010-06-15T21:30:14Z
Indexed on
2010/06/15
21:32 UTC
Read the original article
Hit count: 196
The CakePHP Cookbook states that a Model can use a file (csv for example) instead of an actual database table but I couldn't find any implementation for it.
I was wondering if it is possible to use an Array of data as a model in CakePHP since I have a fairly static set of data which is important to me in a relationship with another table but it doesn't make a whole lot of sense to create a complete table for it.
Is it possible to implement a CakePHP Model using an Array?
© Stack Overflow or respective owner