-- Armand Brahaj <[EMAIL PROTECTED]> wrote
(on Tuesday, 30 September 2008, 08:56 PM +0200):
> Trying to setup a simple TabContainer with Dojo, (ZF VERSION = '1.6.1')
> I followed the tutorial from Matthew (the webinar exactly).
Umm... no, you didn't. You need to echo the dojo() view helper in your
layout script's <head> area. ;)
> My script view is like:
> <? $this->dojo()->enable() ?>
> <? $this->tabContainer()->captureStart('pastebin', array('class' =>
> 'paste-tab')) ?>
> <?= $this->contentPane('active', 'SOME TEXT', array(
> 'title' => 'Active Pastes',
> 'class' => 'tab',
> 'href' => $this->url(
> array(
> 'controller' => 'paste',
> 'action' => 'active',
> 'format' => 'ajax',
> ),
> 'default',
> true
> ),
> 'parseOnLoad' => true)) ?>
> <?= $this->contentPane('active2', 'TEXT HERE', array(
> 'title' => 'Active Pastes2',
> 'class' => 'tab',
> 'href' => $this->url(
> array(
> 'controller' => 'paste',
> 'action' => 'active',
> 'format' => 'ajax',
> ),
> 'default',
> true
> ),
> 'parseOnLoad' => true)) ?>
> <?= $this->tabContainer()->captureEnd('pastebin') ?>
>
> but the Generated HTML is not the expected one:
>
> <div class="span-18 last" style="padding-top:25px;padding-left:10px;"
> align="center">
> <div id="pastebin"><div id="active">SOME TEXT</div>
> <div id="active2">TEXT HERE</div>
> </div>
>
> Any idea what should be wrong?
>
> Thank you
> Armand
>
>
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/