hello!
coming across this, i'm wondering i'f that's why i cannot use helper
directly within my template.phtml file.
here's a part of the file -only testing Zend documentation examples-:
<body class="soria">
<?= $this->borderContainer()->captureStart('masterLayout',array('design'
=> 'headline')) ?>
<?php echo $this->contentPane(
'menuPane',
'This is the menu pane',
array('region' => 'top'),
array('style' => 'background-color: darkblue;')
);
echo $this->contentPane(
'navPane',
'This is the navigation pane',
array('region' => 'left'),
array('style' => 'width: 200px; background-color: lightblue;')
);
echo $this->contentPane(
'mainPane',
'This is the main content pane area',
array('region' => 'center'),
array('style' => 'background-color: white;')
);
that makes some html code but nothing added to $this->dojo() and no
dojoType in <div> tags.
what you stated (The dojo integration is intended to work *with*
Zend_Layout or some other Composite/Two Step View solution) is the
reason why in your pastebin example, there is a 2 level layout system
(layout.phtml that include _layout.phtml)?
-Laurent
2008/9/20 ignite7 <[EMAIL PROTECTED]>
>
> Whooaaa, it's work!!! Thanks a lot Mat,
>
> now I can proceed :) Thanks again
>
>
>
> Matthew Weier O'Phinney-3 wrote:
> >
> > -- ignite7 <[EMAIL PROTECTED]> wrote
> > (on Friday, 19 September 2008, 11:25 AM -0700):
> >> can anyone help me, when I try to use programmatic declaration of dijit,
> >> it
> >> won't work unless I specify which dijit it belongs
> >
> > <snip>
> >
> >> The same also happen in form,
> >
> > <snip>
> >
> >> And for the code working, I need to explicitly "include" the module I
> >> need
> >>
> >> $this->dojo()->setDjConfigOption('parseOnLoad', true)
> >> ->requireModule('dijit.form.NumberSpinner')
> >> ->requireModule('dijit.form.Button');
> >>
> >>
> >> Please help, because in the Zend framework's manual, I don't need to
> >> include the dojoType parameter
> >
> > The dojo integration is intended to work *with* Zend_Layout or some
> > other Composite/Two Step View solution. In other words, you need to echo
> > the dojo() view helper placeholder in your layout script:
> >
> > <html>
> > <head>
> > <title>Dojo example</title>
> > <?= $this->dojo() ?>
> > </head>
> > <body>
> > <?= $this->layout()->content ?>
> > </body>
> > </html>
> >
> > Rendering the dojo() view helper any time prior to rendering your
> > elements -- or not rendering it at all -- will result in none of the
> > required javascript or CSS includes being performed.
> >
> > --
> > Matthew Weier O'Phinney
> > Software Architect | [EMAIL PROTECTED]
> > Zend Framework | http://framework.zend.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/dojo-programmatic-declaration-not-working-tp19577345p19587473.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>