9 Posts
icke
4 years ago
Topic

Hello experts,

I want to optimize the php code for re-using in a before store field:

either split the php code in different files and include them in the coding (free option) or include them with the file option.

Unfortunately, nothing works. 

My php files are stored in a separate folder directly under root.

I have tried many different approaches, e.g. „require_once“ and I have played with many different pathes.

What am I doing wrong? Any ideas?

Thank you!

Nils

Get a Book for SEBLOD
1283 Posts
Bucklash
4 years ago
1
Level 1

I did this:

libraries/mystuff/seblodstuff/dostuff.php

And file starts with this:

9 Posts
icke
4 years ago
0
Level 2

Thanks! Now it's working!

Get a VIP membership