Revolution 2.7.x core/component/

I want to create custom template variable

My controller file is here

The MODx seems not load the controller
I even try put event handle on
,but nothing work.

MODx Revo 2.7.x

There are two reasons for MODX telling you the controller can’t be found. One is a bad path. The other is a problem with the format of the controller class name in the controller file.

MODX is very picky about the class name of a controller. If you change it, be sure to change the return value at the end to match the new name.

See this article for more information.

1 Like