Module with own route site

Hello,

i want to create a module, to present data on a special site.
For Example, for a rest service or a simple landingpage.

For this, I have to register a new controller for index.php.
I tried it, but I can’t register the controller with the module.

My GitRepository: https://github.com/SpeedRunner/oxidtest
Objective: http://myshop.com/index.php?cl=oxidtest

It work’s, when I copy the oxidtest.php in the application/controllers-Folder.

Can somebody help me?

Thanks
Peter

Sent you a pull request:

  • filenames should equal class name
  • register own classes with files array, not extend. Extend array is for overloading existing classes transparently with “myclass extends myclass_parent”

Thanks.
I changed it. (also the repository)
But I can’t activate the module :frowning:

If you had just merged my pull request, it would work ;). You need an empty extends array.

Sorry. :slight_smile:
It work with your corrections.
Thanks for your help.