Skip to main content

🛍️ CYBER MONDAY ALL WEEK get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • 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
  • Paul Engering
    Paul Engering
    11,689 Points

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

    Posted April 23, 2017 10:31am 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 August 15, 2016 7:30pm 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 March 21, 2016 9:30am 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 December 17, 2015 8:28pm 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 December 17, 2015 3:19pm 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 November 28, 2015 7:37pm 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 October 23, 2015 9:31pm 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 September 27, 2015 11:30pm 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 September 13, 2015 3:43am 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 September 9, 2015 2:36pm 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 September 8, 2015 5:15am 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 August 21, 2015 3:00am 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 August 4, 2015 8:36pm 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 July 20, 2015 6:06pm 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 July 17, 2015 10:42pm 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 June 9, 2015 11:44pm 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 May 22, 2015 4:37am 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord