Hi,
We have three actions that we request and set in a variable for the
view and layout to have access.
//make the profile navigation menu available to the layout
$divId = 'ajax_user_wiki_page';
$this->set('profile_navigation_menu',
$this->requestAction('/wiki_pages/wikiSiteNavigation/' .
$divId . '/' . $wikiPageId,
array('return'=>true)
)
);
// Make the top navigation menu available to the layout
$this->set('top_navigation_menu',
$this->requestAction('/navigations/top/'.
TN_SEARCH,
array('return'=>false))
);
// Make the left tools menu available to the layout
$this->set('left_tools_menu',
$this->requestAction(
'/navigations/leftTools/' . PT_ORG_PROFILE,
array('return'=>false))
);
The layout that we use expects those variables. We can see that each
action is indeed working. However the html markup that each one returns
is not in the expected order. For instance, the left_tools_menu does
not show up where we specify in our layout. Here is our layout code:
...
<div id="leftColumn_3">
<?php if(isset($left_tools_menu)): ?>
<?php echo($left_tools_menu); ?>
<?php endif ?><br /><br />
...
Now here is the generated html markup
...
<div class="leftMenu">
<ul>
<li><a href="#"><span>Tool 1</span></a></li>
<li><a href="#"><span>Tool 2</span></a></li>
<li><a href="#"><span>Tool 3</span></a></li>
</ul>
</div>
...
<div id="leftColumn_3">
...
As you can see the left menu is showing up outside of the leftColumn_3
div even though in the layout it is displayed inside of the div tag.
We have checked to see if that div tag existed elsewhere but it does
not. Does anyone have any ideas as to why this would be happening.
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---