Well that is pretty clear in the docs, since you make the statement "it is
important to remember to pass the theme class". Here's my whole layout (I
don't have the button on a form yet, is that necessary now?, because it
wasn't before though):

<?php
echo '<?xml version="1.0" encoding="UTF-8" ?>';
echo $this->docType()
?>

<html>

    <head>
        <?php
        echo $this->headTitle();
        echo $this->headMeta();
        echo $this->headLink();
        echo $this->headStyle();
        ?>
            <?php if ($this->dojo()->isEnabled()):
              $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js')
              ->addStyleSheetModule('dijit.themes.tundra');
              echo $this->dojo();
           endif;
        ?>
        <?php
            echo $this->headScript();
         ?>
    </head>

    <body class="tundra">
        <h1><?php echo $this->placeholder('title') ?></h1>
        <?php echo $this->layout()->content ?>

        <br />
        <br />
    </body>

</html>


2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:

> -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> (on Wednesday, 23 July 2008, 01:02 PM -0500):
> > Ok, changing that makes the button appear :-) but not in the tundra theme
> way
> > :-(
>
> Did you place a 'class="tundra"' on a container that has the dijits?
>
> Typically, I place it in my <body> tag, just to be safe:
>
>    <body class="tundra">
>
> but the only requirement for tundra to be applied is that it is on an
> element that contains dijits:
>
>    <div class="tundra">
>        <?= $this->form ?>
>    </div>
>
> Try that out.
>
>
> > I have the following code for the button:
> >
> > <?php  $this->dojo()->enable()
> >              ->setDjConfigOption('parseOnLoad', true)
> >              ->requireModule('dijit.form.Button');
> >       ?>
> >
> > <button dojoType="dijit.form.Button" id="helloButton">
> >         Hello World!
> >         <script type="dojo/method" event="onClick">
> >            alert('You pressed the button');
> >         </script>
> >     </button>
> >
> > 2008/7/23 Matthew Weier O'Phinney <[EMAIL PROTECTED]>:
> >
> >     -- Christian Sanchez <[EMAIL PROTECTED]> wrote
> >     (on Wednesday, 23 July 2008, 12:37 PM -0500):
> >     > Hi guys!
> >     > Well I'm trying to implement the Hello world example with the
> ZF_1.6_RC1,
> >     after
> >     > an hour of frustration my guess is that, since I'm not using an
> exact
> >     address
> >     > to send the localpath
> >     >
> >     > $this->dojo()->setLocalPath('../html/scripts/dojo_f/dojo/dojo.js')
> >
> >     LocalPath should be the path relative to the document root -- i.e.,
> the
> >     path that would occur in your script's href tag:
> >
> >        $this->dojo()->setLocalPath('/scripts/dojo_f/dojo/dojo.js');
> >
> >     This should appropriately set the rest of it.
> >
> >     Let me know your results; regardless, I'll try to make this clearer
> in
> >     the manual.
> >
> >     >               ->addStyleSheetModule('dijit.themes.tundra');
> >     >               echo $this->dojo();
> >     >
> >     > the error is in the import that tries to get the library from the
> same
> >     address:
> >     >
> >     > @import "../html/scripts/dojo_f/dijit/themes/tundra/tundra.css";
> >     >
> >     > When it should be:
> >     >
> >     > @import "
> http://localhost/dev/example/html/scripts/dojo_f/dijit/themes/
> >     tundra/
> >     > tundra.css";
> >     >
> >     > Maybe I'm wrong but it still does not work :'-(
> >     >
> >     > --
> >     > Christian S nchez A.
> >
> >     --
> >     Matthew Weier O'Phinney
> >     Software Architect       | [EMAIL PROTECTED]
> >     Zend Framework           | http://framework.zend.com/
> >
> >
> >
> >
> > --
> > Christian S nchez A.
>
> --
> Matthew Weier O'Phinney
> Software Architect       | [EMAIL PROTECTED]
> Zend Framework           | http://framework.zend.com/
>



-- 
Christian Sánchez A.

Reply via email to