Re: Strange URL's

2007-09-09 Thread [EMAIL PROTECTED]

Shepard  Could you tell which changes you maid, I have a similar
issue and cant fix it

franky06  I needed to disable the gzip in htaccess in
order to make it work with PHP 5 hey thanks for that !


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



Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Hi there,

I'm new to cakePHP and trying to create a simple application, but I
have a problem with the html helper and also I think the Router
class ...

So I just created a controller with no model associated and 2 views
named index.thtml and magasin.thtml.

These pages are accessible via http://www.server.com/pages/index; and
(http://www.server.com/pages/magasin/Mouscron; or http://
www.server.com/pages/magasin/Leers-Nord) ( the controller attributes
different variables according to the parameter ).

In index.thtml, I wrote:

a href=?php echo $html-url('/pages/magasin/Mouscron'); ?
Mouscron/abr /
a href=?php echo $html-url('/pages/magasin/Leers-Nord'); ?Leers-
Nord/a

And the resultant HTML code is:

a href=/home/maryphot/www/maryphoto/pages/magasin/
MouscronMouscron/abr /
a href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
Nord/a

The part /home/maryphot/www/maryphoto is overdue, and I don't know
how to remove it, I checked /cake/libs/view/helpers/html.php and I
found that the url() function was a member of the Router class, then I
saw at it but don't know how to fix that problem ... Can someone help
me ?

Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread francky06l

Strange, have you got mod-rewrite set up ?
By the way instead of :

a href=?php echo $html-url('/pages/magasin/Mouscron'); ?
Mouscron/abr /

you could use echo $html-link('Mouscron', '/pages/magasin/');

What is the name of your controller ? Pages is a reserved name for
static pages in cakePhp.

On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi there,

 I'm new to cakePHP and trying to create a simple application, but I
 have a problem with the html helper and also I think the Router
 class ...

 So I just created a controller with no model associated and 2 views
 named index.thtml and magasin.thtml.

 These pages are accessible via http://www.server.com/pages/index; and
 (http://www.server.com/pages/magasin/Mouscron; or 
 http://www.server.com/pages/magasin/Leers-Nord;) ( the controller attributes
 different variables according to the parameter ).

 In index.thtml, I wrote:

 a href=?php echo $html-url('/pages/magasin/Mouscron'); 
 ?Mouscron/abr /

 a href=?php echo $html-url('/pages/magasin/Leers-Nord'); ?Leers-
 Nord/a

 And the resultant HTML code is:

 a href=/home/maryphot/www/maryphoto/pages/magasin/
 MouscronMouscron/abr /
 a href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
 Nord/a

 The part /home/maryphot/www/maryphoto is overdue, and I don't know
 how to remove it, I checked /cake/libs/view/helpers/html.php and I
 found that the url() function was a member of the Router class, then I
 saw at it but don't know how to fix that problem ... Can someone help
 me ?

 Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Hi, thanks for your answer :)

Yes, mod_rewrite is installed on my server ...

I'll use $html-link instead of my beginners technic ^^

My controller's named PagesController, I'll change for
SpagesController ( Static pages )

Thank you again, have somebody idea's for my url's issue ?

On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:
 Strange, have you got mod-rewrite set up ?
 By the way instead of :

 a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

 Mouscron/abr /

 you could use echo $html-link('Mouscron', '/pages/magasin/');

 What is the name of your controller ? Pages is a reserved name for
 static pages in cakePhp.

 On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi there,

  I'm new to cakePHP and trying to create a simple application, but I
  have a problem with the html helper and also I think the Router
  class ...

  So I just created a controller with no model associated and 2 views
  named index.thtml and magasin.thtml.

  These pages are accessible via http://www.server.com/pages/index; and
  (http://www.server.com/pages/magasin/Mouscron; or 
  http://www.server.com/pages/magasin/Leers-Nord;) ( the controller 
  attributes
  different variables according to the parameter ).

  In index.thtml, I wrote:

  a href=?php echo $html-url('/pages/magasin/Mouscron'); 
  ?Mouscron/abr /

  a href=?php echo $html-url('/pages/magasin/Leers-Nord'); ?Leers-
  Nord/a

  And the resultant HTML code is:

  a href=/home/maryphot/www/maryphoto/pages/magasin/
  MouscronMouscron/abr /
  a href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
  Nord/a

  The part /home/maryphot/www/maryphoto is overdue, and I don't know
  how to remove it, I checked /cake/libs/view/helpers/html.php and I
  found that the url() function was a member of the Router class, then I
  saw at it but don't know how to fix that problem ... Can someone help
  me ?

  Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread francky06l

Pages is reserved, try with a new name and let know about the results.

On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi, thanks for your answer :)

 Yes, mod_rewrite is installed on my server ...

 I'll use $html-link instead of my beginners technic ^^

 My controller's named PagesController, I'll change for
 SpagesController ( Static pages )

 Thank you again, have somebody idea's for my url's issue ?

 On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

  Strange, have you got mod-rewrite set up ?
  By the way instead of :

  a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

  Mouscron/abr /

  you could use echo $html-link('Mouscron', '/pages/magasin/');

  What is the name of your controller ? Pages is a reserved name for
  static pages in cakePhp.

  On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi there,

   I'm new to cakePHP and trying to create a simple application, but I
   have a problem with the html helper and also I think the Router
   class ...

   So I just created a controller with no model associated and 2 views
   named index.thtml and magasin.thtml.

   These pages are accessible via http://www.server.com/pages/index; and
   (http://www.server.com/pages/magasin/Mouscron; or 
   http://www.server.com/pages/magasin/Leers-Nord;) ( the controller 
   attributes
   different variables according to the parameter ).

   In index.thtml, I wrote:

   a href=?php echo $html-url('/pages/magasin/Mouscron'); 
   ?Mouscron/abr /

   a href=?php echo $html-url('/pages/magasin/Leers-Nord'); ?Leers-
   Nord/a

   And the resultant HTML code is:

   a href=/home/maryphot/www/maryphoto/pages/magasin/
   MouscronMouscron/abr /
   a href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
   Nord/a

   The part /home/maryphot/www/maryphoto is overdue, and I don't know
   how to remove it, I checked /cake/libs/view/helpers/html.php and I
   found that the url() function was a member of the Router class, then I
   saw at it but don't know how to fix that problem ... Can someone help
   me ?

   Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Hi again,

