Issue with Summary Range formatting
wont work because
Unsupported operand types: array / int
dd state:
ok, so I do
it just shows 1
and nothing else
how do I format this then? (want 1-4)19 Replies
same result.. just displays 1's
Sorry, I made a mistake
now its
1-.
kek.. but theres progress hahayeah the value is correct in my dd aswell, as was
return $state[0] / 100 . ' - ' . $state[1] / 100;
just doesnt show in the summary
dd formatted state:
shown on summary:
š howTry ->numeric(false) on the summarizer?
seems to do nothing
oh this is a summarizer
i didnt know
Yeah ignore that I was being stupid
I feel like this whole problem is me beeing stupid but nothing works š
Solution
you need to return an array with each number
[first, second]
we will then spit that out into the view with the dash betweenahhhh
In hindsight that makes a lot of sense considering $state was an array to begin with lol
:wesmart:
yeah this works
noice
thanks now I feel stupid
also thank you Dan xD