Re: CakePHP In A Subdirectory?

2013-09-23 Thread Sisi002

I just had have the same problem of ** inVinCable, and i fix it with this 
solution, of the Mauricio Morales:


El martes, 27 de enero de 2009 14:57:34 UTC-5, Mauricio Morales escribió:
>
> I've gotten the same problem when I put the entire application into a 
> directory that contain the words: 
>
> "app" 
>
> or 
>
> "cake" 
>
> If your directory's real name is "myapp" try changing it for 
> "mysoftware" and reload again, there is no necessary to 
> alter .htaccess files. 
>
> Hope help. 
>
> On Jan 26, 5:05 am, inVINCable  wrote: 
> > Hey all, 
> > 
> > Very simply question but cannot seem to find the answer. I have the 
> > directory structure and everything in tact in the normal way. However, 
> > on my server I put the entire structure in the /myapp folder in the 
> > document root. 
> > 
> > Now, everything is all mest up and there is no CSS and files are 
> > missing and such. Surely cake has a simple variable to reflect these 
> > changes? Any advice? I have already looked at the book and the bakery 
> > and have tried things but they have not worked, such as messing with 
> > the variables in the index.php file. 
> > 
> > I am using version 1.2 
> > 
> > Thank you for any advice/pointers. 
> > 
> > Regards

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CakePHP In A Subdirectory?

2009-01-27 Thread Mauricio Morales

I've gotten the same problem when I put the entire application into a
directory that contain the words:

"app"

or

"cake"

If your directory's real name is "myapp" try changing it for
"mysoftware" and reload again, there is no necessary to
alter .htaccess files.

Hope help.

On Jan 26, 5:05 am, inVINCable  wrote:
> Hey all,
>
> Very simply question but cannot seem to find the answer. I have the
> directory structure and everything in tact in the normal way. However,
> on my server I put the entire structure in the /myapp folder in the
> document root.
>
> Now, everything is all mest up and there is no CSS and files are
> missing and such. Surely cake has a simple variable to reflect these
> changes? Any advice? I have already looked at the book and the bakery
> and have tried things but they have not worked, such as messing with
> the variables in the index.php file.
>
> I am using version 1.2
>
> Thank you for any advice/pointers.
>
> Regards
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-27 Thread RichardAtHome

Did you reboot the web server yet. This sounds exactly like the issue
I was having.

Also, check your web server error log files just in case.

On Jan 27, 7:56 am, leo  wrote:
> > I tried doing phpinfo() from the index.php file and nothing was
> > displayed
>
> Doesn't this ring any alarm bells?
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread leo

> I tried doing phpinfo() from the index.php file and nothing was
> displayed

Doesn't this ring any alarm bells?

--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread Paolo Stancato

Sometimes I have problems because I forget to set AllowOverride to All
in vhost configuration... maybe it can help. Sometimes s still a pain
to prepare the enviroment to start developing :S

Cheers

2009/1/26 inVINCable :
>
> RoVo:
>
> Tested your solution, still no go. This time, no 500 error, but no CSS
> or anything :/
>
> I tried doing phpinfo() from the index.php file and nothing was
> displayed and on my localserver i checked and mod_rewrite is on.
>
>
>
> On Jan 26, 6:35 am, RoVo  wrote:
>> Hi inVINCable,
>>
>> I have tested my suggestion - see above.
>> This is the htaccess of the top-level. The others are untouched.
>>
>> Hope that helps
>> RoVo
> >
>

--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable

RoVo:

Tested your solution, still no go. This time, no 500 error, but no CSS
or anything :/

I tried doing phpinfo() from the index.php file and nothing was
displayed and on my localserver i checked and mod_rewrite is on.



On Jan 26, 6:35 am, RoVo  wrote:
> Hi inVINCable,
>
> I have tested my suggestion - see above.
> This is the htaccess of the top-level. The others are untouched.
>
> Hope that helps
> RoVo
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread RoVo

