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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:41:25+00:00 2026-05-20T09:41:25+00:00

In Asp.NET applications, there is a service layer that stands between the repositories and

  • 0

In Asp.NET applications, there is a service layer that stands between the repositories and the controllers, so that different parts of the application can make use of the same logic, without any inconsistencies when one part changes.

For example, in CodeIgniter, if there is a part of the application that responds to REST API calls, I’d need to implement the same logic used in the Account controller for authentication. If there were something like UserService, that could be so easy.

What I’m asking is, do you think that this approach makes sense with CodeIgniter, if there is already a built functionality that covers that and if not, what would be the best way? Should I use libraries create my libraries which act like a service layer? Should I just put everything into models (probably not)? Or, wouldn’t CodeIgniter be suited for apps which require that kind of complexity at all?

I need your insight on this. Thanks for the help.

  • 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-20T09:41:26+00:00Added an answer on May 20, 2026 at 9:41 am

    CodeIgniter can handle this perfectly. The idea is that the Controller is the main part of a request where logic is handled right? So a user hits a URL, they go to a controller and the controller decides wether to show them data, redirect them somewhere or tell them to shove off.

    To share logic throughout your application you can create a MY_Controller (extending the main CI_Controller class) then this will be run for every controller. If you want to be more specific and have different kinds of controller loading different base controllers then you can.

    http://philsturgeon.co.uk/news/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY

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

Sidebar

Related Questions

I have read that viewstate is not there in asp.net MVC application. I am
I have a asp.net application.there is a databinding section to a datagrid.But there have
Is there an easy way to log all exceptions in an ASP.NET application? I'm
I'm developing a ASP.NET MVC application. There is little space for me to put
I have a asp.net mvc application. Some pages require SSL, is there a way
Are there any VS template/Starter Kit/Any example of an ASP.NET Web Application, which uses
I'm using jQuery UI's Tabs plugin with a asp.net (webform) application. As there are
I'm looking at using Subsonic with a multi-tenant ASP.net web application. There are multiple
I'm currently working on an Asp.net MVC Web application. In my solution, there're two
Say you have an ASP.NET MVC project and are using a service layer, such

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.