Powered by Invision Power Board



  Reply to this topicStart new topicStart Poll

> CSS, JS helper, wrong path in themed
prabha
Posted: Jun 2 2011, 11:58 PM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 2861
Joined: 2-June 11



Hi,

Cakephp 1.3

<?php
class AppController extends Controller {
public $view = 'Theme';
public $theme = 'default';

var $helpers = array('Html');
}
?>

views/themed/default/layout/default.ctp
<head>
<?php echo $this->Html->css('style.general'); ?>
</head>

views/themed/default/webroot/css/style.general.css

The same way, javascript added in js folder. But I am getting no
styles in template
i didnt make any change in htaccess


I am Working in localhost. So the folder name is cakephp_r
PMEmail Poster
Top
blux
Posted: Jun 3 2011, 12:56 PM
Quote Post


Advanced Member
***

Group: Super Moderator
Posts: 447
Member No.: 101
Joined: 14-November 07



put your files in the folders in app\webroot instead of /app/views
It will work fine.


--------------------
You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.(Albert Einstein (1879 - 1955), when asked to describe radio)
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Disclaimer:
This forum is in no way affiliated with the Cake Software Foundation
The CakePHP name and icon is a trademark of the Cake Software Foundation


Lo-Fi Version