Hi inVINCable,

I have tested my suggestion - see above.
This is the htaccess of the top-level. The others are untouched.

Hope that helps
RoVo
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread leo

Are you sure mod_rewrite is enabled? check by creating a phpinfo file
and accessing it through your browser, then do a find "rewrite".
If it is enabled, check in the httpd.conf file that allow_override for
that directory spec is 'all'.

I have only ever changed the top level .htaccess file.


--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread Chad Casselman
I have always got the desired results with only changing the top level one.

Chad



On Mon, Jan 26, 2009 at 9:21 AM, inVINCable wrote:

>
> Ok, I notice there are 3 .htacess files included in a cake release.
> One in the top-level directory, one in app and one in app/webroot, so
> they should all look like this:
>
> 
>RewriteEngine on
>RewriteBase /myapp
> RewriteRule ^$ app/webroot/[L]
>RewriteRule (.*) app/webroot/$1 [L]
> 
>
> or just one of them?
>
> On Jan 26, 6:09 am, RichardAtHome  wrote:
> > Might be worth re-starting the (web) server. It fixed a 500 error I
> > was getting a while back. Been fine every since (even after uploading
> > source updates).
> >
> > On Jan 26, 1:38 pm, inVINCable  wrote:
> >
> > > Hey,
> >
> > > Ok, I found both of the .htacess files and added "RewriteBase /myapp"
> > > so my .htacess file looks like:
> >
> > > 
> > > RewriteEngine on
> > > RewriteBase /myapp
> > > RewriteRule^$webroot/[L]
> > > RewriteRule(.*) webroot/$1[L]
> > >  
> >
> > > I also deleted the cache (just the files) and now I am getting a 500
> > > Internal Server Error. I have tried this both on my local machine and
> > > a live server and the same thing happens. Anyone know what I might be
> > > doing wrong?
> >
> > > On Jan 25, 9:49 pm, Paolo Stancato  wrote:
> >
> > > > Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> > > > into mod_rewrite section.
> >
> > > > Regards
> >
> > > > 2009/1/26 inVINCable :
> >
> > > > > Hey all,
> >
> > > > > Very simply question but cannot seem to find the answer. I have the
> > > > > directory structure and everything in tact in the normal way.
> However,
> > > > > on my server I put the entire structure in the /myapp folder in the
> > > > > document root.
> >
> > > > > Now, everything is all mest up and there is no CSS and files are
> > > > > missing and such. Surely cake has a simple variable to reflect
> these
> > > > > changes? Any advice? I have already looked at the book and the
> bakery
> > > > > and have tried things but they have not worked, such as messing
> with
> > > > > the variables in the index.php file.
> >
> > > > > I am using version 1.2
> >
> > > > > Thank you for any advice/pointers.
> >
> > > > > Regards
> >
>

--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable

Ok, I notice there are 3 .htacess files included in a cake release.
One in the top-level directory, one in app and one in app/webroot, so
they should all look like this:


RewriteEngine on
RewriteBase /myapp
RewriteRule ^$ app/webroot/[L]
RewriteRule (.*) app/webroot/$1 [L]


or just one of them?

