Announcement

Collapse
No announcement yet.

PHP 'use' Statement in SC

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP 'use' Statement in SC

    I am trying to use an external library that requires a couple of 'use' statements before instantiating the class. There are 2 statements in this form:

    use libfolder\classname1;
    use libfolder\subfolder\classname2;

    These throw the error "Parse error: syntax error, unexpected 'use' (T_USE) in ..." running it from a blank app.

    Without the use statements, I get "Fatal error: Class 'Form' not found in..."

    Is there a way to inject these 'use' statements in SC or some way to amend the class library to work without them?


Working...
X