How to create CSS internal style sheet in CakePHP -


I have been using KPHP for some time and recently need to send an email from an app. Unfortunately I can tell CakePHP how to include CSS in the document as an internal style sheet instead of a link. I know people think that this is a bad idea, but my app is just sending an email to our company, so I'm not too concerned about someone's email client. If I just want to include the link which is not working because this reference is wrong, although I link the link to a full link (rather than http: //myserver/css/myfile.css/css/myfile.css) Can be a second best option because they have access to my server.

If there is no way to do this in a cake, then to read the contents of the file is just a quick way to use PHP and dump it into view? I think I can do this with the controller, though it seems like a bad hack.

Any ideas will be appreciated, thanks

You can use readfile () to print in.

Or you could $ this-> gt; ; Html-> Url ('css / yourcss.css', true) To get the full path to the file and also pass it to the CSS method.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -