9 Posts
icke
11 months 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
1278 Posts
Bucklash
11 months ago
1
Level 1

I did this:

libraries/mystuff/seblodstuff/dostuff.php

And file starts with this:

9 Posts
icke
11 months ago
0
Level 2

Thanks! Now it's working!

Get a VIP membership