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

New No-Code Track! 🚀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
    • 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
      • • 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
  • 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.

    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.