Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Calling custom class from shortcode class

Started by Muut Archive 10 years ago · 0 replies · 500 views
10 years ago

I'm developing a shortcode plugin much like the Shortcode UI plugin. Now I have code which is used in two shortcode handlers and in the shortcode plugin as well. So I want to place that code in a function in a new custom class possibly in a new PHP file in the same directory as the plugin.

The problem is that although I can call the function successfully from the plugin I'm having problems calling it from the shortcode handler function.

This is not a Grav specific problem I know but nevertheless I hope someone can help me out. Thank you!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2288 9 years ago
Archive · by Muut Archive, 9 years ago
2 1500 9 years ago
Archive · by Muut Archive, 9 years ago
2 4751 9 years ago
Archive · by Muut Archive, 9 years ago
1 3566 9 years ago
Archive · by Muut Archive, 9 years ago
3 1626 9 years ago