Jump to content

Recommended Posts

Posted

having errors using wireSendFile() method, was it taken out of PW and if so was it replaced by anything in v3?

Posted

thats the strange thing, found it in there but obviously not getting called from templates for some reason.

Posted

This function is no longer global but in the ProcessWire namespace in PW 3.x
Maybe it's a namespace issue?

  • Like 2
Posted
6 hours ago, benbyf said:

working now including the <?php namespace ProcessWire;

https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#compiled-template-files

"It can be disabled globally by setting $config->templateCompile = false; in your /site/config.php file. If you do disable it, you'll likely want to add a namespace ProcessWire; to the top of your PHP template files where necessary."

In practice, the simplest solution is to always add <?php namespace ProcessWire; if none other is required.

  • Like 7

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
  • Recently Browsing   0 members

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