Using functions as settings

Tips submitted by PHPMaker users
Post Reply
elio42
User
Posts: 128

Using functions as settings

Post by elio42 »

Hi,
Sometimes we forget that when Phpmaker requests a data, it is only necessary that this be a valid expression in PHP, which allows the use of functions.
For example, I have used to set the upload folder a function that defines it according to the record data.
Another interesting example is to use a function to set the default value of a field.


Post Reply