I changed it to PagesController to SpagesController and nothing
changed: my links are as ugly as before :(

I also tried to modify my .htaccesses but the result was really
disturbing so I resetted them to the officials ones ...

Thank for your help anyway !

On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:
 Pages is reserved, try with a new name and let know about the results.

 On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi, thanks for your answer :)

  Yes, mod_rewrite is installed on my server ...

  I'll use $html-link instead of my beginners technic ^^

  My controller's named PagesController, I'll change for
  SpagesController ( Static pages )

  Thank you again, have somebody idea's for my url's issue ?

  On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

   Strange, have you got mod-rewrite set up ?
   By the way instead of :

   a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

   Mouscron/abr /

   you could use echo $html-link('Mouscron', '/pages/magasin/');

   What is the name of your controller ? Pages is a reserved name for
   static pages in cakePhp.

   On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi there,

I'm new to cakePHP and trying to create a simple application, but I
have a problem with the html helper and also I think the Router
class ...

So I just created a controller with no model associated and 2 views
named index.thtml and magasin.thtml.

These pages are accessible via http://www.server.com/pages/index; and
(http://www.server.com/pages/magasin/Mouscron; or 
http://www.server.com/pages/magasin/Leers-Nord;) ( the controller 
attributes
different variables according to the parameter ).

In index.thtml, I wrote:

a href=?php echo $html-url('/pages/magasin/Mouscron'); 
?Mouscron/abr /

a href=?php echo $html-url('/pages/magasin/Leers-Nord'); ?Leers-
Nord/a

And the resultant HTML code is:

a href=/home/maryphot/www/maryphoto/pages/magasin/
MouscronMouscron/abr /
a href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
Nord/a

The part /home/maryphot/www/maryphoto is overdue, and I don't know
how to remove it, I checked /cake/libs/view/helpers/html.php and I
found that the url() function was a member of the Router class, then I
saw at it but don't know how to fix that problem ... Can someone help
me ?

Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread francky06l

Do you have same problems for other links ? Check also your index.php
in webroot ..
All this seems a configuration problem to me.

On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi again,

 I changed it to PagesController to SpagesController and nothing
 changed: my links are as ugly as before :(

 I also tried to modify my .htaccesses but the result was really
 disturbing so I resetted them to the officials ones ...

 Thank for your help anyway !

 On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

  Pages is reserved, try with a new name and let know about the results.

  On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi, thanks for your answer :)

   Yes, mod_rewrite is installed on my server ...

   I'll use $html-link instead of my beginners technic ^^

   My controller's named PagesController, I'll change for
   SpagesController ( Static pages )

   Thank you again, have somebody idea's for my url's issue ?

   On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

Strange, have you got mod-rewrite set up ?
By the way instead of :

a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

Mouscron/abr /

you could use echo $html-link('Mouscron', '/pages/magasin/');

What is the name of your controller ? Pages is a reserved name for
static pages in cakePhp.

On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi there,

 I'm new to cakePHP and trying to create a simple application, but I
 have a problem with the html helper and also I think the Router
 class ...

 So I just created a controller with no model associated and 2 views
 named index.thtml and magasin.thtml.

 These pages are accessible via http://www.server.com/pages/index; and
 (http://www.server.com/pages/magasin/Mouscron; or 
 http://www.server.com/pages/magasin/Leers-Nord;) ( the controller 
 attributes
 different variables according to the parameter ).

 In index.thtml, I wrote:

 a href=?php echo $html-url('/pages/magasin/Mouscron'); 
 ?Mouscron/abr /

 a href=?php echo $html-url('/pages/magasin/Leers-Nord'); 
 ?Leers-
 Nord/a

 And the resultant HTML code is:

 a href=/home/maryphot/www/maryphoto/pages/magasin/
 MouscronMouscron/abr /
 a href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
 Nord/a

 The part /home/maryphot/www/maryphoto is overdue, and I don't know
 how to remove it, I checked /cake/libs/view/helpers/html.php and I
 found that the url() function was a member of the Router class, then I
 saw at it but don't know how to fix that problem ... Can someone help
 me ?

 Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

I have this problem for all my URL's, the images cannot be found ( url
searched: http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
in place of http://www.server.com/img/image.ext ), my form's actions
have the same problem.

My CSS cannot be found anymore.

I can solve some problems by updating my app/webroot/index.php but I
don't know how to alter it to get all the thing running ...

Looking at the html.php helper, I think that it's its $webroot member
that is altered ...

die($this-webroot); === /home/maryphot/www/maryphoto

