Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

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

plugins

Started by Deomid 4 years ago · 0 replies · 561 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 DrPen, 3 weeks ago
2 243 2 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 234 3 weeks ago
Plugins · by Thomas, 3 weeks ago
1 246 3 weeks ago
Plugins · by complanar, 1 month ago
6 568 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 448 1 month ago