Jump to content

Using $page->render to render a specific template


neonwired
 Share

Recommended Posts

I read somewhere that you could use $page->render('emails/base.php') to render a page using a specific template. However it doesn't seem to be working, it's still trying to use _main.php. Not sure what the expected behavior of this is or if i'm doing it wrong,

Link to comment
Share on other sites

It should. My example above will therefore look in /site/templates/_view/FILE.php - this works in about 99% of all cases. Sometimes... I don't know why it doesn't. In those rare cases I have to write render("./_view/..."). and need to add this ./ before the path.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...