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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:03:30+00:00 2026-05-28T00:03:30+00:00

Am expanding a site built with codeigniter, its to have an api and mobile

  • 0

Am expanding a site built with codeigniter, its to have an api and mobile version.
I intended to seperate the api and mobile site from the main site using sub domains.

  • test.com
  • api.test.com

  • m.test.com

There are many models,and libraries already written for the main site which is to be used by the site,api, and mobile, and i do not want to replicate them.
Am working with codeigniter 2.1.0.
Any help will be appreciated. Thanks

  • 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-28T00:03:31+00:00Added an answer on May 28, 2026 at 12:03 am

    Look into using Application Packages. You could add your main site application/ folder to your API and mobile sites as an application package. CodeIgniter will then fall back to looking into your main site application/ folder when you attempt to load resources.

    Using this method you could use the same models, helpers, and libraries between all three of your applications but write custom controllers and views for your API and mobile sites.

    Edit (1/12/2012): For anyone interested, I wrote a blog post about this question discussing the usage of application packages. The post can be read here.

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

Sidebar

Related Questions

I have recently gone into extending my site using node.js and have come to
I have an existing site build in c# 3.5 using asp.net mvc 1. There
I'm writing an admin section to a site using CodeIgniter. I am writing an
Expanding this question on how I learnt to pass from problem description to code
I have a site with a huge number (well, thousands or tens of thousands)
I'm using some images as banners on my site. They're full (960px) width and
I have a social networking site which is beginning to gain some momentum and
I have a database designed to hold card data from various trading card games.
For a site I'm making for myself and a friend, I have a div
Hey everyone, I am expanding my team and I have recently added an additional

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.