On 13 Oct 2009, at 07:14, Jas <[email protected]> wrote:
>
> My style or layout, disappears on some pages, I've narrowed it down to
> the way $html->link is setup and have fixed some pages, but not the
> ones that have a parameter, for example /users/edit/1 it still dont
> show any styling or layout.
> I've tried
> echo $html->link('Change my details','/users/edit/'.$user['User']
> ['id']);
> and
> echo $html->link('Change my details', array('controller' =>
> 'users','action'=>'edit',$user['User']['id']),null,null,false);
> When the page goes to the url they both work functionally but, dont
> show any styling. But this did fix pages without a parameter.
>
I came accross this lots on the migration I am doing at the moment
from 1.1.3 to 1.2.5
The format of your link array needs tidying. Do something like $html-
>link('title',array
('action'=>'foo','controller','param'=>'value'),array
('class'=>'fooclass','title'=>'sometitle'))
Providing you've got values in this array format then you should have
no problems. Check the html helper pages in the book for details.
Using this link format will allow you to use cakes routing to adjust
url paths as required without having to touch your links again.
Also turn your debug up to 2 and you should see inline error messages
which will help you identify the breaks.
> Any ideas?
>
> Jas
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---