On Jan 26, 6:09 am, RichardAtHome  wrote:
> Might be worth re-starting the (web) server. It fixed a 500 error I
> was getting a while back. Been fine every since (even after uploading
> source updates).
>
> On Jan 26, 1:38 pm, inVINCable  wrote:
>
> > Hey,
>
> > Ok, I found both of the .htacess files and added "RewriteBase /myapp"
> > so my .htacess file looks like:
>
> > 
> >     RewriteEngine on
> >     RewriteBase /myapp
> >     RewriteRule    ^$    webroot/    [L]
> >     RewriteRule    (.*) webroot/$1    [L]
> >  
>
> > I also deleted the cache (just the files) and now I am getting a 500
> > Internal Server Error. I have tried this both on my local machine and
> > a live server and the same thing happens. Anyone know what I might be
> > doing wrong?
>
> > On Jan 25, 9:49 pm, Paolo Stancato  wrote:
>
> > > Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> > > into mod_rewrite section.
>
> > > Regards
>
> > > 2009/1/26 inVINCable :
>
> > > > Hey all,
>
> > > > Very simply question but cannot seem to find the answer. I have the
> > > > directory structure and everything in tact in the normal way. However,
> > > > on my server I put the entire structure in the /myapp folder in the
> > > > document root.
>
> > > > Now, everything is all mest up and there is no CSS and files are
> > > > missing and such. Surely cake has a simple variable to reflect these
> > > > changes? Any advice? I have already looked at the book and the bakery
> > > > and have tried things but they have not worked, such as messing with
> > > > the variables in the index.php file.
>
> > > > I am using version 1.2
>
> > > > Thank you for any advice/pointers.
>
> > > > Regards
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable

Ok, going to go ahead and fix some things. I notice there a 3 .htacess
files included in a cake release. One in the top-level directory, one
in the /app folder, and one in app/webroot. Do I need to change all 3
of these?



On Jan 26, 6:09 am, RichardAtHome  wrote:
> Might be worth re-starting the (web) server. It fixed a 500 error I
> was getting a while back. Been fine every since (even after uploading
> source updates).
>
> On Jan 26, 1:38 pm, inVINCable  wrote:
>
> > Hey,
>
> > Ok, I found both of the .htacess files and added "RewriteBase /myapp"
> > so my .htacess file looks like:
>
> > 
> >     RewriteEngine on
> >     RewriteBase /myapp
> >     RewriteRule    ^$    webroot/    [L]
> >     RewriteRule    (.*) webroot/$1    [L]
> >  
>
> > I also deleted the cache (just the files) and now I am getting a 500
> > Internal Server Error. I have tried this both on my local machine and
> > a live server and the same thing happens. Anyone know what I might be
> > doing wrong?
>
> > On Jan 25, 9:49 pm, Paolo Stancato  wrote:
>
> > > Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> > > into mod_rewrite section.
>
> > > Regards
>
> > > 2009/1/26 inVINCable :
>
> > > > Hey all,
>
> > > > Very simply question but cannot seem to find the answer. I have the
> > > > directory structure and everything in tact in the normal way. However,
> > > > on my server I put the entire structure in the /myapp folder in the
> > > > document root.
>
> > > > Now, everything is all mest up and there is no CSS and files are
> > > > missing and such. Surely cake has a simple variable to reflect these
> > > > changes? Any advice? I have already looked at the book and the bakery
> > > > and have tried things but they have not worked, such as messing with
> > > > the variables in the index.php file.
>
> > > > I am using version 1.2
>
> > > > Thank you for any advice/pointers.
>
> > > > Regards
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread RichardAtHome

Might be worth re-starting the (web) server. It fixed a 500 error I
was getting a while back. Been fine every since (even after uploading
source updates).

On Jan 26, 1:38 pm, inVINCable  wrote:
> Hey,
>
> Ok, I found both of the .htacess files and added "RewriteBase /myapp"
> so my .htacess file looks like:
>
> 
>     RewriteEngine on
>     RewriteBase /myapp
>     RewriteRule    ^$    webroot/    [L]
>     RewriteRule    (.*) webroot/$1    [L]
>  
>
> I also deleted the cache (just the files) and now I am getting a 500
> Internal Server Error. I have tried this both on my local machine and
> a live server and the same thing happens. Anyone know what I might be
> doing wrong?
>
> On Jan 25, 9:49 pm, Paolo Stancato  wrote:
>
> > Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> > into mod_rewrite section.
>
> > Regards
>
> > 2009/1/26 inVINCable :
>
> > > Hey all,
>
> > > Very simply question but cannot seem to find the answer. I have the
> > > directory structure and everything in tact in the normal way. However,
> > > on my server I put the entire structure in the /myapp folder in the
> > > document root.
>
> > > Now, everything is all mest up and there is no CSS and files are
> > > missing and such. Surely cake has a simple variable to reflect these
> > > changes? Any advice? I have already looked at the book and the bakery
> > > and have tried things but they have not worked, such as messing with
> > > the variables in the index.php file.
>
> > > I am using version 1.2
>
> > > Thank you for any advice/pointers.
>
> > > Regards
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread RoVo

