ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display template in brower using "LocalHost" being used as a testing server!

July 29, 2010 8:03pm

Subscribe [4]
  • #1 / Jul 29, 2010 8:03pm

    Wooden Thumb

    15 posts

    I would like to view my template in a browser using my locahost (testing server).
    I have checked the forums and because it must be so basic no one seems to have detailed the answer. 

    FYI..  I also have the templates saved as files
        Example Site name is:  testsite
        I am using XAMPP


    2 ways I am “trying” to render the template in a browser:
      Using the long file name (path) example: c:xampp/hotdocs/expressionengine/system/.... 
          Naming the file in this fashion didn’t work… error “file not found”

      Trying to use local host
          http://localhost/testsite/.....
          Also Received error no such file… (I don’t know how using the site name of the web site plays in displaying a template) or how to use the basic EE Building Blocks of a URL.

    Meaning a normal internet browser:  http://testsite.com/index.php/templateGroup/TemplateName
    Now on a localhost: ???  http://localhost/testsite/????  or ???

    My question is how can I display the template using localhost and how/if it is possible to render a template by naming the template/file using the path name as above.

    Thanks for your Help!

  • #2 / Jul 30, 2010 3:12am

    John Henry Donovan

    12339 posts

    Wooden Thumb,

    What happens when you click ‘View Rendered Template’ button when editing the template?

  • #3 / Jul 30, 2010 9:50am

    Wooden Thumb

    15 posts

    Hi John Henry….  Since deleting the cache’s and the files you mentioned on the other thread that works perfectly…. 

    Still would like to view as detailed above, so others can get a link from me and see the progress of the site without logging into EE.

    Didn’t know how a “site name” might play into the structure of the link, or as above if I use a path to the file. 

    Without being overly complicated..  If I didn’t save templates as “files” I would really have no clue how to access a link to view in a “LocalHost” browser with EE.

  • #4 / Jul 30, 2010 5:15pm

    Ingmar

    29245 posts

    It will depend on your local setup but there is no big difference between a local server and a hosted one. You can try http://localhost/index.php/templateGroup/TemplateName but as I’ve said, details would depend on your localhost.

  • #5 / Aug 01, 2010 12:32pm

    Wooden Thumb

    15 posts

    Thanks for the help…. 

    Figuring it out is easier when i know I’m headed in the right direction!

    Sorry for such a newbie item, but the clarity of your response helped, now it renders perfectly in my local host browser!

    Thanks again for your help!

  • #6 / Aug 01, 2010 6:04pm

    Greg Salt

    3988 posts

    Hi Wooden Thumb,

    Excellent. Glad that you’re all set. Please post back if you have further questions or problems.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases