Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6041853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:43:17+00:00 2026-05-23T06:43:17+00:00

Looking at frameworks I came across Codeigniter. I was wondering what the proper process

  • 0

Looking at frameworks I came across Codeigniter. I was wondering what the proper process would be to build the html output for results from the db before passing it to the view. Meaning I create a model to fetch rows from the db, load the model in the controller, before passing the results to the view I want to build the view using the results instead of looping through the results and displaying it in the view itself. If I were to do that would I create a private function in the controller to do that? Or would I do that in the model or should I just do that in the view?

I just feel this would be cleaner to do than write all the code in the view to display the results so if there were changes to the display of the results or display it on another page I can just re-use the display function instead of copying and pasting the code from the view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:43:18+00:00Added an answer on May 23, 2026 at 6:43 am

    The view is the information that is being presented to a user. That’s where you should be looping through your results.

    Have a look at http://codeigniter.com/user_guide/overview/mvc.html for more an overview of what the models, controllers and views are responsible for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any continuous integration frameworks for CL? Specifically, I'm looking for: Automated build,
Reading on another forum I've came across the world of CSS Frameworks. The one
I have been looking at various dependency injection frameworks for .NET as I feel
Which C#/.NET Dependency Injection frameworks are worth looking into? And what can you say
I am looking for specific guidelines for when to use Web Services frameworks versus
I'm looking for java frameworks, patterns or technics which allow a client server architecture
I'm looking to see what JavaScript Frameworks exist for the creation of Smartphone websites
What are the current choices of mature Clojure web frameworks? I am looking for
A lot of ruby frameworks implement a server to serve up dynamic html documents.
I am playing with TFS 2010, and am trying to setup a build process

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.