Dojo library Layout

View: New views
5 Messages — Rating Filter:   Alert me  

Dojo library Layout

by Christian Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was wondering if there is a best practice for the layout considering the usage of the recent Zend_Dojo... I know it must be under the html folder, but how do you recommend it should be implemented?

>application
>html
>images
>scripts
>js
>dojo
>styles
>library

Or maybe?

>application
>html
>images
>scripts
>dojo
>styles
>library

Any suggestions?
--
Christian Sánchez A.

Re: Dojo library Layout

by Matthew Weier O'Phinney-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-- Christian Sanchez <csanchez84@...> wrote
(on Friday, 18 July 2008, 10:12 AM -0500):

> I was wondering if there is a best practice for the layout considering the
> usage of the recent Zend_Dojo... I know it must be under the html folder, but
> how do you recommend it should be implemented?
>
> >application
> >html
> >images
> >scripts
> >js
> >dojo
> >styles
> >library
>
> Or maybe?
>
> >application
> >html
> >images
> >scripts
> >dojo
> >styles
> >library
>
> Any suggestions?

Dojo is javascript, so it should be under public/js/

--
Matthew Weier O'Phinney
Software Architect       | matthew@...
Zend Framework           | http://framework.zend.com/

Re: Dojo library Layout

by Todd Wolaver-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I currently use a layout similar to your second option and I keep my  
Dojo modules in their own directory outside of the dojo source.

- application
- bootstrap
- htdocs
      - images
      - scripts
             - dojo
                   - dijit
                   - dojo
                   - dojox
                   - util
             - mydojo
- library
- tmp


On Jul 18, 2008, at 10:12 AM, Christian Sanchez wrote:

> I was wondering if there is a best practice for the layout  
> considering the usage of the recent Zend_Dojo... I know it must be  
> under the html folder, but how do you recommend it should be  
> implemented?
>
> >application
> >html
> >images
> >scripts
> >js
> >dojo
> >styles
> >library
>
> Or maybe?
>
> >application
> >html
> >images
> >scripts
> >dojo
> >styles
> >library
>
> Any suggestions?
> --
> Christian Sánchez A.


Re: Dojo library Layout

by Christian Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2008/7/18 Matthew Weier O'Phinney <matthew@...>:
-- Christian Sanchez <csanchez84@...> wrote
(on Friday, 18 July 2008, 10:12 AM -0500):
> I was wondering if there is a best practice for the layout considering the
> usage of the recent Zend_Dojo... I know it must be under the html folder, but
> how do you recommend it should be implemented?
>
> >application
> >html
> >images
> >scripts
> >js
> >dojo
> >styles
> >library
>
> Or maybe?
>
> >application
> >html
> >images
> >scripts
> >dojo
> >styles
> >library
>
> Any suggestions?

Dojo is javascript, so it should be under public/js/

--
Matthew Weier O'Phinney
Software Architect       | matthew@...
Zend Framework           | http://framework.zend.com/

Just to make things clear, you say it should be:

>application
>html
>images
>scripts
>styles
>library
>js
>dojo

--
Christian Sánchez A.

Re: Dojo library Layout

by Todd Wolaver-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

public/js would be a js folder under your server's document root (html in your case). 

You can in reality put the dojo source anywhere under the document root (pulbic folder) and set the location in the dojo view helper.

i.e.

$view->dojo()->setLocalPath('/js/dojo/dojo.js')
             ->addStyleSheetModule('dijit.themes.tundra');



On Jul 18, 2008, at 11:45 AM, Christian Sanchez wrote:



2008/7/18 Matthew Weier O'Phinney <matthew@...>:
-- Christian Sanchez <csanchez84@...> wrote
(on Friday, 18 July 2008, 10:12 AM -0500):
> I was wondering if there is a best practice for the layout considering the
> usage of the recent Zend_Dojo... I know it must be under the html folder, but
> how do you recommend it should be implemented?
>
> >application
> >html
> >images
> >scripts
> >js
> >dojo
> >styles
> >library
>
> Or maybe?
>
> >application
> >html
> >images
> >scripts
> >dojo
> >styles
> >library
>
> Any suggestions?

Dojo is javascript, so it should be under public/js/

--
Matthew Weier O'Phinney
Software Architect       | matthew@...
Zend Framework           | http://framework.zend.com/

Just to make things clear, you say it should be:

>application
>html
>images
>scripts
>styles
>library
>js
>dojo

--
Christian Sánchez A.