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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:07:07+00:00 2026-06-14T13:07:07+00:00

Simple question, but can’t figure it out. Why when calling $this->partial() in a view

  • 0

Simple question, but can’t figure it out.

Why when calling $this->partial() in a view in Zend Framework 2 inside a view in the Admin module, it looks for the file in Application module??

Here’s a stack:

include( '/.../module/Admin/view/admin/pages/index.phtml' )
include( '/.../module/Application/view/partials/pagination.phtml' )
  • 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-14T13:07:08+00:00Added an answer on June 14, 2026 at 1:07 pm

    I don’t really understand what this include stuff is that you do…

    You have two ways to assign templates for partials. I always suggest going the fully qualified way, as this is the fastest way possible, too.

    $this->partial('NAMESPACE / CONTROLLERNAME / ACTIONNAME', array(/** key value pairs*/));
    

    When you only use ACTIONNAME instead of the fully qualified template name, then the renderer will look inside your current module and sarch for actionname.phtml in said module.

    You have to use the fully qualified template name in order to load partials from another module.

    As mentioned previously though, ALWAYS go fully qualified. It’s a lot faster 😉

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

Sidebar

Related Questions

This is probably a simple question but I can't seem to figure out how
sorry this is such a simple question but I can't figure it out. How
this might be a simple question but i can't seem to figure it out.
I know this is a pretty simple question but I can't figure out where
i believe this is a simple question but i can't figure out myself. In
Got a real simple question but can't figure out the solution. Got following code.
I've a very simple question but can't figure it out by myself. i've the
This is probably a very simple question but I just can't seem to figure
Maybe it's a simple question but I can't figure out the right way to
A simple question but I can't seem to figure it out. I want to

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.