Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

How do I split code and include when I'm developing a plugin?

plugins

Started by Deomid 4 years ago · 0 replies · 443 views
4 years ago

Dear friends, I greet you! I recently started working with Grav CMS. I will be glad if someone will support me.

How do I split code and include when I'm developing a plugin?
I need to process a large array of 1500 key-value pairs. The only thing I came up with is to store it in a separate php file and include it in the plugin.

Questions:

  1. Where to store a php file with a long array and how to include it?
  2. Is there a better way to handle a large array of key-value pairs?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Vladimir Novak, 2 weeks ago
3 294 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago