Third-party class library file: F: xampphtdocsCmsExtendVendorsnoopy. php custom class: {code ...} the following error is reported during running: {code ...} what is the reason? Is my writing incorrect? How can I change it? Thank you! Third-party class library files:
F:\xampp\htdocs\Cms\Extend\Vendor\snoopy.php
The custom class is as follows:
class Sms extends UserAction{ vendor('Snoopy'); public function sms(){ ..... }}
An error is reported as follows:
syntax error, unexpected 'vendor' (T_STRING), expecting function (T_FUNCTION)
What is the reason? Is my writing incorrect? How can I change it? Thank you!
Reply content:
Third-party class library files:F:\xampp\htdocs\Cms\Extend\Vendor\snoopy.php
The custom class is as follows:
class Sms extends UserAction{ vendor('Snoopy'); public function sms(){ ..... }}
An error is reported as follows:
syntax error, unexpected 'vendor' (T_STRING), expecting function (T_FUNCTION)
What is the reason? Is my writing incorrect? How can I change it? Thank you!
vendor('Snoopy');class Sms extends UserAction{}
class Sms extends UserAction{ public function sms(){ vendor('Snoopy'); }}