Skip to main content

🛍️ BLACK FRIDAY 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
  • Andrew Norris
    Andrew Norris
    4,857 Points

    I cannot figure what to reference in order to add the number of likes by flavor to the view.

    Posted June 29, 2015 9:04pm by Andrew Norris
    Andrew Norris
    4,857 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Dan Neumann
    PLUS
    Dan Neumann
    Courses Plus Student 10,318 Points

    Access elements from a returned array in php

    Posted June 29, 2015 6:20pm by Dan Neumann
    Dan Neumann
    Courses Plus Student 10,318 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points

    Next, change the $flavors variable in index.php to contain the three most popular flavors. Right now, the controller cod

    Posted June 20, 2015 9:52am by MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    3 Answers

  • MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points

    Next, change the $flavors variable in index.php to contain the three most popular flavors. Right now, the controller cod

    Posted June 20, 2015 4:46am by MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points

    Next, change the $flavors variable in index.php to contain the three most popular flavors. Right now, the controller cod

    Posted June 19, 2015 7:12pm by MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    2 Answers

  • MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points

    This code block contains two files: (1) an index.php file that contains the controller code and the view code for the ho

    Posted June 17, 2015 7:57pm by MUZ140610 Tinashe Marunda
    MUZ140610 Tinashe Marunda
    7,028 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    0 Answers

  • David Labourdette
    David Labourdette
    7,127 Points

    Apparently, my code is not displaying " +" correctly??

    Posted April 16, 2015 10:35pm by David Labourdette
    David Labourdette
    7,127 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Munaro Herbert Moyo
    Munaro Herbert Moyo
    11,063 Points

    Refactoring the Codebase

    Posted March 7, 2015 7:46am by Munaro Herbert Moyo
    Munaro Herbert Moyo
    11,063 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    2 Answers

  • Samuel Harrison
    Samuel Harrison
    3,484 Points

    Stuck on This Code Challenge?

    Posted January 30, 2015 11:13am by Samuel Harrison
    Samuel Harrison
    3,484 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    2 Answers

  • MUZ140108 Samantha N. Tozivepi
    MUZ140108 Samantha N. Tozivepi
    9,659 Points

    challenge Task 3 of 4

    Posted January 21, 2015 5:36pm by MUZ140108 Samantha N. Tozivepi
    MUZ140108 Samantha N. Tozivepi
    9,659 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Phil Ward
    Phil Ward
    4,204 Points

    Stuck on PHP task - enhancing a PHP Application

    Posted December 20, 2014 1:15pm by Phil Ward
    Phil Ward
    4,204 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    3 Answers

  • Salman Akram
    PLUS
    Salman Akram
    Courses Plus Student 40,065 Points

    Separating Concerns MVC - something wrong challenge

    Posted December 2, 2014 6:40am by Salman Akram
    Salman Akram
    Courses Plus Student 40,065 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    2 Answers

  • Mazen Lawand
    Mazen Lawand
    10,105 Points

    Why is my statement wrong?

    Posted December 1, 2014 6:18am by Mazen Lawand
    Mazen Lawand
    10,105 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    3 Answers

  • Amin Khoshzahmat
    Amin Khoshzahmat
    12,342 Points

    stuck in refactoring

    Posted July 20, 2014 1:18pm by Amin Khoshzahmat
    Amin Khoshzahmat
    12,342 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Nthulane Makgato
    PLUS
    Nthulane Makgato
    Courses Plus Student 19,602 Points

    Separating Concerns MVC 4/4

    Posted June 19, 2014 12:52am by Nthulane Makgato
    Nthulane Makgato
    Courses Plus Student 19,602 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Fabian Wilson
    Fabian Wilson
    5,076 Points

    So I am stuck on this challenge.

    Posted June 3, 2014 4:24am by Fabian Wilson
    Fabian Wilson
    5,076 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    2 Answers

  • Yasemin Sipahioglu
    PLUS
    Yasemin Sipahioglu
    Courses Plus Student 397 Points

    refactoring the Codebase challenge 4/4

    Posted May 24, 2014 6:56pm by Yasemin Sipahioglu
    Yasemin Sipahioglu
    Courses Plus Student 397 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    3 Answers

  • Miraj Desai
    Miraj Desai
    611 Points

    stuck on the 4th part of this challnge.

    Posted April 30, 2014 6:04am by Miraj Desai
    Miraj Desai
    611 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Anthony Randazzo
    Anthony Randazzo
    13,072 Points

    No Idea What I'm Doing Wrong Here..

    Posted April 10, 2014 5:03am by Anthony Randazzo
    Anthony Randazzo
    13,072 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    1 Answer

  • Welby Obeng
    Welby Obeng
    20,340 Points

    explain this function line by line

    Posted April 7, 2014 12:19am by Welby Obeng
    Welby Obeng
    20,340 Points
    • PHP
    • Enhancing a Simple PHP Application
    • Refactoring the Codebase
    • Separating Concerns: MVC

    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