I'm writing a simple plugin for 'Craft 2' and It seems that a
slug of an entry is returned if you reffer it like:
$entry['slug'] but calling
$entry->slug returns same value as entry title.
Is there an explanation of why it happens and what is the best practice of getting values of the entry fields with a homemade plugin?
God bless ya'll.