Search the blog

Bootstrapping ProcessWire allows you to use its great many functions in third-party scripts (E.g. wire('input')->get('var')).

Doing so is incredibly easy. All you need to do is include the index.php file in the root of your ProcessWire install.

include 'index.php';

echo wire('pages')->get('/')->id; // Outputs 1
Tim Bennett is a freelance web designer from Leeds. He has a First Class Honours degree in Computing from Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.