Closed pine3ree closed 5 months ago
Why not just use $wire->files, $wire->cache etc?
Why not just use $wire->files, $wire->cache etc?
Of course and if not overwritten $this->files
, etc works as well.
But $wire->files
is not a direct call, it goes through WireData::__get()
and WireData::get()
;
(correction)
Wire::__get()
Wire::fuel->get()
Cheers
I am closing this because I realize it is maybe too opinionated and also trivial to achieve
In order to reduce the chances of variable name collision, it would be nice to have alternative api variable names in templates such as:
$wireFiles
,$wireUser
,$wireInput
, ... mimicing the nomenclature for the wire* function-APIRight now I do this in my
_init.php
file:before I used to call the same-name function to obtain the api-var (and skip calling the api-function again)
kind regards