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

g.frenken68086
g.frenken68086

Hey guys,

I was wondering if it is possible to figure out whether a Model Event (eg. afterCreate, beforeValidate) was triggered in the front-end or in the back-end?

Thanks!

daftspunky
daftspunky

Hi g,

Try this helper App::runningInBackend() to determine the execution context.

I hope this helps!

g.frenken68086
g.frenken68086

Thank you, that's exactly what I was looking for!

1-3 of 3

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