I made a custom module using a plain code and my problem is this “There is no action by that name.”. So I’m asking how does “&action=index” work.
I already tried adding “view.list.php” but it still gave me that error.
Thank you
I made a custom module using a plain code and my problem is this “There is no action by that name.”. So I’m asking how does “&action=index” work.
I already tried adding “view.list.php” but it still gave me that error.
Thank you
Hi,
Why you added the module via code???
The best option is to use the Module Builder utility.
You should delete your plain code module and add the same one from module builder.
Thanks
Thank you for your input but I would like to write my own code.
A quick trick.
you can create a sample module on your local PC from Studio and can check how its code looks. Then you can compare your code with the code of that new module.
For code comparison you can use any online tool or Netbeans.
Thanks
You can also create “controller.php” file in your module folder
<?php class YourModule extends SugarController { function YourModule (){ parent::SugarController(); } public function action_index() { $this->view = 'index'; } } and write the following code there and then try.