Hi,

> ..I am getting a 500 Internal Server Error.
Is it me? I think it should look like this?!?


RewriteEngine on
RewriteBase /myapp
RewriteRule ^$ app/webroot/[L]
RewriteRule (.*) app/webroot/$1 [L]


Hope that helps
RoVo
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread inVINCable

Hey,

Ok, I found both of the .htacess files and added "RewriteBase /myapp"
so my .htacess file looks like:



RewriteEngine on
RewriteBase /myapp
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
 


I also deleted the cache (just the files) and now I am getting a 500
Internal Server Error. I have tried this both on my local machine and
a live server and the same thing happens. Anyone know what I might be
doing wrong?



On Jan 25, 9:49 pm, Paolo Stancato  wrote:
> Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> into mod_rewrite section.
>
> Regards
>
> 2009/1/26 inVINCable :
>
>
>
> > Hey all,
>
> > Very simply question but cannot seem to find the answer. I have the
> > directory structure and everything in tact in the normal way. However,
> > on my server I put the entire structure in the /myapp folder in the
> > document root.
>
> > Now, everything is all mest up and there is no CSS and files are
> > missing and such. Surely cake has a simple variable to reflect these
> > changes? Any advice? I have already looked at the book and the bakery
> > and have tried things but they have not worked, such as messing with
> > the variables in the index.php file.
>
> > I am using version 1.2
>
> > Thank you for any advice/pointers.
>
> > Regards
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-26 Thread RichardAtHome

You also need to delete the contents off the app/tmp directory. Leave
the file structure intact and just remove any files.

This is rapidly becoming my stock answer :-S

On Jan 26, 5:49 am, Paolo Stancato  wrote:
> Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> into mod_rewrite section.
>
> Regards
>
> 2009/1/26 inVINCable :
>
>
>
> > Hey all,
>
> > Very simply question but cannot seem to find the answer. I have the
> > directory structure and everything in tact in the normal way. However,
> > on my server I put the entire structure in the /myapp folder in the
> > document root.
>
> > Now, everything is all mest up and there is no CSS and files are
> > missing and such. Surely cake has a simple variable to reflect these
> > changes? Any advice? I have already looked at the book and the bakery
> > and have tried things but they have not worked, such as messing with
> > the variables in the index.php file.
>
> > I am using version 1.2
>
> > Thank you for any advice/pointers.
>
> > Regards
--~--~-~--~~~---~--~~
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: CakePHP In A Subdirectory?

2009-01-25 Thread Paolo Stancato

Find .htaccess files (there are two)  and add "RewriteBase /myapp"
into mod_rewrite section.

Regards

2009/1/26 inVINCable :
>
> Hey all,
>
> Very simply question but cannot seem to find the answer. I have the
> directory structure and everything in tact in the normal way. However,
> on my server I put the entire structure in the /myapp folder in the
> document root.
>
> Now, everything is all mest up and there is no CSS and files are
> missing and such. Surely cake has a simple variable to reflect these
> changes? Any advice? I have already looked at the book and the bakery
> and have tried things but they have not worked, such as messing with
> the variables in the index.php file.
>
> I am using version 1.2
>
> Thank you for any advice/pointers.
>
> Regards
> >
>

--~--~-~--~~~---~--~~
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: cakePHP in a subdirectory

2008-05-28 Thread AD7six



