Re: Can't share elements between apps

2009-04-29 Thread Ernesto

Ok. found the fault.

i forgot the trailing directory separator in Bootstrap.php's paths :)

thx for the help

On 24 Apr, 08:08, Ernesto  wrote:
> 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  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  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  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  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
-~--~~~~--~~--~--~---



Re: Can't share elements between apps

2009-04-23 Thread Ernesto

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



Re: Can't share elements between apps

2009-04-23 Thread John Andersen

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



Re: Can't share elements between apps

2009-04-23 Thread Ernesto

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



Re: Can't share elements between apps

2009-04-22 Thread John Andersen

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



Can't share elements between apps

2009-04-22 Thread Ernesto

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