cakephp-1.3 > HtmlHelper :: css()
HtmlHelper
A
AclBase
AclBehavior
AclComponent
AclNode
AclShell
Aco
AcoAction
AjaxHelper
ApcEngine
ApiShell
App
AppController
AppController
AppHelper
AppHelper
AppModel
AppModel
Aro
AuthComponent
B
BakeShell
BakeTask
BehaviorCollection
C
Cache
CacheEngine
CacheHelper
CakeErrorController
CakeLog
CakeRoute
CakeSchema
CakeSession
CakeSocket
ClassRegistry
Component
Configure
ConnectionManager
ConsoleShell
ContainableBehavior
Controller
ControllerTask
CookieComponent
D
DataSource
DbAcl
DbAclSchema
DbConfigTask
DboMssql
DboMysql
DboMysqlBase
DboMysqli
DboOracle
DboPostgres
DboSource
DboSqlite
Debugger
Dispatcher
E
EmailComponent
ErrorHandler
ErrorHandler
ExtractTask
F
File
FileEngine
FileLog
FixtureTask
Folder
FormHelper
H
Helper
HtmlHelper
HttpSocket
I
I18n
I18nModel
i18nSchema
I18nShell
Inflector
IniAcl
J
JavascriptHelper
JqueryEngineHelper
JsBaseEngineHelper
JsHelper
L
L10n
M
MagicDb
MagicFileResource
MediaView
MemcacheEngine
Model
ModelBehavior
ModelTask
MootoolsEngineHelper
Multibyte
N
NumberHelper
O
Object
Overloadable
Overloadable
Overloadable2
Overloadable2
P
PagesController
PagesController
PaginatorHelper
Permission
PluginShortRoute
PluginTask
ProjectTask
PrototypeEngineHelper
R
RequestHandlerComponent
Router
RssHelper
S
Sanitize
Scaffold
ScaffoldView
SchemaShell
Security
SecurityComponent
SessionComponent
SessionHelper
SessionsSchema
Set
Shell
ShellDispatcher
String
T
TemplateTask
TestSuiteShell
TestTask
TextHelper
ThemeView
TimeHelper
TranslateBehavior
TreeBehavior
V
Validation
View
ViewTask
X
XcacheEngine
Xml
XmlElement
XmlHelper
XmlManager
XmlNode
XmlTextNode
css
line:336 at
/cake/libs/view/helpers/html.php
Creates a link element for CSS stylesheets.
Method
(string)
css
($path, $rel = null, $options = array())
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$path | mixed | required The name of a CSS style sheet or an array containing names of CSS stylesheets. If `$path` is prefixed with '/', the path will be relative to the webroot of your application. Otherwise, the path will be relative to your CSS path, usually webroot/css. | |
$rel | string | optional Rel attribute. Defaults to "stylesheet". If equal to 'import' the stylesheet will be imported. | null |
$options | array | optional Array of HTML attributes. | array() |
Return
stringComment
Creates a link element for CSS stylesheets.
### Options
- `inline` If set to false, the generated tag appears in the head tag of the layout. Defaults to true
@param mixed $path The name of a CSS style sheet or an array containing names of
CSS stylesheets. If `$path` is prefixed with '/', the path will be relative to the webroot
of your application. Otherwise, the path will be relative to your CSS path, usually webroot/css.
@param string $rel Rel attribute. Defaults to "stylesheet". If equal to 'import' the stylesheet will be imported.
@param array $options Array of HTML attributes.
@return string CSS <link /> or <style /> tag, depending on the type of link.
@access public
@link http://book.cakephp.org/view/1437/css
### Options
- `inline` If set to false, the generated tag appears in the head tag of the layout. Defaults to true
@param mixed $path The name of a CSS style sheet or an array containing names of
CSS stylesheets. If `$path` is prefixed with '/', the path will be relative to the webroot
of your application. Otherwise, the path will be relative to your CSS path, usually webroot/css.
@param string $rel Rel attribute. Defaults to "stylesheet". If equal to 'import' the stylesheet will be imported.
@param array $options Array of HTML attributes.
@return string CSS <link /> or <style /> tag, depending on the type of link.
@access public
@link http://book.cakephp.org/view/1437/css