We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 628f785 + 0c0ef31 commit 8008230Copy full SHA for 8008230
public/index.php
@@ -1,11 +1,11 @@
1
<?php
2
3
+use Phalcon\Db\Adapter\Pdo\Mysql as DbAdapter;
4
+use Phalcon\Di\FactoryDefault;
5
use Phalcon\Loader;
-use Phalcon\Mvc\Url;
-use Phalcon\Mvc\View;
6
use Phalcon\Mvc\Application;
7
-use Phalcon\DI\FactoryDefault;
8
-use Phalcon\Db\Adapter\Pdo\Mysql as DbAdapter;
+use Phalcon\Mvc\Url as UrlProvider;
+use Phalcon\Mvc\View;
9
10
define('BASE_PATH', dirname(__DIR__));
11
define('APP_PATH', BASE_PATH . '/app');
@@ -31,7 +31,7 @@
31
32
// Setup a base URI so that all generated URIs include the "tutorial" folder
33
$di['url'] = function() {
34
- $url = new Url();
+ $url = new UrlProvider();
35
$url->setBaseUri('/');
36
return $url;
37
};
0 commit comments