Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions related to Craft 3 Yii Module Development
4
votes
Accepted
What is the correct way to format a module controller action URL?
If anyone else is using the example project to jumpstart a Craft module, be aware of the following:
In that example, the ExampleController.php controller specifies this namespace...
namespace modules\businesslogic … ()) {
$this->controllerNamespace = 'businesslogic\\console\\controllers';
}
...it worked for me after I changed it to match the ExampleController namespace, (note the addition of modules\ as well …
3
votes
3
answers
1k
views
What is the correct way to format a module controller action URL?
Consider the following Craft 3 example module structure:
modules/
businesslogic/
controllers/ExampleController.php
BusinessLogic.php
...and consider the following action in ExampleController.php …