How to get data from a model using $ useTable = false
I tried, in fact, it does not work.
class Blablah extends AppModel { public $useTable = false; public $data = array( array( "id"=>0, "fied1" => "bla", "field2" =>"blah"), ... ); }
There is already a pretty good answer in this section here in StackOverflow.
You should also check out various data sources - this may be exactly what you are looking for. I would use array_source for what you need.
array_source
In the controller action, you can load the required model and access its data as:
$this->loadModel('Blablah'); debug($this->Blablah->data);
Source: https://habr.com/ru/post/1437261/More articles:Change your mouse cursor to hover over node in JTree - javaIs the vector a violation of the requirements of the container? - c ++AWK - How to do selective sorting of multiple columns? - sortingHow can my program determine if it was launched via mpirun - mpi32-bit Powershell: use the ServerManager module? - scriptingboost :: asio acceptor avoid memory leak - c ++What can be placed in the _schema Model field to create a custom model without tables? - cakephpUsing memoization, but still the code works forever - cInstalling Python Tools for Visual Studio 2012 (PTVS) - pythonscanf not waiting for input in my loop? - cAll Articles