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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
      • • Android
      • • 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
  • 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,236 Points

    No index.html when I hover over About link

    Posted December 17, 2015 8:28pm by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • PHP
    • Building Websites with PHP
    • Contact Form & Sending Email
    • Named Routes

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    No contact.twig in my work space

    Posted December 17, 2015 3:19pm by Sean Flanagan
    Sean Flanagan
    33,236 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.

    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.