Fix problem can't render view if no constructor method declared in controller