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

  • SEARCH
  • Home
  • 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 6382599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:32:36+00:00 2026-05-25T02:32:36+00:00

I am using the MVC model with PHP. What’s the best way to code

  • 0

I am using the MVC model with PHP. What’s the best way to code an ajax-ready application?

To help you answer me I have a list of questions:

  1. Should it be able to render content without javascript?
  2. Should the main page consist only of a header and a footer and the content to be brought via ajax?
  3. Should ajax bring directly html or json code? If json, it should be processed and rendered.
  4. Any other idea?

UPDATE: Forget about search engines in this discussion

  • 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-25T02:32:37+00:00Added an answer on May 25, 2026 at 2:32 am
    1. Yes, it should be able to render HTML directly, at least for the first time a person lands on the page.
    2. No, like I said, the main/first page should be loaded as HTML automatically, there’s no need to load a page partially and then do an ajax request, it will just make it slower and the whole point of ajax is to make things faster.
    3. This one really depends on what you need. If you’re only loading content to be put into the layout then I would just load the HTML directly, but if you want to load variables that can be converted easily to objects for further manipulation than go with JSON.

    Hope this helps 🙂

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

Sidebar

Related Questions

I am setting up an application using the MVC model and I have a
I am creating a simple application using the MVC design pattern where my model
I'm using ASP.NET MVC and have a model which has an image (byte array)
I'm helping develop a MVC application in Visual Studio 2008 using the Entity Model
I'm using Linq to SQL within an ASP.NET MVC application. The model consists of
I am playing around with AJAX functionality using ASP.NET MVC. I have created a
I'm using the MVC model (I think thats what its called) and I have
Despite I have been using MVC in PHP many times, I found out that
Using codeigniters mvc, I have created a model for my search query and I
I have just moved from using php mvc frameworks to rails and have been

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.