no it doesn't....

i'll re-check the file... maybe i mistyped something

thx for the help

On 23 Apr, 14:26, John Andersen <j.andersen...@gmail.com> wrote:
> I just checked the source code, and CakePHP checkes for elements under
> each specified path, in the elements directory, so it should work, if
> you specify the view path to for example: "\mycommonparts\views" and
> all my common elements are placed in "\mycommonparts\views\elements"
> then it should work!
>
> Check out the source code at:
> "http://api.cakephp.org/view_source/view/#line-331";
>
> Enjoy,
>    John
>
> On Apr 23, 2:56 pm, Ernesto <e.fanz...@gmail.com> wrote:
>
>
>
> > Hi John. Thx for the response.
>
> > i already checked this cookbook page but... there's no $elementPath :(
>
> > so i guessed "maybe cake will search for a "elements" subdir in
> > viewPath, as usually does with standard apps"...
>
> > but i had no luck T_T
>
> > PS: sry for my ultra-bad english lol
>
> > On 23 Apr, 08:46, John Andersen <j.andersen...@gmail.com> wrote:
>
> > > Hi Ernesto
>
> > > Try look at this "http://book.cakephp.org/view/36/Additional-Class-
> > > Paths", maybe it may solve your issue :)
>
> > > Enjoy,
> > >    John
>
> > > On Apr 22, 5:13 pm, Ernesto <e.fanz...@gmail.com> wrote:
>
> > > > Hello.
>
> > > > view sharing works, but not elements sharing
>
> > > > here's a snippet from my bootstrap.php
>
> > > > if (!defined('SHARED_ITEMS_FOLDER')) {
> > > >         define('SHARED_ITEMS_FOLDER',
> > > > CAKE_CORE_INCLUDE_PATH .'\shared_items');
>
> > > > }
>
> > > > $viewPaths = array(SHARED_ITEMS_FOLDER .'\views');
>
> > > > My webroot dir tree is this:
>
> > > > WebRoot
> > > >         cake
> > > >         apps
> > > >         shared_items
> > > >                 helpers
> > > >                 views
> > > >                         elements
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to