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 6842023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:02:47+00:00 2026-05-27T00:02:47+00:00

I have a website that I built on the CodeIgniter framework. It implements the

  • 0

I have a website that I built on the CodeIgniter framework. It implements the MVC architecture.

My dilemma is: I am developing applications for mobiles. A little research told me that mobile apps cannot connect directly to MySQL databases and thus, I need to have a service layer in between – in my case, they will be PHP scripts.

Is it possible (and should I) for me to integrate these scripts into my MVC architecture. If yes, how should I go about it?

Currently, I have this in mind:

  • Mobile app makes POST request to a controller
  • Controller gets data from the db via the Model
  • Controller encodes data in JSON and sends back to mobile app

Would that be the correct way to implement it?

This is my first time implementing something like this so I want to make sure I’m not missing something.

  • 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-27T00:02:48+00:00Added an answer on May 27, 2026 at 12:02 am

    Better yet, create a full REST server for your mobile app to use. You can get an idea of how easy it is with this tutorial:

    http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/

    This will have a link to the library as well,

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

Sidebar

Related Questions

The website is build with Codeigniter MVC framework. I have a page that is
I have client that built a website that is part static html and part
Background: I have a website that has been built with ASP.NET 2.0 and is
i have built a beautiful website that works very fast in all of the
I have a website that is built in ASP.NET 3.5 & SQL Server 2005,
I have an ASP.NET website that I built that has grown considerably in size
I have an asp.net mvc app running on a local iis website that is
I have built a multilingual website with CodeIgniter using this library: http://codeigniter.com/wiki/URI_Language_Identifier/ I use
I've been developing a website locally with CodeIgniter and have tried uploading it to
I have .NET website that is mainly built for desktop browsers but I'm currently

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.