On May 28, 6:14 pm, Ralle <[EMAIL PROTECTED]> wrote:
> Hmm, okay. Thanks :) I'll take a look at it.
> But, i'd expect a normal form to send me to: localhost/cakephp/users/
> register/users/register since the form is places at localhost/cakephp/
> users/register...

You don't expect the form action to be used?


If you hardcode your form tag there's not much cake can do to make
things to to the right place.

In 1.1 you'll find what you want in the $html helper I think - you
might want to consider jumping straight to 1.2 though - mostly the
same, just betterer.

hth,

AD
PS. http://book.cakephp.org/view/326/the-cake-blog-tutorial <- 1.1 101
guide
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: cakePHP in a subdirectory

2008-05-28 Thread Ralle

Hmm, okay. Thanks :) I'll take a look at it.
But, i'd expect a normal form to send me to: localhost/cakephp/users/
register/users/register since the form is places at localhost/cakephp/
users/register...


On 28 Maj, 17:42, clemos <[EMAIL PROTECTED]> wrote:
> Hi Rasmus
>
> You need to use the $form->create() method to generate your  tag
> (details depend on the Cake version you use, but it's all clearly
> documented in the api). The generated tag will automatically add the
> cake base before and this action to "/cakephp/users/register"...
> Otherwise, the form obviously acts as all forms : it posts to
> "/users/register", which is the same than
> "http://localhost/users/register";.
>
> +
> Clément
>
> On Wed, May 28, 2008 at 5:36 PM, Ralle <[EMAIL PROTECTED]> wrote:
>
> > contents of htdocs\cakephp\app\views\users\register.thtml:
>
> > 
> >  Please fill out the form below to register an account
> >  Username:
> >  inputTag('User/username', array('size' =>
> > '40' )); ?>
> >  tagErrorMsg('User/username', $username_error); ?>
> >  Password:
> >  passwordTag('User/password', array('size' =>
> > '40' )); ?>
> >  tagErrorMsg('User/password', 'Password should be
> > between 6 and 40 characters long'); ?>
> >  Email:
> >  inputTag('User/email', array('size' => '40',
> > 'maxlength' =>'255' )); ?>
> >  tagErrorMsg('User/email', 'Email is invalid'); ?>
> >  First name:
> >  inputTag('User/first_name', array('size' =>
> > '40' )); ?>
> >  tagErrorMsg('User/first_name', 'First name is
> > required'); ?>
> >  Last name:
> >  inputTag('User/last_name', array('size' =>
> > '40' )); ?>
> >  tagErrorMsg('User/last_name', 'Last name is
> > required'); ?>
> >  submitTag('Register'); ?>
> > 
>
> > Cheers, Rasmus
>
> > On 28 Maj, 12:52, AD7six <[EMAIL PROTECTED]> wrote:
> >> On May 28, 11:14 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>
> >> > On 28 May 2008, at 16:57, Ralle wrote:
>
> >> > > I have not edited any off the .htaccess files.
>
> >> > Then you should.
>
> >> >http://groups.google.com/group/cake-php/search?hl=en&q=rewritebase&sc...
>
> >> since he can access localhost/cakephp/users/register - that's probably
> >> not relevant.
>
> >> Ralle - show some (view file) code. where is the url form target
> >> coming from.
>
> >> hth,
>
> >> AD
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: cakePHP in a subdirectory

2008-05-28 Thread clemos

Hi Rasmus

You need to use the $form->create() method to generate your  tag
(details depend on the Cake version you use, but it's all clearly
documented in the api). The generated tag will automatically add the
cake base before and this action to "/cakephp/users/register"...
Otherwise, the form obviously acts as all forms : it posts to
"/users/register", which is the same than
"http://localhost/users/register";.

+
Clément

On Wed, May 28, 2008 at 5:36 PM, Ralle <[EMAIL PROTECTED]> wrote:
>
> contents of htdocs\cakephp\app\views\users\register.thtml:
>
> 
>  Please fill out the form below to register an account
>  Username:
>  inputTag('User/username', array('size' =>
> '40' )); ?>
>  tagErrorMsg('User/username', $username_error); ?>
>  Password:
>  passwordTag('User/password', array('size' =>
> '40' )); ?>
>  tagErrorMsg('User/password', 'Password should be
> between 6 and 40 characters long'); ?>
>  Email:
>  inputTag('User/email', array('size' => '40',
> 'maxlength' =>'255' )); ?>
>  tagErrorMsg('User/email', 'Email is invalid'); ?>
>  First name:
>  inputTag('User/first_name', array('size' =>
> '40' )); ?>
>  tagErrorMsg('User/first_name', 'First name is
> required'); ?>
>  Last name:
>  inputTag('User/last_name', array('size' =>
> '40' )); ?>
>  tagErrorMsg('User/last_name', 'Last name is
> required'); ?>
>  submitTag('Register'); ?>
> 
>
> Cheers, Rasmus
>
> On 28 Maj, 12:52, AD7six <[EMAIL PROTECTED]> wrote:
>> On May 28, 11:14 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>>
>> > On 28 May 2008, at 16:57, Ralle wrote:
>>
>> > > I have not edited any off the .htaccess files.
>>
>> > Then you should.
>>
>> >http://groups.google.com/group/cake-php/search?hl=en&q=rewritebase&sc...
>>
>> since he can access localhost/cakephp/users/register - that's probably
>> not relevant.
>>
>> Ralle - show some (view file) code. where is the url form target
>> coming from.
>>
>> hth,
>>
>> AD
> >
>

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



Re: cakePHP in a subdirectory

2008-05-28 Thread Ralle

contents of htdocs\cakephp\app\views\users\register.thtml:


  Please fill out the form below to register an account
  Username:
  inputTag('User/username', array('size' =>
'40' )); ?>
  tagErrorMsg('User/username', $username_error); ?>
  Password:
  passwordTag('User/password', array('size' =>
'40' )); ?>
  tagErrorMsg('User/password', 'Password should be
between 6 and 40 characters long'); ?>
  Email:
  inputTag('User/email', array('size' => '40',
'maxlength' =>'255' )); ?>
  tagErrorMsg('User/email', 'Email is invalid'); ?>
  First name:
  inputTag('User/first_name', array('size' =>
'40' )); ?>
  tagErrorMsg('User/first_name', 'First name is
required'); ?>
  Last name:
  inputTag('User/last_name', array('size' =>
'40' )); ?>
  tagErrorMsg('User/last_name', 'Last name is
required'); ?>
  submitTag('Register'); ?>


Cheers, Rasmus

On 28 Maj, 12:52, AD7six <[EMAIL PROTECTED]> wrote:
> On May 28, 11:14 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
>
> > On 28 May 2008, at 16:57, Ralle wrote:
>
> > > I have not edited any off the .htaccess files.
>
> > Then you should.
>
> >http://groups.google.com/group/cake-php/search?hl=en&q=rewritebase&sc...
>
> since he can access localhost/cakephp/users/register - that's probably
> not relevant.
>
> Ralle - show some (view file) code. where is the url form target
> coming from.
>
> hth,
>
> AD
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: cakePHP in a subdirectory

2008-05-28 Thread AD7six



On May 28, 11:14 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> On 28 May 2008, at 16:57, Ralle wrote:
>
> > I have not edited any off the .htaccess files.
>
> Then you should.
>
> http://groups.google.com/group/cake-php/search?hl=en&q=rewritebase&sc...

since he can access localhost/cakephp/users/register - that's probably
not relevant.

Ralle - show some (view file) code. where is the url form target
coming from.

hth,

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



Re: cakePHP in a subdirectory

2008-05-28 Thread David C. Zentgraf

On 28 May 2008, at 16:57, Ralle wrote:

> I have not edited any off the .htaccess files.

Then you should.

http://groups.google.com/group/cake-php/search?hl=en&q=rewritebase&scoring=d


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