This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
6 Posts
icke
24 days 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 VIP membership
1262 Posts
Bucklash
23 days ago
1
Level 1

I did this:

libraries/mystuff/seblodstuff/dostuff.php

And file starts with this:

6 Posts
icke
23 days ago
0
Level 2

Thanks! Now it's working!

Get a VIP membership