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
  • Robert Valencia
    PLUS
    Robert Valencia
    Courses Plus Student 3,735 Points

    Uncaught Error: Call to a member function render() on null in index.php:9 Not sure what I’m doing wrong

    Posted April 1, 2018 10:44pm by Robert Valencia
    Robert Valencia
    Courses Plus Student 3,735 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Michael Lawinger
    Michael Lawinger
    33,581 Points

    Route index.php

    Posted February 21, 2017 3:16pm by Michael Lawinger
    Michael Lawinger
    33,581 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Alfredo Prince
    Alfredo Prince
    6,175 Points

    Should i have to add in ,function() use ($app)

    Posted September 27, 2016 8:52pm by Alfredo Prince
    Alfredo Prince
    6,175 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • krishna sapkak
    krishna sapkak
    1,330 Points

    not getting the solution for the error...

    Posted January 19, 2016 3:22am by krishna sapkak
    krishna sapkak
    1,330 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Sean Flanagan
    Sean Flanagan
    33,237 Points

    Routing in Slim, Task 1

    Posted December 12, 2015 2:30pm by Sean Flanagan
    Sean Flanagan
    33,237 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Nathan Tran
    Nathan Tran
    5,808 Points

    Hi I'm trying to solve this challenge, i guess I have got it right, yet i can't pass this one:

    Posted September 12, 2015 7:03pm by Nathan Tran
    Nathan Tran
    5,808 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Ellen Sun
    Ellen Sun
    1,605 Points

    What's wrong with my code?

    Posted September 2, 2015 2:21am by Ellen Sun
    Ellen Sun
    1,605 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Robbie Thomas
    Robbie Thomas
    31,093 Points

    Challenge 1 of 2

    Posted August 26, 2015 3:23pm by Robbie Thomas
    Robbie Thomas
    31,093 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    6 Answers

  • Preston Yeschick
    Preston Yeschick
    10,803 Points

    $app->get() function with given parameters not working

    Posted August 18, 2015 11:19pm by Preston Yeschick
    Preston Yeschick
    10,803 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    4 Answers

  • Shilpa Kothari
    Shilpa Kothari
    4,518 Points

    how to have the get route echo 'hello world'

    Posted August 6, 2015 5:29pm by Shilpa Kothari
    Shilpa Kothari
    4,518 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    2 Answers

  • Sajid Latif
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sajid Latif
    Full Stack JavaScript Techdegree Student 22,368 Points

    The 'get' route is not working for me with the SLIMphp

    Posted July 23, 2015 8:03am by Sajid Latif
    .a{fill-rule:evenodd;}techdegree
    Sajid Latif
    Full Stack JavaScript Techdegree Student 22,368 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    4 Answers

  • Albert Lemort
    Albert Lemort
    248 Points

    solution for challenge 1

    Posted July 14, 2015 7:22am by Albert Lemort
    Albert Lemort
    248 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    0 Answers

  • MUZ140683 Viniel Munjeri
    MUZ140683 Viniel Munjeri
    3,448 Points

    have the get route closure echo'Hello There'

    Posted July 9, 2015 7:46am by MUZ140683 Viniel Munjeri
    MUZ140683 Viniel Munjeri
    3,448 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    2 Answers

  • imad saci
    PLUS
    imad saci
    Courses Plus Student 173 Points

    please check my code and tell me where is the mistake

    Posted July 3, 2015 6:45am by imad saci
    imad saci
    Courses Plus Student 173 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Nicole Archambault
    Nicole Archambault
    27,853 Points

    Add a 'get' route to 'index.php'

    Posted June 30, 2015 11:20pm by Nicole Archambault
    Nicole Archambault
    27,853 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    3 Answers

  • MUZ140644 Golide Makhosi
    MUZ140644 Golide Makhosi
    3,738 Points

    web

    Posted June 12, 2015 4:42pm by MUZ140644 Golide Makhosi
    MUZ140644 Golide Makhosi
    3,738 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    0 Answers

  • Christopher Edrian Espiritu
    Christopher Edrian Espiritu
    11,635 Points

    Getting trouble with routing '/hello' to 'index.php', I think my code is right tried it on workspaces and is working.

    Posted June 10, 2015 6:28pm by Christopher Edrian Espiritu
    Christopher Edrian Espiritu
    11,635 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    0 Answers

  • daniwao
    daniwao
    13,125 Points

    GET route through SLIM PHP. Add a 'get' route '/hello' to index.php

    Posted June 8, 2015 6:17am by daniwao
    daniwao
    13,125 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Luis Brito
    Luis Brito
    24,527 Points

    I am stuck with task 2 of Building Websites with PHP Have the get route closure echo 'Hello There'

    Posted May 28, 2015 9:59pm by Luis Brito
    Luis Brito
    24,527 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    2 Answers

  • Aquilardo Caricari Cala
    PLUS
    Aquilardo Caricari Cala
    Courses Plus Student 99 Points

    How to solve this Question

    Posted May 25, 2015 5:12pm by Aquilardo Caricari Cala
    Aquilardo Caricari Cala
    Courses Plus Student 99 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

  • Eduardo Mejía
    Eduardo Mejía
    36,816 Points

    Code Challenge Task 1: Add a 'get' route '/hello' to index.php

    Posted May 24, 2015 6:29pm by Eduardo Mejía
    Eduardo Mejía
    36,816 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    2 Answers

  • John Halbert
    John Halbert
    12,922 Points

    Adding a get route for '/hello' won't pass

    Posted May 23, 2015 1:44am by John Halbert
    John Halbert
    12,922 Points
    • PHP
    • Building Websites with PHP
    • Slim Basics & Twig Templates
    • Routing in Slim

    1 Answer

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