Another CakePHP wireframe issue ...
How can I get the id of the current record?
Basically, if you are wondering how to get the record identifier after saving, it is very simple.
if($this->MyModel->save($this->data)){ //the id is here echo $this->MyModel->id; }
NTN
OK, I get it!
it
echo $modelName['ModelName']['id'];
tnx anw!
Source: https://habr.com/ru/post/1749619/More articles:Как отображать после 4-х недельных дат? Я хочу передать аргумент - dateIs it possible to read the remote file as istream with libcurl? - c ++Android RadioButton as Behavior - androidDisplay default key bindings in vim - vimWhy compile a + link when building code in C ++ instead of creating an executable file directly - c ++What is <%:%> done in asp.net mvc? - asp.netC # COM Cross Thread - multithreadingExtend your knowledge of database programming - sqlReset multiple files within revision range - perforceКак избавиться от ложных изменений в git? - gitAll Articles