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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:44:01+00:00 2026-05-20T10:44:01+00:00

Am sure the question is vague. Let me try to explain. Assume zend frame

  • 0

Am sure the question is vague.

Let me try to explain.

Assume zend frame work – PHP – jquery combination.

I include jquery files in layout.phtml.

i include some files in controller.php.

some file in view.phtml

Atlast when i run and view the page . Is there any way or any tool to find which file is included through which file (layout controller or view) ??

In addition can some one explain which is the best way include js files and where . using zend framework in layout or controller or view

  • 1 1 Answer
  • 2 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-20T10:44:02+00:00Added an answer on May 20, 2026 at 10:44 am

    The only way to find where a public, static asset (JS, CSS, image, etc) is included is to trawl through the source code (using something that can “find in files” would save time).

    In regards to how and where to include such assets… for global includes (common stylesheets, scripts, etc), include these in your layouts.

    For specific page includes, place these in your views.

    The best way to include a static asset is using the appropriate view helper. These are generally displayed in your layout file, for example

    <?php echo $this->doctype() ?>
    <html>
        <head>
            <?php
    
            echo $this->headMeta()->prependHttpEquiv('Content-Type', 'text/html; charset=' . $this->getEncoding());
    
            // I use "prepend" here so it comes before any page specific stylesheets
            echo $this->headLink()->prependStylesheet($this->baseUrl('/css/common.css'));
    
            echo $this->headScript();
    
            ?>
        </head>
        <body>
    
            <!-- content -->
    
            <?php echo $this->inlineScript() ?>
        </body>
    </html>
    

    You can then add to these placeholders in your view scripts, for example

    <?php
    // index/index.phtml
    $this->inlineScript()->appendFile('https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js')
                         ->appendFile($this->baseUrl('/js/my-jquery-script.js'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know the question sounds too vague so let me explain exactly what I
I'm not sure how to categorize this question, so let me just explain what
Sorry for the vague question.. but I'm not sure quite what the problem is.
Let me explain my question. I have a daily report about one PC's free
Im sure this question is so easy for all you experts, but I am
I am sure this question has been answered somewhere but I'm having major problems
I'm sure this question has a simple enough answer, but I can't seem to
I'm sure this question is asked a lot but I cannot find an answer
I'm not sure this question is appropriate here but I hope I could get
Not entirely sure my question title describes what I want to do, but couldn't

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.