Jump to content

_main.php AdminThemeUikit - using multi instance


fredbob
 Share

Recommended Posts

Hi!

So I am trying to pull some information from another ProcessWire installation within the admin area (_main.php / page tree from the AdminThemeUikit module).

$pwpath = "/path/";
$pwurl = "https://url.example";
$pw = new ProcessWire($pwpath , $pwurl);

which then gives me this error

  Quote

Error: Uncaught Error: Class 'ProcessWire' not found

Expand  

 

I then read that if it is not already in a ProcessWire environment that I would have to include the core, 

require('/path/to/wire/core/ProcessWire.php'); 

Which I tried, and makes sense that it already says it is included.

 

So what now?

 

Here is my _main.php from the AdminThemeUikit module (work in progress), just for reference

  Reveal hidden contents

 

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

×
×
  • Create New...