cakephp-1.3 > HtmlHelper :: script()
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
script
line:409 at
/cake/libs/view/helpers/html.php
Returns one or many `<script>` tags depending on the number of scripts given.
Method
(mixed)
script
($url, $options = array())
Parameters
Parameter | Type | Comment | Default |
---|---|---|---|
$url | mixed | required String or array of javascript files to include | |
$options | mixed | optional Array of options, and html attributes see above. If boolean sets $options['inline'] = value | array() |
Return
mixedComment
Returns one or many `<script>` tags depending on the number of scripts given.
If the filename is prefixed with "/", the path will be relative to the base path of your
application. Otherwise, the path will be relative to your JavaScript path, usually webroot/js.
Can include one or many Javascript files.
### Options
- `inline` - Whether script should be output inline or into scripts_for_layout.
- `once` - Whether or not the script should be checked for uniqueness. If true scripts will only be
included once, use false to allow the same script to be included more than once per request.
@param mixed $url String or array of javascript files to include
@param mixed $options Array of options, and html attributes see above. If boolean sets $options['inline'] = value
@return mixed String of `<script />` tags or null if $inline is false or if $once is true and the file has been
included before.
@access public
@link http://book.cakephp.org/view/1589/script
If the filename is prefixed with "/", the path will be relative to the base path of your
application. Otherwise, the path will be relative to your JavaScript path, usually webroot/js.
Can include one or many Javascript files.
### Options
- `inline` - Whether script should be output inline or into scripts_for_layout.
- `once` - Whether or not the script should be checked for uniqueness. If true scripts will only be
included once, use false to allow the same script to be included more than once per request.
@param mixed $url String or array of javascript files to include
@param mixed $options Array of options, and html attributes see above. If boolean sets $options['inline'] = value
@return mixed String of `<script />` tags or null if $inline is false or if $once is true and the file has been
included before.
@access public
@link http://book.cakephp.org/view/1589/script