>
> the specific view folder is views\contracts
> at the contracts folder,i copied the js and css folder downloaded from
> the web
>
> then i put all the instructions from the web (from the "Usage" tab)
>
> in index.ctp in contracts folder, i use this code fragment:
>
> <script type="text/javascript" src="js/tabpane.js"></script>
> <link type="text/css" rel="StyleSheet" href="css/tab.webfx.css" />
You should have:
src="/js/tabpane.js"
and
href="/css/tab.webfx.css"
And the files should be in /webroot/js & /webroot/css, respectively.
> <div class="tab-pane" id="tab-pane-1">
>
> <div class="tab-page">
> <h2 class="tab">General</h2>
>
> This is where i put the table from the database
>
> </div>
>
> </div>
> <script type="text/javascript">
> setupAllTabs();
> </script>
>
> the tabs cannot be shown.its like the js and css cannot be read at all
> or is there any other method to put js and css using cake?
echo $javascript->link('tabpane');
echo $html->css('tab.webfx');
Note that you do not include the extension nor the directory (unless
your files are in subdirectories, in which case you'd include those,
but not the js or css part).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment