When I was developing the plugin, I had a header code that statically uses the URL dpa, but because the language variable dpa, url can be set to another value for different languages, that's broken.
But debtorDPAStatus() and the language variables are not returning anything because it can only call that function on the dpa page. Including a controller or a model is not something I consider practical.. I guess we should include those values in the array that $dpa returns by writing some functions and making those variables public or global.
When I was developing the plugin, I had a header code that statically uses the URL
dpa
, but because the language variabledpa, url
can be set to another value for different languages, that's broken.It would become something like this:
But
debtorDPAStatus()
and the language variables are not returning anything because it can only call that function on thedpa
page. Including a controller or a model is not something I consider practical.. I guess we should include those values in the array that$dpa
returns by writing some functions and making those variablespublic
orglobal
.