I am using Cake 1.18. I am reading the source for view

I have a model, view, and controller of InterestGroup.

take a look at app/views/interest_groups/index.thtml

it loads everything and stops at the first render statement. it does
not render the 2nd render statement. is there a reason for this?

<pre>
<div id="interest_groups_content" class="content" style="margin:10px;
position:relative;">
        <h1>Interest Groups</h1>

        <div id="interest_groups_nav" style="position:absolute; top:0px;
right:0px;">
                <? $this->render('interest_groups_nav', 'ajax'); ?>
        </div>

        <div id="interest_groups_viewer" class="viewer">
                <? $this->render('interest_groups_viewer', 'ajax') ?>
        </div>
</div>
</pre>

if i change this to (this works):

<pre>
<div id="interest_groups_content" class="content" style="margin:10px;
position:relative;">
        <h1>Interest Groups</h1>

        <div id="interest_groups_nav" style="position:absolute; top:0px;
right:0px;">
                <? include('interest_groups_nav.thtml'); ?>
        </div>

        <div id="interest_groups_viewer" class="viewer">
                <? $this->render('interest_groups_viewer', 'ajax') ?>
        </div>
</div>
</pre>

i found this line in the source view.php. Is it because of this?
<pre>
                if (isset($this->_hasRendered) && $this->_hasRendered) {
                        return true;
                } else {
                        $this->_hasRendered = false;
                }
</pre>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to