Perhaps I will.

This works for now:

$controllerPaths = array(CAKE_CORE_INCLUDE_PATH . DS . 'shares' . DS .
'controllers' . DS);

if(!file_exists(ROOT . DS . APP_DIR . DS . 'app_controller.php')) {
        $controllerPaths[] = CAKE_CORE_INCLUDE_PATH . DS . 'shares' . DS .
'app_controller' . DS;
}

-Corie

On Jun 16, 5:19 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 16, 2008 at 1:54 PM, Corie <[EMAIL PROTECTED]> wrote:
>
> > This is precisely what I've done. I just can't get the app_controller
> > shared if I ever want to use a different local app_controller.
>
> > Could I do something like:
>
> > if( file_exists( APP_DIR . DS . 'app_controller.php') ) {
> >    use it
> > } else {
> >    use the shared one
> > }
>
> > Would it just need to be included?
>
> I think you should open a ticket on trac.cakephp.org  it seems that
> this is not the expected behavior but maybe they need to just clarify
> the documentation a little.  I wouldn't think you need to do something
> like that.
>
> Sam D
>
>
>
> > -Corie
>
> > On Jun 16, 4:49 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> >> On Mon, Jun 16, 2008 at 4:45 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> >> > It is documented in the manual
> >> >http://manual.cakephp.org/view/32/installation#advanced-installation-35
>
> >> Thanks for pointing that out, Sam.
>
> >> --
> >> Chris Hartjes
> >> Internet Loudmouth
> >> Motto for 2008: "Moving from herding elephants to handling snakes..."
> >> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to