This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

phplee
phplee

Hi,

I have a class called SocialStream located in my plugin directory in /timmarner/socialstream/classes/socialstream.php

In my component i have

 use TimMarner\SocialStream\Classes\SocialSteam;

now if i try to all the class

 public function onRun()
{

    $settings   = Settings::instance();
    $stream     = new SocialSteam;

}

i get the error:

 Class 'TimMarner\SocialStream\Classes\SocialSteam' not found

Ive tried all sorts. using composer, namespacing etc. nog joy. If any one could help would be grateful.

Parsec
Parsec

Did you add the correct namespace to you Class?

And if you did, eventually, the namespace for the 'use' becomes case-sensitive, so you may try to rename:

socialstream.php to Socialstream.php

phplee
phplee

Thanks for the reply. your right it was case case-sensitive. renamed my class file to SocialStream.php

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.