• Alok Sharma

    (@aloksharma)


    Hi,

    I was wondering if there was any way to call or access a custom template file directly by typing its URL?

    For e.g. I have created a custom template file called xyz.php and I want to call it by typing it as some-domain.com/xyz.php

    Any help will be highly appreciated.

    Thanks,

    Alok

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Templates aren’t pages. You can’t call them directly.

    Thread Starter Alok Sharma

    (@aloksharma)

    Yes, I get that. The only work around is to assign that template to some page and then call that page to access that template.

    esmi

    (@esmi)

    Correct. Is that not working for you in some way?

    Thread Starter Alok Sharma

    (@aloksharma)

    Its working for me but I mainly wanted to make the stuff work the other way. I believe it can be possible by writing some functions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to acces a custom template file directly’ is closed to new replies.