Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

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

plugins

Started by Deomid 4 years ago · 0 replies · 520 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 renedebaaij, 2 days ago
0 40 2 days ago
Plugins · by complanar, 3 weeks ago
6 392 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 209 2 weeks ago
Plugins · by complanar, 1 month ago
2 484 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 763 2 months ago