CSS

27 views
Skip to first unread message

ng.ng.ch.sang

unread,
Jul 27, 2012, 2:39:11 AM7/27/12
to kurog...@googlegroups.com
Hi,

I had a problem with css.

Could you tell you how i can specify a css file for a module?

I put my css file (name: "common.css") in  /app/modules/[my module]/css/ 

but nothing happned:(

Please help me figure out this :((

Juan Carlos Garcia

unread,
Jul 27, 2012, 3:57:17 AM7/27/12
to kurog...@googlegroups.com
Hi, I write the same name files basic, compliant... and I add in htdocs/app/common/css a few styles and it works

Best regards,

Juan Carlos García Sánchez
Tecnologías de Información
UNIVERSIDAD PANAMERICANA
Campus Bonaterra
9106200 Ext 7270

Michael

unread,
Jul 27, 2012, 7:09:30 AM7/27/12
to kurog...@googlegroups.com
The best practice is to create css files called whatever you like, then include them in the module/css folder, as you already have.

Then to add them to the module you need to add the function addInternalCSS('path') to the appropriate WebModule.php file for the module using the correct relevant path.

For example the line in the WebModule.php would look like this:

$this->addInternalCSS('/app/modules/[my module]/css/[my css].css');

I hope this helps.

Michael

ng.ng.ch.sang

unread,
Jul 27, 2012, 8:49:12 PM7/27/12
to kurog...@googlegroups.com
Yaaaah.

It really works.

Thank all of you very much. 
Reply all
Reply to author
Forward
0 new messages