Hi im new to yii2 framework.
I would like to know how to use the splpriorityqueue class. It shows the error of
PHP Fatal Error – yii\base\ErrorException
Class ‘app\components\SplPriorityQueue’ not found
Thanks for your help.
Hi im new to yii2 framework.
I would like to know how to use the splpriorityqueue class. It shows the error of
PHP Fatal Error – yii\base\ErrorException
Class ‘app\components\SplPriorityQueue’ not found
Thanks for your help.
Tell PHP, and Yii in particular, that SplPriorityQueue is in the global namespace:
\SplPriorityQueue
That’s right: prepend it with a backslash.