Created code:
class Api { public $breedName = 'Саванна'; public function showBreed() { echo $this->breedName; } public function showLink() { echo "Вторая функция здесь!"; } } I'm trying to use the site.com/api.php/api/showBreed function but I get a blank screen. What am I doing wrong and how to call a function correctly?
Thank!
site.com/api.php/api/showBreedthus do not apply to methods in classes - Evgeny Nikolaev