Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

base url link correction

hi tnx for your great achievement , phalcon. i installed framework on localhost xampp server .downloaded first tutorial sample project in your documents . evrything is ok Except links.for example signup page link Refers to 127.0.0.1/public/signup While the correct url is 127.0.0.1/tutorial/public/signup How should I correct the base url?? tnx again



559
Accepted
answer

solved with code below :

    $di->set('url', function(){
        $url = new \Phalcon\Mvc\Url();
        $url->setBaseUri('/tutorial/');
        return $url;
    });