cricket,

Thanks for your advice, this is indeed where I need to make my changes. However, I am still having an issue. I am using Sparkplug for user and permissions management. How do I reference an action in a controller in a plugin for this purpose?

geoff

On 11/8/2010 3:18 PM, cricket wrote:
On Mon, Nov 8, 2010 at 5:14 PM, Beavis de Milo<wig...@gmail.com>  wrote:
Quick question that sort of bridges Apache and Cakephp.

I have my production set established, but I am having problems getting
the "\" directory to point to my application.
I presume you mean the '/' *request* points to your app.

  If I access xxx.com/
dashboards then my application correctly either accesses this
controller or bounces me to my login page.  How do I set up either
Cake or Apache so that when someone accesses xxx.com they are directed
to xxx.com/dashboards ?
There are different options, depending on what you really want,
because Apache's and Cake's configs handle different things. Apache's
DOCUMENT_ROOT is the absolute path for the top level of your
publicly-accessible directory tree. eg. requests for '/' will point to
it. If you have access to your httpd.conf or virtual host config, this
should be set to the absolute path to your webroot dir. If you don't
have permission to edit this file, then your app dir is most likely
sitting directly inside DOCUMENT_ROOT, in which case you'll be relying
on .htaccess to instruct Apache (via the mod_rewrite rules) to point
requests for '/' down a couple of directories to
app/webroot/index.php.

What you're probably after, though, is configuring a route, eg:

Router::connect(
     '/',
     array('controller' =>  'dashboards', 'action' =>  'index')
);

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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