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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

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

plugins

Started by Deomid 4 years ago · 0 replies · 352 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 Rene, 1 week ago
2 44 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago