[Solved] How to pass array from method to property using PHP
There are a few issues with your code. Firstly, using single quotes (‘) instructs PHP to NOT interpolate values. Secondly, I suspect that your data value will never actually update as the values in $active change. Also, you should be using class=”active” not simply adding the word ‘active’ into your li element. A more effective … Read more