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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:40:05+00:00 2026-05-26T08:40:05+00:00

I would like to kindly ask you to help me understand how does the

  • 0

I would like to kindly ask you to help me understand how does the view part “see” the layout part in the zend framework.
In my way of thinking(and I’m thinking like a noob) there should be a root that directs the view (index.phtml) to the layout (designer.phtml) right?
Below is not my code, I’m just trying to make sense of it.

This is the view part of the code, the root of the file is /applications/xampp/xamppfiles/htdocs/mts/applications/modules/designer/views/scripts/index/ index.phtml

        <div style="width:100%; margin-bottom:20px; margin-top:5px;">
    <span style="padding-left:10px; font-size:18px;">Designer <a href="javascript:void(0)" onClick="summonHelp('1')"><img alt="(?)" src="/style/images/help-8.png"/></a></span>
</div>
        <?= $this->leftmenu; ?>
        <div id="picFrame" style="text-align: center"></div>
        <div id="middle_admin_content">

    <fieldset>
        <legend id="bookTitleLegend">Please select a book first</legend>

        <div id="fileBox"><div id="innerBox"></div></div>

        <div id="uploadSuccess" class="statusBox" style="display: none; background-color: #D9F5CB"><span>File Uploaded Successfully</span></div>
        <div id="uploadFailed" class="statusBox" style="display: none; background-color: #EBB9B9"><span>File Upload Failed</span></div>

        <div id="aboutTheBook" style="display: none">
            <form id="aboutTheBookForm" action="" method="post">
                <textarea name="about_the_book" id="about_the_book" cols="60" rows="10"></textarea>
                <input type="submit" value="Save Text" name="saveCoverText"/>
                <input type="hidden" value="" name="bookid" id="bookidField"/>
            </form>
        </div>
    </fieldset>
</div>

This is the layout part of the code, the root of the file is
/applications/xampp/xamppfiles/htdocs/mts/applications/layouts/scripts/designer.phtml

<?php echo $this->doctype() ?>
<html>
<head>
    <title>InTech - Design</title>

<?php
echo $this->headTitle() . "\n";
echo $this->headMeta()  . "\n";
?>
<?
echo $this->headStyle() . "\n";
echo $this->headLink() . "\n";
echo $this->headScript(). "\n";
?>
<?
/*
    $jsContainer = $this->Minify_Container();
    $jsContainer->appendFile('/js/jquery-1.4.2.min.js');
    $jsContainer->appendFile('/js/jquery-ui-1.8.2.custom.min.js');
    $jsContainer->appendFile('/js/jquery.autocomplete.js');
    $jsContainer->appendFile('/js/jquery.bgiframe.min.js');
    $jsContainer->appendFile('/js/jquery.idTabs.min.js');
    $jsContainer->appendFile('/js/jquery/jquery.form.js');
    $jsContainer->appendFile('/js/uploadify/jquery.uploadify.v2.1.4.min.js');
    $jsContainer->appendFile('/js/designer/designer.js');
    $jsContainer->appendFile('/js/scrollpane/jquery.jscrollpane.min.js');
    $jsContainer->appendFile('/js/scrollpane/jquery.mousewheel.js');

echo $this->Minify($jsContainer, 'js');

    $cssContainer = $this->Minify_Container();
    $cssContainer->appendStylesheet('style/ui.all.css');
    $cssContainer->appendStylesheet('js/jquery-ui-1.8.2.custom.css');
    $cssContainer->appendStylesheet('style/site_css/designer_style.css');
    $cssContainer->appendStylesheet('js/scrollpane/jquery.jscrollpane.css');

echo $this->Minify($this->headLink(), 'css');
echo $this->Minify($cssContainer, 'css');
 *
 */

?>

<!-- MINIFIED ABOVE ------------------------->

<link rel="shortcut icon" href="/style/site_images/favicon.ico" type="image/x-icon" />
<link type="text/css" href="/style/ui.all.css" rel="stylesheet" />  
<link type="text/css" href="/js/jquery-ui-1.8.2.custom.css" rel="stylesheet" />
<link type="text/css" href="/style/site_css/designer_style.css" rel="stylesheet" />
<link type="text/css" href="/js/scrollpane/jquery.jscrollpane.css" rel="stylesheet" />

<!--<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>-->
<script type="text/javascript" src="/assets/modules/manager/basic/js/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="/assets/modules/manager/basic/js/plugins/jquery.form.js"></script>

<script type="text/javascript" src="/js/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="/js/jquery.idTabs.min.js"></script>

<!--<script type="text/javascript" src="/js/jquery/jquery.form.js"></script>-->

<script type="text/javascript" src="/js/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript" src="/js/designer/designer.js"></script>
<script type="text/javascript" src="/js/scrollpane/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="/js/scrollpane/jquery.mousewheel.js"></script>
<!-- -->

</head>
<body>

 <div id="dialog" style="display:none; font-size:12px; background-color:#ffffff;">
    <div id="dialog_left" style="float:left; width:150px">
    </div>
    <div id="dialog_right">
    </div>
 </div> 

 <div id="dialogDelete" style="display: none">Delete Item?</div>


    <!-- HEADER SITE AREA :: START -->
    <div id="header">

    <?php 
    $front = Zend_Controller_Front::getInstance();
$module = $front->getRequest()->getModuleName();

    echo $this->render('header-designer.phtml', array(
        'authenticated' => $this->authenticated
    ));
        ?>
    </div>
    <!-- HEADER SITE AREA :: END -->





    <!-- CONTENT :: START -->
    <div id="contentAdmin">
        <div id="helpDialog" style="display: none"></div>

        <?php echo $this->layout()->content ?>




    </div>
    <!-- CONTENT :: END -->





    <!-- FOOTER SITE AREA :: START -->
    <div id="footer">
    <?php echo $this->render('footer.phtml', array(
        'authenticated' => $this->authenticated
    )) ?>
    </div>
    <!-- FOOTER SITE AREA :: START -->

</body>
</html>
  • 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-26T08:40:06+00:00Added an answer on May 26, 2026 at 8:40 am

    The specific mechanics of how all this implemented involves bootstrapping application resources and registering late-running front-controller plugins.

    But the short answer is the “system” knows how to find/render the view-script associated to the requested action and how to find/render your layout script with the view-script content injected.

    Remember, at some point, you bootstrapped a Layout resource, probably in configs/application.ini.

    You also bootstrapped a View resource – either explicitly or implicitly – which knows how to render your headTitle(), headMeta(), headScript(), etc (all rendered using view-helpers), as well as the layout.

    So, there’s really no mystery that the “system” is aware of all this stuff.

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

Sidebar

Related Questions

Im new to Zend framework, i would like to know how to add a
I am new to Python and would like to know if someone would kindly
I am new to ASP.NET MVC framework, I would like to achieve the below
I would like to kindly and elegantly tell people who are using internet explorer
I am a complete newb when it comes to regex, and would like help
Would like to get a list of advantages and disadvantages of using Stored Procedures.
Would like to create a strong password in C++. Any suggestions? I assume it
Would like to be able to set colors of headings and such, different font
Would like to know what a programmer should know to become a good at
Would like to make anapplication in Java that will not automatically parse parameters used

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.