I have included css in view file as below
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl('style/root.css'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl('style/reset.css'); ?>" />
But it is giving this error ->
<b>Message:</b> Invalid controller specified (style) </p>
in application.ini, I have used this
resources.frontController.baseUrl = "/zendtest/public"
resources.view[] = "";
How do I solve this issue?
in any view file (.phtml extension) use something like this for javascript or css:
$this->headScript()->prependFile('/scripts/jquery.min.js');
$this->headScript()->appendFile('/scripts/fg.menu.js');
$this->headLink()->appendStylesheet('/css/form.css');
$this->headLink()->prependStylesheet('/css/jquery_ui_theme/jquery-ui.custom.css');
The code bellow worked for me , ( i suppose you have your css file in 'Public/css/bootstrp.css' ) and paste the line in the head of your View.
<link href="<?php echo $this->baseUrl() . '/css/bootstrap.css'; ?>" media="all" rel="stylesheet" type="text/css" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With