This is my code which i use to display my link: <ul class="gpMargPad">
<? foreach($ui_navilist as $ui_naviName => $ui_Url): ?>
<li>
<a href="#" class="gpFloatLeft ui_icons ui_icon_resize"></a>
<?=$html->link($ui_naviName,
array('controller'=>'clients','action'=>$ui_Url),
array('class'=>'gpFloatLeft')
) ?>
<span class="gpFloatRight gpBlock">
<?=$html->link('',
array('controller'=>'clients','action'=>'add_client'),
array('class'=>'ui_icons ui_icon_add gpFloatLeft tool-tip','title'=>'')
) ?>
<span class="gpBlock gpClearBoth"></span>
</span>
<span class="gpBlock gpClearBoth"></span>
</li>
<? endforeach; ?>
</ul> and this is my route.php: Router::connect('/', array('controller'
=> 'clients', 'action' => 'index'));
2010/6/7 John Andersen <[email protected]>
> Yes, I understand what the result is, but which code (please show) is
> the base for the link?
> Have you defined any routes that may affect this - if yes, then show
> them too!
> Which folder is your webroot set to in your web server? Is it the app
> folder or the app/webroot folder?
> Enjoy,
> John
>
> On Jun 7, 5:36 pm, Davor Ilic <[email protected]> wrote:
> > this creates link "
> http://my.site/*app/webroot/index.php/*clients/add_client"
> > but i want to tell link to show it without
> > *app/webroot/index.php/ it should look like this url *
> http://my.site/clients/add_client.
> >
> > thanks
> >
> > 2010/6/7 John Andersen <[email protected]>
> >
> > > And I were too fast here, sorry for that!
> >
> > > What is the code that creates the link?
> > > Enjoy,
> > > John
> >
> > > On Jun 7, 4:28 pm, Davor Ilic <[email protected]> wrote:
> > > > does anybody else have this issue too?
> >
> > > > 2010/6/6 Davor Ilic <[email protected]>
> >
> > > > > Hi,
> >
> > > > > my url is this:
> > >http://my.site/*app/webroot/index.php/*clients/add_client
> >
> > > > > why is it like this it change after time but can´t say i´ve changed
> > > > > something.
> >
> > > > > i wont to show the link like this with "$html->link()" :
> > > > >http://my.site/clients/add_client
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "CakePHP" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<cake-php%[email protected]>
> <cake-php%[email protected]<cake-php%[email protected]>>For
> more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [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