Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:35:10+00:00 2026-06-11T15:35:10+00:00

I am following the tutorial on OS X 10.8 with PHP 5.3, phalcon 0.5.0.

  • 0

I am following the tutorial on OS X 10.8 with PHP 5.3, phalcon 0.5.0. I have a folder called tutorial in the web root of my apache. When I use the code:

echo Phalcon\Tag::linkTo("signup", "Sign Up Here!");

In the output html I am getting

localhost/signup 

instead of

localhost/tutorial/signup

I also entered RewriteBase /tutorial/ in my .htacess file, but still having the same problem. I had the same issue in 0.4 of phalcon and also in 0.5

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:35:11+00:00Added an answer on June 11, 2026 at 3:35 pm

    The URL rewrite will need to be registered in the DI container of your project during bootstrap as such (file public/index.php)

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

    This will effectively instruct Phalcon to use the subfolder internally as well as the \Phalcon\Tag::linkTo() function. Please note the ending slash “/” character in the setBaseUri()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use PHP to generate dynamic Web pages. As stated on the following tutorial
I am new to PHP and am following a tutorial on YouTube. I have
I was following this tutorial . I need to use a php file's ouput
i have made a simple php contact form following this tutorial: http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme The big
I have read the following tutorial Uploading Files To the Server Using PHP and
The x modifier code in this tutorial Php regex tutorial gives me the following
Here is my following tutorial code from Learning PHP MYSQL and Javascript by OReilly.
I'm following this tutorial here: http://brenelz.com/blog/implementing-paging-using-php-and-jquery/ Here is what I have: http://eataustineat.com/testingfolder/ I've encountered
So I've been following this tutorial http://drupal.org/node/751826 . I took the following code: <?php
I'm currently following a PHP tutorial, and I've got the following code:: $sql =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.