We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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



888
Accepted
answer

solved with code below :

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