This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Asinox
Asinox

Hey guys!

I'm adding extras actions to my controller, and i have a question, how i can get the url parameter id inside my new action controller?

When im updating a record, i have a new botton that need the url parameter id, that is what i need.

Thank you~

alxy
alxy

You can pass parameters like this:

public function action($recordId)

where the URL is http://example.com/backend/acme/pluginname/controller/action/123. In this case, 123 is the $recordId.

1-2 of 2

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