Tamás Pap
Tamás Pap

Reputation: 18273

How to use controllers from modules in Kohana 3.2

I readed the userguide also this question, but still have problem with the following in Kohana 3.2.

I have a controller at the location: project-dir > modules > module_name > classes > controllers > test.php.

How to call this controller from url? Need I to set up a route for this? If yes, how? How you resolve this problem?

Upvotes: 0

Views: 431

Answers (1)

Kemo
Kemo

Reputation: 7042

It's a no-problem; if you have the default route, you will access that controller the same way you access application controllers. The problem I see here is in your directory naming, using controller*s* instead of controller (not reflecting the actual class name).

I'd suggest you read more about the Cascading File System

Upvotes: 2

Related Questions