I'm having issue with loading incubator files into my project.
I downloaded files from GitHub's website (the download zip button).
I'm using Phalcon\Loader
to register the namespace for Phalcon as it's stated in the README.md
I can clearly see registered namespace via spl_autoload_functions()
["Phalcon"]=>"/var/www/html/project/apps/vendor/phalcon/incubator/"
And full path of the class file is /var/www/html/project/apps/vendor/phalcon/incubator/Utils/Slug.php
Unfortunately I keep getting class not found error when I try to use incubator classes;
namespace AppName\Models
use Phalcon\Utils\Slug;
class MyModel
{
public function myMethod()
{
$slug = Slug::generate("testing slug");
var_dump($slug);
}
}
I get class not found error; PHP Fatal error: Class Phalcon\\Utils\\Slug not found
Why the registered namespaces are not working? I'm using Phalcon 2.0.0