Class not found
Closed this issue · 3 comments
nigelterry commented
This is more a comment than an issue. I'm using this with Yii2.
I found I need:
use samdark\sitemap\Sitemap;
use samdark\sitemap\Index;
When I used:
use samdark\sitemap
classes Sitemap and Index were not found. Might be a stupid error on my part, but in case others are having the same issue, I thought I'd mention it.
samdark commented
Yes, that's PHP namespaces.
nigelterry commented
Then I think you need to change README.md where the How To Use it section has:
use samdark\sitemap;