Re: Is it possible to create a fileController for URL's like "mycms/files/ ..."?

2008-02-24 Thread smacks

Thanks guys! You helped me a lot.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: Is it possible to create a fileController for URL's like "mycms/files/ ..."?

2008-02-24 Thread AD7six



On Feb 24, 8:27 pm, smacks <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm currently working on a content management system (yah, I know ...)
> and I would need to have the following URL's linked to a
> "fileController", because I would need the users to be able to manage
> the files on their webserver.
>
> URL's:
> "mycms/files" (linked to action->index in fileController)
> "mycms/files/edit/1" (linked to action->edit in fileController)
> etc ...
>
> The problem is, whenever I goto "mycms/files" I get redirected to
> "mycms/app/webroot/files/".


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d  <--- Delete this line
from your webroot .htaccess file.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


hth,

AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Re: Is it possible to create a fileController for URL's like "mycms/files/ ..."?

2008-02-24 Thread Pablo Viojo
This happens because a webroot/files folder exists. Try deleting the folder.

Regards,

-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

On Sun, Feb 24, 2008 at 4:27 PM, smacks <[EMAIL PROTECTED]> wrote:

>
> Hi guys,
>
> I'm currently working on a content management system (yah, I know ...)
> and I would need to have the following URL's linked to a
> "fileController", because I would need the users to be able to manage
> the files on their webserver.
>
> URL's:
> "mycms/files" (linked to action->index in fileController)
> "mycms/files/edit/1" (linked to action->edit in fileController)
> etc ...
>
> The problem is, whenever I goto "mycms/files" I get redirected to
> "mycms/app/webroot/files/".
> I tried to edit routes.php and set things manually, but it doesn't
> seem to work?
>
> Any help appreciated. Please!
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---



Is it possible to create a fileController for URL's like "mycms/files/ ..."?

2008-02-24 Thread smacks

Hi guys,

I'm currently working on a content management system (yah, I know ...)
and I would need to have the following URL's linked to a
"fileController", because I would need the users to be able to manage
the files on their webserver.

URL's:
"mycms/files" (linked to action->index in fileController)
"mycms/files/edit/1" (linked to action->edit in fileController)
etc ...

The problem is, whenever I goto "mycms/files" I get redirected to
"mycms/app/webroot/files/".
I tried to edit routes.php and set things manually, but it doesn't
seem to work?

Any help appreciated. Please!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~--~~~~--~~--~--~---