Re: [fw-general] dojo programmatic declaration not working

2008-09-22 Thread ignite7

Thanks a lot Mat, 

Downloading it

thanks a lot



Matthew Weier O'Phinney-3 wrote:
> 
> -- ignite7 <[EMAIL PROTECTED]> wrote
> (on Saturday, 20 September 2008, 10:59 PM -0700):
>> is it possible for us to get the source code of the preview you've 
>> provided here, http://framework.zend.com/demo_dojo/preview ?
>> 
>> it will be very helpful to us to better understanding the integration
> 
> For the most part, it's in the example in the 'Advanced' section of the
> Zend_Dojo documentation. The only difference is integration with the
> controller, which is detailed elsewhere in the manual.
> 
> I will try and make a tarball to better demonstrate it, however. In the
> meantime, you can also checkout the pastebin demo I created:
> 
> http://weierophinney.net/matthew/uploads/pastebin-1.0.0.tar.gz
> 
> which shows a large variety of features.
> 
> 
>> Matthew Weier O'Phinney-3 wrote:
>> > 
>> > -- Laurent Mestrallet <[EMAIL PROTECTED]> wrote
>> > (on Saturday, 20 September 2008, 08:21 PM +0200):
>> >> 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)?
>> > 
>> > The reason that was done was because I wanted to use BorderContainer
>> for
>> > the master layout. For that to work, I needed to create the
>> > BorderContainer and its content *prior* to echoing the dojo() view
>> > helper. Thus, I call:
>> > 
>> > $content = $this->render('_layout.phtml');
>> > 
>> > at the top of layout.phtml, which allows this to work.
> 
> -- 
> 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-tp19577345p19612008.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] dojo programmatic declaration not working

2008-09-22 Thread Matthew Weier O'Phinney
-- ignite7 <[EMAIL PROTECTED]> wrote
(on Saturday, 20 September 2008, 10:59 PM -0700):
> is it possible for us to get the source code of the preview you've 
> provided here, http://framework.zend.com/demo_dojo/preview ?
> 
> it will be very helpful to us to better understanding the integration

For the most part, it's in the example in the 'Advanced' section of the
Zend_Dojo documentation. The only difference is integration with the
controller, which is detailed elsewhere in the manual.

I will try and make a tarball to better demonstrate it, however. In the
meantime, you can also checkout the pastebin demo I created:

http://weierophinney.net/matthew/uploads/pastebin-1.0.0.tar.gz

which shows a large variety of features.


> Matthew Weier O'Phinney-3 wrote:
> > 
> > -- Laurent Mestrallet <[EMAIL PROTECTED]> wrote
> > (on Saturday, 20 September 2008, 08:21 PM +0200):
> >> 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)?
> > 
> > The reason that was done was because I wanted to use BorderContainer for
> > the master layout. For that to work, I needed to create the
> > BorderContainer and its content *prior* to echoing the dojo() view
> > helper. Thus, I call:
> > 
> > $content = $this->render('_layout.phtml');
> > 
> > at the top of layout.phtml, which allows this to work.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] dojo programmatic declaration not working

2008-09-20 Thread ignite7

Dear Mat, 

is it possible for us to get the source code of the preview you've 
provided here, http://framework.zend.com/demo_dojo/preview ?

it will be very helpful to us to better understanding the integration

thanks a lot before



Matthew Weier O'Phinney-3 wrote:
> 
> -- Laurent Mestrallet <[EMAIL PROTECTED]> wrote
> (on Saturday, 20 September 2008, 08:21 PM +0200):
>> 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)?
> 
> The reason that was done was because I wanted to use BorderContainer for
> the master layout. For that to work, I needed to create the
> BorderContainer and its content *prior* to echoing the dojo() view
> helper. Thus, I call:
> 
> $content = $this->render('_layout.phtml');
> 
> at the top of layout.phtml, which allows this to work.
> 
> 
> -- 
> 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-tp19577345p19591875.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] dojo programmatic declaration not working

2008-09-20 Thread Matthew Weier O'Phinney
-- Laurent Mestrallet <[EMAIL PROTECTED]> wrote
(on Saturday, 20 September 2008, 08:21 PM +0200):
> 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)?

The reason that was done was because I wanted to use BorderContainer for
the master layout. For that to work, I needed to create the
BorderContainer and its content *prior* to echoing the dojo() view
helper. Thus, I call:

$content = $this->render('_layout.phtml');

at the top of layout.phtml, which allows this to work.


-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] dojo programmatic declaration not working

2008-09-20 Thread Laurent Mestrallet
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-:


borderContainer()->captureStart('masterLayout',array('design'
=> 'headline')) ?>
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  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
> >
> > 
> >
> >> The same also happen in form,
> >
> > 
> >
> >> 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:
> >
> > 
> > 
> > Dojo example
> > dojo() ?>
> > 
> > 
> > layout()->content ?>
> > 
> > 
> >
> > 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.
>


Re: [fw-general] dojo programmatic declaration not working

2008-09-20 Thread ignite7

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
> 
>  
> 
>> The same also happen in form, 
> 
>  
> 
>> 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:
> 
> 
> 
> Dojo example
> dojo() ?>
> 
> 
> layout()->content ?>
> 
> 
> 
> 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.



Re: [fw-general] dojo programmatic declaration not working

2008-09-19 Thread Matthew Weier O'Phinney
-- 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

 

> The same also happen in form, 

 

> 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:



Dojo example
dojo() ?>


layout()->content ?>



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/


[fw-general] dojo programmatic declaration not working

2008-09-19 Thread ignite7

can anyone help me, when I try to use programmatic declaration of dijit, it
won't work unless I specify which dijit it belongs

NOT WORKING CODE

numberSpinner(
'test',
5,
array(
  'min' => -10,
  'max' => 10,
  'places' => 2
),
array(
  'maxlenth' => 3
)
);
?>

WORKING CODE

numberSpinner(
'test',
5,
array(
  'min' => -10,
  'max' => 10,
  'places' => 2
),
array(
  'maxlenth' => 3,
  'dojoType' => 'dijit.form.NumberSpinner'
)
);
?>

The same also happen in form, 

NOT WORKING CODE

$form->addElement(
  'Button',
  'foo',
  array(
'label' => 'Button Label'
  )
 );

WORKING CODE

$form->addElement(
  'Button',
  'foo',
  array(
'label' => 'Button Label',
'dojoType' => 'dijit.form.Button'
  )
);

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


Thank you
-- 
View this message in context: 
http://www.nabble.com/dojo-programmatic-declaration-not-working-tp19577345p19577345.html
Sent from the Zend Framework mailing list archive at Nabble.com.