V
V
Vechkov Alexander2021-08-05 17:57:55
MODX
Vechkov Alexander, 2021-08-05 17:57:55

How to get the context_key of the current resource in modx revo via PHP?

In the snippet, you need to specify the current context (context_key). How to do it?
Thank you very much in advance)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2021-08-05
@Comrues

$modx->context->key;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question