Skip to content

Generate a different controller when Twig is not installed #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from

Conversation

javiereguiluz
Copy link
Member

It fixes #6 and replaces #7.

@@ -13,7 +13,6 @@ class {{ controller_class_name }} extends Controller
*/
public function index()
{
// replace this line with your own code!
return $this->render('@Maker/demoPage.html.twig', [ 'path' => str_replace($this->getParameter('kernel.project_dir').'/', '', __FILE__) ]);
return new Response('Hello World');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

// replace this line with your own code!
Welcome to your new controller!

@fabpot
Copy link
Member

fabpot commented Nov 18, 2017

Thank you @javiereguiluz.

@fabpot fabpot closed this in 29e37aa Nov 18, 2017
@xabbuh xabbuh deleted the fix_6 branch November 18, 2017 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return a simple Response from make:controller is twig is not installed
6 participants