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</a><br />
>
> > 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</a><br />
>
> > > <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/
> > > Mouscron">Mouscron</a><br />
> > > <a href="/home/maryphot/www/maryphoto/pages/magasin/Leers-Nord">Leers-
> > > 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---