I am having an odd problem in one of my Controllers, i have a function that returns a $this->renderWith(...); yet this function is never called even when accessing the URL directly. I have this same technique on various other Controllers where they all work without a problem.
The Controller:
class Club_Controller extends Controller
{
private static $allowed_actions = array (
'Form_data',
'Form_data_submit'
);
public function Form_data()
{
return $this->renderWith('Settings-Form');
}
}
The settings in routes.yml:
---
Name: clubobject_route
After: framework/routes#coreroutes
---
Director:
rules:
'data/clubobject/': 'Club_Controller'
The weirdest part is when i place the $this->renderWith(..); in:
function index(){
..
}
It does work so its not that it cannot find the template. But for some reason when accessing the URL /data/clubobject/form_data it does not execute the function. Maybe if somebody can tell me what would cause this strange / odd behaviour on this one particular controller since it works fine on all the others.