Twig view functions and base path issues

Thought I’d take a look at Slim and tried setting up a test project to play about with it but found myself struggling to use twig view helper functions.

I followed this and it seems to work okay but when I install Twig View and then try and use the ‘is_current_url’ function it doesn’t work as now the url is saying ‘app-one/app-one/some-route’. How I do I stop it from doing this?

Here’s my .htaccess:
RewriteEngine On
RewriteBase /app-one
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

And here is my base path:

Any help would be greatful. Just can’t seem to get it to work.


Hi! Try to remove this line in your .htaccess file:

RewriteBase /app-one

Hi thanks for the reply.

I’ve tried this but it still seems to be doing the same thing.

Can you try this setup?