Skip to content

Commit 8008230

Browse files
authored
Merge pull request #8 from SidRoberts/patch-1
Updated index.php to reflect documentation
2 parents 628f785 + 0c0ef31 commit 8008230

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3+
use Phalcon\Db\Adapter\Pdo\Mysql as DbAdapter;
4+
use Phalcon\Di\FactoryDefault;
35
use Phalcon\Loader;
4-
use Phalcon\Mvc\Url;
5-
use Phalcon\Mvc\View;
66
use Phalcon\Mvc\Application;
7-
use Phalcon\DI\FactoryDefault;
8-
use Phalcon\Db\Adapter\Pdo\Mysql as DbAdapter;
7+
use Phalcon\Mvc\Url as UrlProvider;
8+
use Phalcon\Mvc\View;
99

1010
define('BASE_PATH', dirname(__DIR__));
1111
define('APP_PATH', BASE_PATH . '/app');
@@ -31,7 +31,7 @@
3131

3232
// Setup a base URI so that all generated URIs include the "tutorial" folder
3333
$di['url'] = function() {
34-
$url = new Url();
34+
$url = new UrlProvider();
3535
$url->setBaseUri('/');
3636
return $url;
3737
};

0 commit comments

Comments
 (0)