(The real absolute dir on my server is: /home.10/maryphot/www/
maryphoto, I don't know if it helps ... ?)

Thank you again !

Pijcke Fabian

On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:
 Do you have same problems for other links ? Check also your index.php
 in webroot ..
 All this seems a configuration problem to me.

 On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi again,

  I changed it to PagesController to SpagesController and nothing
  changed: my links are as ugly as before :(

  I also tried to modify my .htaccesses but the result was really
  disturbing so I resetted them to the officials ones ...

  Thank for your help anyway !

  On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

   Pages is reserved, try with a new name and let know about the results.

   On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi, thanks for your answer :)

Yes, mod_rewrite is installed on my server ...

I'll use $html-link instead of my beginners technic ^^

My controller's named PagesController, I'll change for
SpagesController ( Static pages )

Thank you again, have somebody idea's for my url's issue ?

On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

 Strange, have you got mod-rewrite set up ?
 By the way instead of :

 a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

 Mouscron/abr /

 you could use echo $html-link('Mouscron', '/pages/magasin/');

 What is the name of your controller ? Pages is a reserved name for
 static pages in cakePhp.

 On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi there,

  I'm new to cakePHP and trying to create a simple application, but I
  have a problem with the html helper and also I think the Router
  class ...

  So I just created a controller with no model associated and 2 views
  named index.thtml and magasin.thtml.

  These pages are accessible via http://www.server.com/pages/index; 
  and
  (http://www.server.com/pages/magasin/Mouscron; or 
  http://www.server.com/pages/magasin/Leers-Nord;) ( the controller 
  attributes
  different variables according to the parameter ).

  In index.thtml, I wrote:

  a href=?php echo $html-url('/pages/magasin/Mouscron'); 
  ?Mouscron/abr /

  a href=?php echo $html-url('/pages/magasin/Leers-Nord'); 
  ?Leers-
  Nord/a

  And the resultant HTML code is:

  a href=/home/maryphot/www/maryphoto/pages/magasin/
  MouscronMouscron/abr /
  a 
  href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
  Nord/a

  The part /home/maryphot/www/maryphoto is overdue, and I don't know
  how to remove it, I checked /cake/libs/view/helpers/html.php and I
  found that the url() function was a member of the Router class, 
  then I
  saw at it but don't know how to fix that problem ... Can someone 
  help
  me ?

  Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread francky06l

Well if all links are wrong, it's problem of mod-rewrite and/or
index.php. What platform do you use ?
Can you paste your .htaccess and webroot/index.php in the bin or by
mail ?

On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have this problem for all my URL's, the images cannot be found ( url
 searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
 in place ofhttp://www.server.com/img/image.ext), my form's actions
 have the same problem.

 My CSS cannot be found anymore.

 I can solve some problems by updating my app/webroot/index.php but I
 don't know how to alter it to get all the thing running ...

 Looking at the html.php helper, I think that it's its $webroot member
 that is altered ...

 die($this-webroot); === /home/maryphot/www/maryphoto

 (The real absolute dir on my server is: /home.10/maryphot/www/
 maryphoto, I don't know if it helps ... ?)

 Thank you again !

 Pijcke Fabian

 On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

  Do you have same problems for other links ? Check also your index.php
  in webroot ..
  All this seems a configuration problem to me.

  On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi again,

   I changed it to PagesController to SpagesController and nothing
   changed: my links are as ugly as before :(

   I also tried to modify my .htaccesses but the result was really
   disturbing so I resetted them to the officials ones ...

   Thank for your help anyway !

   On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

Pages is reserved, try with a new name and let know about the results.

On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi, thanks for your answer :)

 Yes, mod_rewrite is installed on my server ...

 I'll use $html-link instead of my beginners technic ^^

 My controller's named PagesController, I'll change for
 SpagesController ( Static pages )

 Thank you again, have somebody idea's for my url's issue ?

 On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

  Strange, have you got mod-rewrite set up ?
  By the way instead of :

  a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

  Mouscron/abr /

  you could use echo $html-link('Mouscron', '/pages/magasin/');

  What is the name of your controller ? Pages is a reserved name 
  for
  static pages in cakePhp.

  On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi there,

   I'm new to cakePHP and trying to create a simple application, but 
   I
   have a problem with the html helper and also I think the Router
   class ...

   So I just created a controller with no model associated and 2 
   views
   named index.thtml and magasin.thtml.

   These pages are accessible via 
   http://www.server.com/pages/index; and
   (http://www.server.com/pages/magasin/Mouscron; or 
   http://www.server.com/pages/magasin/Leers-Nord;) ( the 
   controller attributes
   different variables according to the parameter ).

   In index.thtml, I wrote:

   a href=?php echo $html-url('/pages/magasin/Mouscron'); 
   ?Mouscron/abr /

   a href=?php echo $html-url('/pages/magasin/Leers-Nord'); 
   ?Leers-
   Nord/a

   And the resultant HTML code is:

   a href=/home/maryphot/www/maryphoto/pages/magasin/
   MouscronMouscron/abr /
   a 
   href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
   Nord/a

   The part /home/maryphot/www/maryphoto is overdue, and I don't 
   know
   how to remove it, I checked /cake/libs/view/helpers/html.php and I
   found that the url() function was a member of the Router class, 
   then I
   saw at it but don't know how to fix that problem ... Can someone 
   help
   me ?

   Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Index.php ( I deleted the comments ):

?php
if (!defined('DS'))
 define('DS', DIRECTORY_SEPARATOR);

if (!defined('ROOT'))
 define('ROOT', dirname(dirname(dirname(__FILE__;
if (!defined('APP_DIR'))
 define('APP_DIR', basename(dirname(dirname(__FILE__;
if (!defined('CAKE_CORE_INCLUDE_PATH'))
 define('CAKE_CORE_INCLUDE_PATH', ROOT);

if (!defined('WEBROOT_DIR'))
 define('WEBROOT_DIR', basename(dirname(__FILE__)));
if (!defined('WWW_ROOT'))
 define('WWW_ROOT', dirname(__FILE__) . DS);
if (!defined('CORE_PATH')) {
 if (function_exists('ini_set')) {
  ini_set('include_path', CAKE_CORE_INCLUDE_PATH .
PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR .
ini_get('include_path'));
  define('APP_PATH', null);
  define('CORE_PATH', null);
 } else {
  define('APP_PATH', ROOT . DS . APP_DIR . DS);
  define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
 }
}
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php'))
trigger_error(Can't find CakePHP core.  Check the value of
CAKE_CORE_INCLUDE_PATH in app/webroot/index.php.  It should point to
the directory containing your  . DS . cake core directory and your
 . DS . vendors root directory., E_USER_ERROR);
if (isset($_GET['url'])  $_GET['url'] === 'favicon.ico') {
return;
} else {
 $Dispatcher = new Dispatcher();
 $Dispatcher-dispatch($url);
}
if (Configure::read()  0)
echo !--  . round(getMicrotime() - $TIME_START, 4) . s --;
?






/.htaccess:
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule^private/$ private/index.php [L] # private section,
used to redirect http://www.maryphoto.be/private to
http://www.maryphoto.be/maryphoto/webroot/private/index.php
   RewriteRule^$ maryphoto/webroot/accueil.php [L] # I am
upgrading my website to cakePHP, so I redirect visitors to accueil.php
to see the old one.
   RewriteRule(.*) maryphoto/webroot/$1 [L]
/IfModule
SetEnv PHP_VER 5 # Used on OVH to activate PHP5


/maryphoto/.htaccess:
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$webroot/[L]
RewriteRule(.*) webroot/$1[L]
/IfModule


/maryphoto/webroot/.htaccess:
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
/IfModule



Hope it will help, Fabian Pijcke.


On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:
 Well if all links are wrong, it's problem of mod-rewrite and/or
 index.php. What platform do you use ?
 Can you paste your .htaccess and webroot/index.php in the bin or by
 mail ?

 On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  I have this problem for all my URL's, the images cannot be found ( url
  searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
  in place ofhttp://www.server.com/img/image.ext), my form's actions
  have the same problem.

  My CSS cannot be found anymore.

  I can solve some problems by updating my app/webroot/index.php but I
  don't know how to alter it to get all the thing running ...

  Looking at the html.php helper, I think that it's its $webroot member
  that is altered ...

  die($this-webroot); === /home/maryphot/www/maryphoto

  (The real absolute dir on my server is: /home.10/maryphot/www/
  maryphoto, I don't know if it helps ... ?)

  Thank you again !

  Pijcke Fabian

  On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

   Do you have same problems for other links ? Check also your index.php
   in webroot ..
   All this seems a configuration problem to me.

   On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi again,

I changed it to PagesController to SpagesController and nothing
changed: my links are as ugly as before :(

I also tried to modify my .htaccesses but the result was really
disturbing so I resetted them to the officials ones ...

Thank for your help anyway !

On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

 Pages is reserved, try with a new name and let know about the results.

 On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi, thanks for your answer :)

  Yes, mod_rewrite is installed on my server ...

  I'll use $html-link instead of my beginners technic ^^

  My controller's named PagesController, I'll change for
  SpagesController ( Static pages )

  Thank you again, have somebody idea's for my url's issue ?

  On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

   Strange, have you got mod-rewrite set up ?
   By the way instead of :

   a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

   Mouscron/abr /

   you could use echo $html-link('Mouscron', '/pages/magasin/');

   What is the name of your controller ? Pages is a reserved 
   name for
   static pages in cakePhp.

   On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi 

Re: Strange URL's

2007-09-04 Thread francky06l

hummm ..some of the rules are messing the rewrite (not sure). Try keep
only the one in webroot. An other trick, I have an OVH domain and I
needed to add rewriteBase in order it to work.
My webroot is alpha under the www (but my application and the cake
directory are not under www). I added rewriteBase /alpha in
the .htaccess of the webroot (ie : alpha for instance). Another
problem I had with OVH, I needed to disable the gzip in htaccess in
order to make it work with PHP 5 (maybe the corrected that bug since).

On Sep 4, 9:17 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Index.php ( I deleted the comments ):

 ?php
 if (!defined('DS'))
  define('DS', DIRECTORY_SEPARATOR);

 if (!defined('ROOT'))
  define('ROOT', dirname(dirname(dirname(__FILE__;
 if (!defined('APP_DIR'))
  define('APP_DIR', basename(dirname(dirname(__FILE__;
 if (!defined('CAKE_CORE_INCLUDE_PATH'))
  define('CAKE_CORE_INCLUDE_PATH', ROOT);

 if (!defined('WEBROOT_DIR'))
  define('WEBROOT_DIR', basename(dirname(__FILE__)));
 if (!defined('WWW_ROOT'))
  define('WWW_ROOT', dirname(__FILE__) . DS);
 if (!defined('CORE_PATH')) {
  if (function_exists('ini_set')) {
   ini_set('include_path', CAKE_CORE_INCLUDE_PATH .
 PATH_SEPARATOR . ROOT . DS . APP_DIR . DS . PATH_SEPARATOR .
 ini_get('include_path'));
   define('APP_PATH', null);
   define('CORE_PATH', null);
  } else {
   define('APP_PATH', ROOT . DS . APP_DIR . DS);
   define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
  }}

 if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php'))
 trigger_error(Can't find CakePHP core.  Check the value of
 CAKE_CORE_INCLUDE_PATH in app/webroot/index.php.  It should point to
 the directory containing your  . DS . cake core directory and your
  . DS . vendors root directory., E_USER_ERROR);
 if (isset($_GET['url'])  $_GET['url'] === 'favicon.ico') {
 return;} else {

  $Dispatcher = new Dispatcher();
  $Dispatcher-dispatch($url);}

 if (Configure::read()  0)
 echo !--  . round(getMicrotime() - $TIME_START, 4) . s --;
 ?

 /.htaccess:
 IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^private/$ private/index.php [L] # private section,
 used to 
 redirecthttp://www.maryphoto.be/privatetohttp://www.maryphoto.be/maryphoto/webroot/private/index.php
RewriteRule^$ maryphoto/webroot/accueil.php [L] # I am
 upgrading my website to cakePHP, so I redirect visitors to accueil.php
 to see the old one.
RewriteRule(.*) maryphoto/webroot/$1 [L]
 /IfModule
 SetEnv PHP_VER 5 # Used on OVH to activate PHP5

 /maryphoto/.htaccess:
 IfModule mod_rewrite.c
 RewriteEngine on
 RewriteRule^$webroot/[L]
 RewriteRule(.*) webroot/$1[L]
 /IfModule

 /maryphoto/webroot/.htaccess:
 IfModule mod_rewrite.c
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
 /IfModule

 Hope it will help, Fabian Pijcke.

 On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:

  Well if all links are wrong, it's problem of mod-rewrite and/or
  index.php. What platform do you use ?
  Can you paste your .htaccess and webroot/index.php in the bin or by
  mail ?

  On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   I have this problem for all my URL's, the images cannot be found ( url
   searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
   in place ofhttp://www.server.com/img/image.ext), my form's actions
   have the same problem.

   My CSS cannot be found anymore.

   I can solve some problems by updating my app/webroot/index.php but I
   don't know how to alter it to get all the thing running ...

   Looking at the html.php helper, I think that it's its $webroot member
   that is altered ...

   die($this-webroot); === /home/maryphot/www/maryphoto

   (The real absolute dir on my server is: /home.10/maryphot/www/
   maryphoto, I don't know if it helps ... ?)

   Thank you again !

   Pijcke Fabian

   On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

Do you have same problems for other links ? Check also your index.php
in webroot ..
All this seems a configuration problem to me.

On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi again,

 I changed it to PagesController to SpagesController and nothing
 changed: my links are as ugly as before :(

 I also tried to modify my .htaccesses but the result was really
 disturbing so I resetted them to the officials ones ...

 Thank for your help anyway !

 On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

  Pages is reserved, try with a new name and let know about the 
  results.

  On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi, thanks for your answer :)

   Yes, mod_rewrite is installed on my server ...

   I'll use $html-link instead of my beginners 

Re: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.

I don't know the distrib but uname -r returns 2.6.18.1-grsec-mutu-grs-
ipv4-32.

(MySQL 5.0)

My CakePHP version is the last nightbuild. VERSION.txt said
1.2.0.5427alpha.

On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:
 Well if all links are wrong, it's problem of mod-rewrite and/or
 index.php. What platform do you use ?
 Can you paste your .htaccess and webroot/index.php in the bin or by
 mail ?

 On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  I have this problem for all my URL's, the images cannot be found ( url
  searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
  in place ofhttp://www.server.com/img/image.ext), my form's actions
  have the same problem.

  My CSS cannot be found anymore.

  I can solve some problems by updating my app/webroot/index.php but I
  don't know how to alter it to get all the thing running ...

  Looking at the html.php helper, I think that it's its $webroot member
  that is altered ...

  die($this-webroot); === /home/maryphot/www/maryphoto

  (The real absolute dir on my server is: /home.10/maryphot/www/
  maryphoto, I don't know if it helps ... ?)

  Thank you again !

  Pijcke Fabian

  On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

   Do you have same problems for other links ? Check also your index.php
   in webroot ..
   All this seems a configuration problem to me.

   On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi again,

I changed it to PagesController to SpagesController and nothing
changed: my links are as ugly as before :(

I also tried to modify my .htaccesses but the result was really
disturbing so I resetted them to the officials ones ...

Thank for your help anyway !

On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

 Pages is reserved, try with a new name and let know about the results.

 On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi, thanks for your answer :)

  Yes, mod_rewrite is installed on my server ...

  I'll use $html-link instead of my beginners technic ^^

  My controller's named PagesController, I'll change for
  SpagesController ( Static pages )

  Thank you again, have somebody idea's for my url's issue ?

  On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

   Strange, have you got mod-rewrite set up ?
   By the way instead of :

   a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

   Mouscron/abr /

   you could use echo $html-link('Mouscron', '/pages/magasin/');

   What is the name of your controller ? Pages is a reserved 
   name for
   static pages in cakePhp.

   On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi there,

I'm new to cakePHP and trying to create a simple application, 
but I
have a problem with the html helper and also I think the Router
class ...

So I just created a controller with no model associated and 2 
views
named index.thtml and magasin.thtml.

These pages are accessible via 
http://www.server.com/pages/index; and
(http://www.server.com/pages/magasin/Mouscron; or 
http://www.server.com/pages/magasin/Leers-Nord;) ( the 
controller attributes
different variables according to the parameter ).

In index.thtml, I wrote:

a href=?php echo $html-url('/pages/magasin/Mouscron'); 
?Mouscron/abr /

a href=?php echo $html-url('/pages/magasin/Leers-Nord'); 
?Leers-
Nord/a

And the resultant HTML code is:

a href=/home/maryphot/www/maryphoto/pages/magasin/
MouscronMouscron/abr /
a 
href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
Nord/a

The part /home/maryphot/www/maryphoto is overdue, and I don't 
know
how to remove it, I checked /cake/libs/view/helpers/html.php 
and I
found that the url() function was a member of the Router class, 
then I
saw at it but don't know how to fix that problem ... Can 
someone help
me ?

Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread francky06l

well I can give you my tree under OVH if you are interested. OVH is
quite tricky with their special version of Apache.

On Sep 4, 9:21 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.

 I don't know the distrib but uname -r returns 2.6.18.1-grsec-mutu-grs-
 ipv4-32.

 (MySQL 5.0)

 My CakePHP version is the last nightbuild. VERSION.txt said
 1.2.0.5427alpha.

 On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:

  Well if all links are wrong, it's problem of mod-rewrite and/or
  index.php. What platform do you use ?
  Can you paste your .htaccess and webroot/index.php in the bin or by
  mail ?

  On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   I have this problem for all my URL's, the images cannot be found ( url
   searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
   in place ofhttp://www.server.com/img/image.ext), my form's actions
   have the same problem.

   My CSS cannot be found anymore.

   I can solve some problems by updating my app/webroot/index.php but I
   don't know how to alter it to get all the thing running ...

   Looking at the html.php helper, I think that it's its $webroot member
   that is altered ...

   die($this-webroot); === /home/maryphot/www/maryphoto

   (The real absolute dir on my server is: /home.10/maryphot/www/
   maryphoto, I don't know if it helps ... ?)

   Thank you again !

   Pijcke Fabian

   On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

Do you have same problems for other links ? Check also your index.php
in webroot ..
All this seems a configuration problem to me.

On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi again,

 I changed it to PagesController to SpagesController and nothing
 changed: my links are as ugly as before :(

 I also tried to modify my .htaccesses but the result was really
 disturbing so I resetted them to the officials ones ...

 Thank for your help anyway !

 On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

  Pages is reserved, try with a new name and let know about the 
  results.

  On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi, thanks for your answer :)

   Yes, mod_rewrite is installed on my server ...

   I'll use $html-link instead of my beginners technic ^^

   My controller's named PagesController, I'll change for
   SpagesController ( Static pages )

   Thank you again, have somebody idea's for my url's issue ?

   On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

Strange, have you got mod-rewrite set up ?
By the way instead of :

a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

Mouscron/abr /

you could use echo $html-link('Mouscron', '/pages/magasin/');

What is the name of your controller ? Pages is a reserved 
name for
static pages in cakePhp.

On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:

 Hi there,

 I'm new to cakePHP and trying to create a simple application, 
 but I
 have a problem with the html helper and also I think the 
 Router
 class ...

 So I just created a controller with no model associated and 2 
 views
 named index.thtml and magasin.thtml.

 These pages are accessible via 
 http://www.server.com/pages/index; and
 (http://www.server.com/pages/magasin/Mouscron; or 
 http://www.server.com/pages/magasin/Leers-Nord;) ( the 
 controller attributes
 different variables according to the parameter ).

 In index.thtml, I wrote:

 a href=?php echo $html-url('/pages/magasin/Mouscron'); 
 ?Mouscron/abr /

 a href=?php echo $html-url('/pages/magasin/Leers-Nord'); 
 ?Leers-
 Nord/a

 And the resultant HTML code is:

 a href=/home/maryphot/www/maryphoto/pages/magasin/
 MouscronMouscron/abr /
 a 
 href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
 Nord/a

 The part /home/maryphot/www/maryphoto is overdue, and I 
 don't know
 how to remove it, I checked /cake/libs/view/helpers/html.php 
 and I
 found that the url() function was a member of the Router 
 class, then I
 saw at it but don't know how to fix that problem ... Can 
 someone help
 me ?

 Sorry for my bad english ... :(


--~--~-~--~~~---~--~~
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: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Hi, thanks for the tips, I tried to do all this, here's my
new .htaccess:

mod_gzip_on No
IfModule mod_rewrite.c
   RewriteEngine on
   RewriteBase  /maryphoto/webroot
#   RewriteRule ^private/$ private/index.php [L]
#   RewriteRule ^$ maryphoto/webroot/accueil.php [L]
   RewriteRule  (.*) $1 [L]
/IfModule
SetEnv PHP_VER 5

I have the same problem, the url's are different at all :(

Perhaps would I try to set all the constants in index.php manually ?
Can't you give me the dump of your get_defined_constants(true)
['user'] so I could have an example please ?

Thank you a lot for all your help !

Fabian Pijcke

On Sep 4, 9:21 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.

 I don't know the distrib but uname -r returns 2.6.18.1-grsec-mutu-grs-
 ipv4-32.

 (MySQL 5.0)

 My CakePHP version is the last nightbuild. VERSION.txt said
 1.2.0.5427alpha.

 On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:

  Well if all links are wrong, it's problem of mod-rewrite and/or
  index.php. What platform do you use ?
  Can you paste your .htaccess and webroot/index.php in the bin or by
  mail ?

  On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   I have this problem for all my URL's, the images cannot be found ( url
   searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
   in place ofhttp://www.server.com/img/image.ext), my form's actions
   have the same problem.

   My CSS cannot be found anymore.

   I can solve some problems by updating my app/webroot/index.php but I
   don't know how to alter it to get all the thing running ...

   Looking at the html.php helper, I think that it's its $webroot member
   that is altered ...

   die($this-webroot); === /home/maryphot/www/maryphoto

   (The real absolute dir on my server is: /home.10/maryphot/www/
   maryphoto, I don't know if it helps ... ?)

   Thank you again !

   Pijcke Fabian

   On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

Do you have same problems for other links ? Check also your index.php
in webroot ..
All this seems a configuration problem to me.

On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi again,

 I changed it to PagesController to SpagesController and nothing
 changed: my links are as ugly as before :(

 I also tried to modify my .htaccesses but the result was really
 disturbing so I resetted them to the officials ones ...

 Thank for your help anyway !

 On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

  Pages is reserved, try with a new name and let know about the 
  results.

  On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi, thanks for your answer :)

   Yes, mod_rewrite is installed on my server ...

   I'll use $html-link instead of my beginners technic ^^

   My controller's named PagesController, I'll change for
   SpagesController ( Static pages )

   Thank you again, have somebody idea's for my url's issue ?

   On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

Strange, have you got mod-rewrite set up ?
By the way instead of :

a href=?php echo $html-url('/pages/magasin/Mouscron'); ?

Mouscron/abr /

you could use echo $html-link('Mouscron', '/pages/magasin/');

What is the name of your controller ? Pages is a reserved 
name for
static pages in cakePhp.

On Sep 4, 6:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:

 Hi there,

 I'm new to cakePHP and trying to create a simple application, 
 but I
 have a problem with the html helper and also I think the 
 Router
 class ...

 So I just created a controller with no model associated and 2 
 views
 named index.thtml and magasin.thtml.

 These pages are accessible via 
 http://www.server.com/pages/index; and
 (http://www.server.com/pages/magasin/Mouscron; or 
 http://www.server.com/pages/magasin/Leers-Nord;) ( the 
 controller attributes
 different variables according to the parameter ).

 In index.thtml, I wrote:

 a href=?php echo $html-url('/pages/magasin/Mouscron'); 
 ?Mouscron/abr /

 a href=?php echo $html-url('/pages/magasin/Leers-Nord'); 
 ?Leers-
 Nord/a

 And the resultant HTML code is:

 a href=/home/maryphot/www/maryphoto/pages/magasin/
 MouscronMouscron/abr /
 a 
 href=/home/maryphot/www/maryphoto/pages/magasin/Leers-NordLeers-
 Nord/a

 The part /home/maryphot/www/maryphoto is overdue, and I 
 don't know
 how to remove it, I checked /cake/libs/view/helpers/html.php 
 and I
 found that the url() function was a member of the Router 
 class, then I
 saw at it but don't know how to fix that problem ... 

Re: Strange URL's

2007-09-04 Thread francky06l

I have set another application (gumiz) on OVH, basically the webroot
resides on the www directory :

www/gumiz
  - index.php
  + js
  + img
  + css

I have set the application and cake into the home directory : foo.
Cake is in foo/cake, gumiz my application is in foo/gumiz.

/home.8/l/o/a/loanlnk/foo
  + apps
+ gumiz
  + cake
- app_controller.php
+ views
+ models
//etc ...


A look to the index.php (the differences from the distribution file)
in webroot (ie : /gumiz):

if (!defined('ROOT')) {
 //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS
LOCATED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
 //You should also use the DS define to separate your 
directories
 define('ROOT', 
'/home.8/l/o/a/loanlnk/foo/apps');
}
if (!defined('APP_DIR')) {
 //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION');
 define('APP_DIR', 'gumiz');
}
/**
 * This only needs to be changed if the cake installed libs are
located
 * outside of the distributed directory structure.
 */
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
 //define ('CAKE_CORE_INCLUDE_PATH', 'FULL PATH TO DIRECTORY 
WHERE
CAKE CORE IS INSTALLED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
 //You should also use the DS define to separate your 
directories
 define('CAKE_CORE_INCLUDE_PATH', '/home.8/l/o/a/loanlnk/foo');

// htacess of the www/gumiz (webroot)

RewriteEngine On
RewriteBase   /gumiz
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

That's about it. I did not need to tweak the .htaccess of the www
because I use this mainly for development. So I use to call my
application by www.loanlnk.fr/gumiz.
I suggest you could do the same and after, maybe tweak to the
www/.htaccess according to your needs

hope this helps
On Sep 4, 9:57 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 It would be very nice, thank you !!

 On Sep 4, 9:38 pm, francky06l [EMAIL PROTECTED] wrote:

  well I can give you my tree under OVH if you are interested. OVH is
  quite tricky with their special version of Apache.

  On Sep 4, 9:21 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.

   I don't know the distrib but uname -r returns 2.6.18.1-grsec-mutu-grs-
   ipv4-32.

   (MySQL 5.0)

   My CakePHP version is the last nightbuild. VERSION.txt said
   1.2.0.5427alpha.

   On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:

Well if all links are wrong, it's problem of mod-rewrite and/or
index.php. What platform do you use ?
Can you paste your .htaccess and webroot/index.php in the bin or by
mail ?

On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I have this problem for all my URL's, the images cannot be found ( url
 searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
 in place ofhttp://www.server.com/img/image.ext), my form's actions
 have the same problem.

 My CSS cannot be found anymore.

 I can solve some problems by updating my app/webroot/index.php but I
 don't know how to alter it to get all the thing running ...

 Looking at the html.php helper, I think that it's its $webroot member
 that is altered ...

 die($this-webroot); === /home/maryphot/www/maryphoto

 (The real absolute dir on my server is: /home.10/maryphot/www/
 maryphoto, I don't know if it helps ... ?)

 Thank you again !

 Pijcke Fabian

 On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

  Do you have same problems for other links ? Check also your 
  index.php
  in webroot ..
  All this seems a configuration problem to me.

  On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi again,

   I changed it to PagesController to SpagesController and nothing
   changed: my links are as ugly as before :(

   I also tried to modify my .htaccesses but the result was really
   disturbing so I resetted them to the officials ones ...

   Thank for your help anyway !

   On 4 sep, 20:23, francky06l [EMAIL PROTECTED] wrote:

Pages is reserved, try with a new name and let know about the 
results.

On Sep 4, 8:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:

 Hi, thanks for your answer :)

 Yes, mod_rewrite is installed on my server ...

 I'll use $html-link instead of my beginners technic ^^

 My controller's named PagesController, I'll change for
 SpagesController ( Static pages )

 Thank you again, have somebody idea's for my url's issue ?

 On 4 sep, 19:58, francky06l [EMAIL PROTECTED] wrote:

  Strange, have you got mod-rewrite set up ?
  By the way instead of :

  a 

Re: Strange URL's

2007-09-04 Thread [EMAIL PROTECTED]

Youhouh ! I finally got it :)

Some changes I made in the .htaccesses did the trick, now all seems to
be ok, it's great :)

Thank you again for your help !!

Fabian Pijcke

On Sep 4, 11:35 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I tried differents configurations but can't make it work :(

 I'll try again tomorrow, time to sleep for me ...

 And a great THANK YOU for all your suggestions / comments / help !

 On Sep 4, 10:32 pm, francky06l [EMAIL PROTECTED] wrote:

  I have set another application (gumiz) on OVH, basically the webroot
  resides on the www directory :

  www/gumiz
- index.php
+ js
+ img
+ css

  I have set the application and cake into the home directory : foo.
  Cake is in foo/cake, gumiz my application is in foo/gumiz.

  /home.8/l/o/a/loanlnk/foo
+ apps
  + gumiz
+ cake
  - app_controller.php
  + views
  + models
  //etc ...

  A look to the index.php (the differences from the distribution file)
  in webroot (ie : /gumiz):

  if (!defined('ROOT')) {
   //define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP 
  DIRECTORY IS
  LOCATED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
   //You should also use the DS define to separate your 
  directories
   define('ROOT', 
  '/home.8/l/o/a/loanlnk/foo/apps');
  }
  if (!defined('APP_DIR')) {
   //define('APP_DIR', 'DIRECTORY NAME OF APPLICATION');
   define('APP_DIR', 'gumiz');
  }
  /**
   * This only needs to be changed if the cake installed libs are
  located
   * outside of the distributed directory structure.
   */
  if (!defined('CAKE_CORE_INCLUDE_PATH')) {
   //define ('CAKE_CORE_INCLUDE_PATH', 'FULL PATH TO 
  DIRECTORY WHERE
  CAKE CORE IS INSTALLED. DO NOT ADD A TRAILING DIRECTORY SEPARATOR');
   //You should also use the DS define to separate your 
  directories
   define('CAKE_CORE_INCLUDE_PATH', 
  '/home.8/l/o/a/loanlnk/foo');

  // htacess of the www/gumiz (webroot)

  RewriteEngine On
  RewriteBase   /gumiz
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

  That's about it. I did not need to tweak the .htaccess of the www
  because I use this mainly for development. So I use to call my
  application bywww.loanlnk.fr/gumiz.
  I suggest you could do the same and after, maybe tweak to the
  www/.htaccess according to your needs

  hope this helps
  On Sep 4, 9:57 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   It would be very nice, thank you !!

   On Sep 4, 9:38 pm, francky06l [EMAIL PROTECTED] wrote:

well I can give you my tree under OVH if you are interested. OVH is
quite tricky with their special version of Apache.

On Sep 4, 9:21 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.

 I don't know the distrib but uname -r returns 
 2.6.18.1-grsec-mutu-grs-
 ipv4-32.

 (MySQL 5.0)

 My CakePHP version is the last nightbuild. VERSION.txt said
 1.2.0.5427alpha.

 On Sep 4, 9:03 pm, francky06l [EMAIL PROTECTED] wrote:

  Well if all links are wrong, it's problem of mod-rewrite and/or
  index.php. What platform do you use ?
  Can you paste your .htaccess and webroot/index.php in the bin or by
  mail ?

  On Sep 4, 8:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   I have this problem for all my URL's, the images cannot be found 
   ( url
   searched:http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
   in place ofhttp://www.server.com/img/image.ext), my form's actions
   have the same problem.

   My CSS cannot be found anymore.

   I can solve some problems by updating my app/webroot/index.php 
   but I
   don't know how to alter it to get all the thing running ...

   Looking at the html.php helper, I think that it's its $webroot 
   member
   that is altered ...

   die($this-webroot); === /home/maryphot/www/maryphoto

   (The real absolute dir on my server is: /home.10/maryphot/www/
   maryphoto, I don't know if it helps ... ?)

   Thank you again !

   Pijcke Fabian

   On 4 sep, 20:35, francky06l [EMAIL PROTECTED] wrote:

Do you have same problems for other links ? Check also your 
index.php
in webroot ..
All this seems a configuration problem to me.

On Sep 4, 8:31 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:

 Hi again,

 I changed it to PagesController to SpagesController and 
 nothing
 changed: my links are as ugly as before :(

 I also tried to modify my .htaccesses but the result was 
 really
 disturbing so I resetted them to the officials ones ...

 Thank for your help 

Re: Strange url's

2007-07-09 Thread kionae

I had the exact same problem on my site.  I never did figure out
exactly WHY it did that, but I did manage to fix it by adding the
following to the bootstrap.php file:

ini_set(url_rewriter.tags,);
ini_set('session.use_trans_sid', false);





On Jul 8, 7:55 am, cakedude [EMAIL PROTECTED] wrote:
 Hi there,

 I was hoping someone can help me with this.

 I've developed a nice cake-based website which works just fine
 locally. However when i publish put the website online i get some
 really strange url's:

 www.mywebsite.com/chapters/view/1?CAKEPHP=

 For most of the site this is no problem (other then that it doesn't
 look that nice!) but the forms on my website just don't work as they
 should.

 My host:www.startlogic.com

 I really hope someone can help me out on this.

 Thanx!


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



Strange url's

2007-07-08 Thread cakedude

Hi there,

I was hoping someone can help me with this.

I've developed a nice cake-based website which works just fine
locally. However when i publish put the website online i get some
really strange url's:

www.mywebsite.com/chapters/view/1?CAKEPHP=

For most of the site this is no problem (other then that it doesn't
look that nice!) but the forms on my website just don't work as they
should.

My host: www.startlogic.com

I really hope someone can help me out on this.

Thanx!


--~--~-~--~~~---~--~~
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: Strange url's

2007-07-08 Thread Gorka

Looks like the session id going along as a GET parameter, maybe you
could start checking if you have disabled cookies.

On 8 jul, 14:55, cakedude [EMAIL PROTECTED] wrote:
 Hi there,

 I was hoping someone can help me with this.

 I've developed a nice cake-based website which works just fine
 locally. However when i publish put the website online i get some
 really strange url's:

 www.mywebsite.com/chapters/view/1?CAKEPHP=

 For most of the site this is no problem (other then that it doesn't
 look that nice!) but the forms on my website just don't work as they
 should.

 My host:www.startlogic.com

 I really hope someone can help me out on this.

 Thanx!


--~--~-~--~~~---~--~~
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: Strange url's

2007-07-08 Thread Samuel DeVore

it could be that your install of php has the session.use_trans_sid
setting to true, if you do not have access to the php.ini file your
can try adding

php_flag session.use_trans_sid Off

to your .htaccess file and it should clear it up.

Sam D



On 7/8/07, Gorka [EMAIL PROTECTED] wrote:

 Looks like the session id going along as a GET parameter, maybe you
 could start checking if you have disabled cookies.

 On 8 jul, 14:55, cakedude [EMAIL PROTECTED] wrote:
  Hi there,
 
  I was hoping someone can help me with this.
 
  I've developed a nice cake-based website which works just fine
  locally. However when i publish put the website online i get some
  really strange url's:
 
  www.mywebsite.com/chapters/view/1?CAKEPHP=
 
  For most of the site this is no problem (other then that it doesn't
  look that nice!) but the forms on my website just don't work as they
  should.
 
  My host:www.startlogic.com
 
  I really hope someone can help me out on this.
 
  Thanx!


 




-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

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