The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Set template directory using Slim Framework 3

Viktor's Avatar

Viktor

25 Dec, 2015 09:46 AM

Using Slim Framework 2 you could set the template directory using this code:

// Views
$view = $app->view();
$view->setTemplateDirectory('../app/views');
How can I do this using Slim Framework 3?

Currently I'm getting this error:
Fatal error: Call to a member function setTemplateDirectory() on null

Does anybody know how to do this in Slim Framework 3?

  1. 1 Posted by Jimmy on 18 Feb, 2017 04:49 AM

    Jimmy's Avatar

    Great with the several steps on how you can get the https://snapchatonlineloginn.com/ Now, allow's get started from the basics for Login to Snapchat Fine.

  2. 2 Posted by dipika on 04 Apr, 2017 07:36 AM

    dipika's Avatar

    Open the web browser on your phone. https://setbeat.org/ It is typically in the Downloads folder as it has actually.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac