Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Can’t get it working

Status Resolved
Add-on / Version
Severity Trivial
EE Version

dgrebb

Sep 12, 2012

I might be the dumbest sack of cheese in the world, or at least feel that way after an hour of trying to get things working.

I have

/* config variable for Snippet Sync addon*/
$config[‘snippet_file_basepath’] =
  “{$_SERVER['DOCUMENT_ROOT']}/../templates/snippets/”;

set in config.php

I also have /templates/snippets set up 777

I’ve tried creating files inside this directory to sync. Nothing.

I’ve tried creating snippets in the CP. Nothing.

What am I doing wrong?

Also, this is a great addon, and I’m an idiot, but your docs could really be expanded 😊

Cheers!

#1

BoldMinded (Brian)

Lets first make sure the path is correct. After you set that config value, add this:

var_dump($config); die;

Make sure the path is correctly pointing to your snippets folder.

#2

dgrebb

I got everything sorted out. Turns out you have curly quotes (as opposed to straight quotes) on the config variable in the docs.

I copied and pasted and didn’t think to look for that 😊

Thanks for helping me get things sorted!

Cheers

Login to reply