Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJobin Mathew
112 Pointsin Layout with Twigs getting an error Missing argument 1 for Slim\Views\Twig::__construct(),
i 'm getting an error while executing the index file
Warning: Missing argument 1 for Slim\Views\Twig::__construct(), called in C:\xampp\htdocs\musicinchrist\index.php on line 13 and defined in C:\xampp\htdocs\musicinchrist\vendor\slim\twig-view\src\Twig.php on line 56
Notice: Undefined variable: path in C:\xampp\htdocs\musicinchrist\vendor\slim\twig-view\src\Twig.php on line 58
Notice: Undefined variable: path in C:\xampp\htdocs\musicinchrist\vendor\slim\twig-view\src\Twig.php on line 60
Catchable fatal error: Argument 1 passed to Slim\Views\Twig::addPaths() must be of the type array, null given, called in C:\xampp\htdocs\musicinchrist\vendor\slim\twig-view\src\Twig.php on line 60 and defined in C:\xampp\htdocs\musicinchrist\vendor\slim\twig-view\src\Twig.php on line 116