Thank Jim, but this solution I know but it’s not function. The new module was created by the studio.
I create the controller.php with function action_convert and if i call a /index.php?module=hhp_physio&action=convert&record=… (i try &action=Convert too) and system stil write There is no action by that name.
Do you have any idea why the controller.php not function?
Notice: Undefined variable: controller in /var/www/html/crm.dev.hhp.de/include/MVC/Controller/ControllerFactory.php on line 81 Fatal error: Call to a member function setup() on a non-object in /var/www/html/crm.dev.hhp.de/include/MVC/Controller/ControllerFactory.php on line 81
and this is a code of my controller.php
class hhp_physioController extends SugarController {
//Can now put actions here
public function action_convert(){
echo “Hello world!”;
}
}
Just to confirm. You have a modules/hhp_physio/controller.php file with the contents in your last post?
Please bear in mind PHP files should have <?php before class declarations. I.e:
<?php
class hhp_physioController extends SugarController {
//Can now put actions here
public function action_convert(){
echo "Hello world!";
}
}
If the above still does not work you will have to add some debug or use a debugger in ControllerFactory to find out why it’s not loading your controller.