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
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
Renatio
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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.