-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugins system: firing events #1
Comments
Have you used
I suppose you used the one on my website: the double backlash is there for formatting purpose, since they'd be stripped off by Anchor otherwise. Check you used the correct sintax, that is: with only 1 backlash. Best regards |
Hello Simone, thanks for your help. Now I use and
seems, there must be a subfolder 'plugins'? I've installed all like your Greets Dirk Am 25.10.2014 11:30, schrieb SimoneS93:
Links:[1] |
The guide assume you're quite familiar with PHP, so not every step is listed in depth. You have to first include the plugin file: change
with
You can also paste the theme_include call at the bottom of functions.php in your theme folder (just use in one place: header.php OR functions.php, not both!). You have to include it BEFORE you use it: header.php and functions.php are the best places, since they're the first files that are executed. |
Ok, sorry and excuse my ignorance. I'm already familiar with but I must Am 26.10.2014 15:54, schrieb SimoneS93:
Links:[1] |
Hi, I try to check out your plugin-system, but when I insert the 'one-liner' ()to my themes/default/header.php it occurs an error. I've create an theme/default/plugin-folder and Plugin.php is in this folder. The error :
Parse error: syntax error, unexpected '' (T_NS_SEPARATOR), expecting identifier (T_STRING) in /xxxxxx/themes/default/header.php on line 1
Uncaught Exception
syntax error, unexpected '' (T_NS_SEPARATOR), expecting identifier (T_STRING)
Origin
themes/default/header.php on line 1
Trace
#0 [internal function]: System\Error::shutdown()
#1 {main}
The text was updated successfully, but these errors were encountered: