Join the Treehouse affiliate program and earn 25% recurring commission!

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

Join the Treehouse affiliate program and earn 25% recurring commission!

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
    • Showing results for:
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes
    • Close
  • Paul Engering
    Paul Engering
    11,689 Points

    Why not just use "/" instead of "{{ baseUrl() }}" and "contact" instead of "{{ siteUrl('/contact') }}"?

    Posted on Apr 23, 2017 by Paul Engering
    Paul Engering
    11,689 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    0 Answers

  • Jason Feliz
    Jason Feliz
    9,084 Points

    Fatal error: Uncaught Error: Class 'Twig_SimpleFunction' not found... Please help!!!

    Posted on Aug 15, 2016 by Jason Feliz
    Jason Feliz
    9,084 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    0 Answers

  • lorinacapistrano
    lorinacapistrano
    3,371 Points

    Building Websites with PHP - Error due to Slim version difference on tutorial vs latest version installed

    Posted on Mar 21, 2016 by lorinacapistrano
    lorinacapistrano
    3,371 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    3 Answers

  • Sean Flanagan
    Sean Flanagan
    33,237 Points

    No index.html when I hover over About link

    Posted on Dec 17, 2015 by Sean Flanagan
    Sean Flanagan
    33,237 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,237 Points

    No contact.twig in my work space

    Posted on Dec 17, 2015 by Sean Flanagan
    Sean Flanagan
    33,237 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Mostafa Akram
    PLUS
    Mostafa Akram
    Courses Plus Student 9,541 Points

    neither urlFor() nor siteUrl() is working

    Posted on Nov 28, 2015 by Mostafa Akram
    Mostafa Akram
    Courses Plus Student 9,541 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    3 Answers

  • Tim Beachum
    Tim Beachum
    3,095 Points

    Slim Error When I run index.php

    Posted on Oct 23, 2015 by Tim Beachum
    Tim Beachum
    3,095 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    0 Answers

  • Sam Deacon
    Sam Deacon
    2,650 Points

    Is it advisable to build-test php projects on a local linux setup?

    Posted on Sep 27, 2015 by Sam Deacon
    Sam Deacon
    2,650 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    1 Answer

  • cynnimon
    cynnimon
    4,001 Points

    How does "baseUrl()" know which page is the home page?

    Posted on Sep 13, 2015 by cynnimon
    cynnimon
    4,001 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Josh Naylor
    Josh Naylor
    19,341 Points

    How would you do a route of multiple levels without breaking path to CSS?

    Posted on Sep 9, 2015 by Josh Naylor
    Josh Naylor
    19,341 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • narvesh pradhan
    narvesh pradhan
    2,958 Points

    hey php group!!! i am really in confuse what to do

    Posted on Sep 8, 2015 by narvesh pradhan
    narvesh pradhan
    2,958 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Caden Adam
    Caden Adam
    16,257 Points

    404 on contact page for local server

    Posted on Aug 21, 2015 by Caden Adam
    Caden Adam
    16,257 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Jon Mullins
    Jon Mullins
    15,724 Points

    Contact not working on local server.

    Posted on Aug 4, 2015 by Jon Mullins
    Jon Mullins
    15,724 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    7 Answers

  • Ilya Fedoseev
    Ilya Fedoseev
    6,203 Points

    workspace not work !!!!!

    Posted on Jul 20, 2015 by Ilya Fedoseev
    Ilya Fedoseev
    6,203 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    4 Answers

  • Talha Khalid
    Talha Khalid
    10,262 Points

    Hello All. I am getting the "The function "baseUrl" does not exist in "main.twig" at line 29" message.

    Posted on Jul 17, 2015 by Talha Khalid
    Talha Khalid
    10,262 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    4 Answers

  • Erika Nielsen
    Erika Nielsen
    17,556 Points

    '/contact' route not routing

    Posted on Jun 9, 2015 by Erika Nielsen
    Erika Nielsen
    17,556 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Ilias Aung
    PLUS
    Ilias Aung
    Courses Plus Student 437 Points

    Did you end up explaining how to highlight 'contact' when that page is selected?

    Posted on May 22, 2015 by Ilias Aung
    Ilias Aung
    Courses Plus Student 437 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.