CodeIgniter Forums
YATS - default style - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: YATS - default style (/showthread.php?tid=2107)



YATS - default style - El Forum - 07-16-2007

[eluser]ouzodestructo[/eluser]
Hi,
I have just installed YATS and all is working fine except for the styles. The page source calling the css style sheet is:

<link rel="stylesheet" href="http://127.0.0.1/~sk/CodeIgniter/assets/default/css/layout.css" type="text/css" media="all" />

which is the correct path to the layout.css file, but the styles aren't displaying.

What am I overlooking here?


YATS - default style - El Forum - 07-17-2007

[eluser]andreagam[/eluser]
I simply do it that way:

Code:
<?=style('layout.css')?>

and works for me.


bye


YATS - default style - El Forum - 07-17-2007

[eluser]ouzodestructo[/eluser]
[quote author="CI andrea" date="1184684334"]I simply do it that way:

Code:
<?=style('layout.css')?>

and works for me.

[/quote]

Thanks Andrea, I have that too... and they style helper then ammends it with the correct path to the css file. My page just doesn't display any styles?!?! Its got me flummoxed!


YATS - default style - El Forum - 07-20-2007

[eluser]Unknown[/eluser]
Quote:Thanks Andrea, I have that too… and they style helper then ammends it with the correct path to the css file. My page just doesn’t display any styles?!?! Its got me flummoxed!

Hi ouzo,
Also a newbie in yats and ci here Smile
Dis you remember to set the params below in your config.php file (inside the application folder)?
$config['base_url']
$config['index_page']
W


YATS - default style - El Forum - 07-20-2007

[eluser]esra[/eluser]
Try using Mozilla Firefox with the Firebug extension. It should identify any errors in your view that might be occurring when you attempt to load your controller.


YATS - default style - El Forum - 07-22-2007

[eluser]ouzodestructo[/eluser]
Hi Esra
I've got the webdeveloper toolbar installed in firefox and when i try to view the CSS for it, it gives me a 'page not found' error. I created a new CSS folder in the root directory and copied layout.css to there and changed the path in the layout helper and it all works now. I'd prefer not to use this work-around, but what can I do when the path to the file is correct but it says its not?