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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:20:06+00:00 2026-06-01T08:20:06+00:00

at first sorry my bad English I want load model in my plugin controller

  • 0

at first sorry my bad English

I want load model in my plugin controller

i have a controller in this path:

/app/Plugin/Services/Controller/TypesController.php

and i have a model in this path:

/app/Plugin/Services/Model/ServiceType.php

i want load ServiceType model in TypesController, i use:

$this->loadModel(“ServiceType”);

this command not detect my ServiceType model but this command point to my main Model pacake to this path:

/app/Model/ServiceType.php

but i want load Model in my plugin Model. Is that possible?

  • 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-06-01T08:20:08+00:00Added an answer on June 1, 2026 at 8:20 am

    if that is you primrary model you should be using

    $uses = array('Services.ServiceType');
    

    If not you still need to use the plugin prefix:

    $this->loadModel("Services.ServiceType");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First sorry for my bad English. I have this menubar in PHP. I want
At first sorry my bad English. I want define routing for this url: For
First, sorry for my bad english, I'm French. Here the problem : I have
first of all... i'm italian, so i'm sorry for my bad english! so... this
First. Sorry for bad english. I want to make some common transformation of Map
First of all, sorry for my bad English... I have a problem with one
first, sorry for the bad english. I have a test that submit a login
First, sorry for my bad english. I have an EF entity that looks like:
First, sorry for my bad English. I'm making a Coupons site and have trouble
First of all sorry for my bad english and Im pretty new in these

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.