This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
leotrooper14689
Hello, I need to access the register id what I am currently editing on the update page. How can I do It?
Thanks
leotrooper14689
http://localhost/ufes/cms/backend/leonardo/crud/obras/update/9788571777972
I need to get the 9788571777972 id
Renatio
If you use FormController behaviour that in update view you can access the model like so:
echo $formModel->id;
You can use request facade to get the segment from uri:
echo Request::segment(8);
You can override controller update action and pass any data to view: http://octobercms.com/docs/backend/forms#overriding-action
1-3 of 3