Aleksandar Belic
b566dd522c
Fixes #15272 : Removed type attribute from script tag
7 years ago
E.Alamo
e07219c812
Fixes #13996 : Added `yii\web\View::registerJsVar()` method that allows registering JavaScript variables
7 years ago
Alex Yashkin
2246786483
Fixed jQuery onLoad event handling
...
Fixes #15086
7 years ago
Robin Kamps
75e8bfdc58
Fixes #14087 : Added `yii\web\View::registerCsrfMetaTags()` method that registers CSRF tags dynamically ensuring that caching doesn't interfere
7 years ago
SilverFire - Dmitry Naumenko
18689c5ed1
Added missing bracket
7 years ago
SilverFire - Dmitry Naumenko
3a8feb17a8
Updated `yii\web\View` to register JS in jQuery 3.0 compatible way
7 years ago
Carsten Brandt
13d35c4e03
add notes to View register JS and CSS file methods
...
explain why assetmanager features are not available in these methods.
close #14382
related to #10297 , #9101
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Craig London
e360457091
function clear() -- Set populated arrays to empty arrays ( #14067 )
...
`yii\web\View::clear()` sets populated arrays to empty arrays
7 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
SilverFire - Dmitry Naumenko
3ec3ce9312
Reverted #10429 because of BC breaking
8 years ago
SilverFire - Dmitry Naumenko
f3dc5c437d
Fixed replacement of alias more than once in View::registerJsFile() and View::registerCssFile(), updated tests
8 years ago
SilverFire - Dmitry Naumenko
9931324e48
Fixed regression in View::registerJsFile, View::registerCssFile
...
Closes #12544
8 years ago
SilverFire - Dmitry Naumenko
78edcd0b51
Fixed typo in `yii\web\View::registerJsFile()`
8 years ago
SilverFire - Dmitry Naumenko
c3622bb1ad
Added tests for #10429
8 years ago
Evgeniy Tkachenko
fd6dd73cec
`AssetManager::getAssetUrl()` fixed to get URL when `appendedTimestamp` is true
8 years ago
Klimov Paul
c41ced6f1a
PhpDoc for `\yii\web\View::registerJsFile()` improved
8 years ago
Newerton
f6ff90f672
Fixes #12082 : Used `jQuery.on(` instead of event method to ensure forwards compatibility
8 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Carsten Brandt
c105622004
example for a link tag: issue #2803
...
[ci skip]
10 years ago
Qiang Xue
61b7079993
Fixes #6007 : added doc about asset bundle name [skip ci]
10 years ago
Qiang Xue
e7de579ee6
Fixes #5202 : View::registerJsFiles should not strip leading backlashes for protocol relative URL
10 years ago
Qiang Xue
2f526521ce
new asset WIP
10 years ago
Qiang Xue
f51a263570
new asset management WIP
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
dfa0bc8d06
Fixes #3897 : Raised visibility of `yii\web\View::registerAssetFiles()` to protected
10 years ago
Qiang Xue
6b799d392d
Fixes #3358 : Removed automatic CSRF meta tag generation by `View`. Added `Html::csrfMetaTags()` and its call to main layout files
10 years ago
Qiang Xue
4fcd5003de
Fixes #2906 : Added support for using conditional comments for js and css files registered through asset bundles and Html helper
11 years ago
Carsten Brandt
6fe63a217f
view did not use the correct assetmanager
11 years ago
Qiang Xue
664d2aa007
Supported adding a new response formatter without the need to reconfigure existing formatters
11 years ago
Qiang Xue
a0f9a6d701
Fixes #2937
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Qiang Xue
44d9d0dabb
Fixes #2820
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
26cb7b2a3c
Renamed `fooVar` to `fooParam` for various classes.
11 years ago
Qiang Xue
1cd3f2bbd7
Fixed test break.
11 years ago
Qiang Xue
80d69a6551
Renamed csrfParam back to csrfVar for consistency.
11 years ago
Qiang Xue
677ee94bb1
Fixes #2386
11 years ago
Dilip
85a8191f6e
Changed csrf-var to csrf-param
...
Changed csrf-var to csrf-param due to meta validation error. The validation error as mentioned in the issue https://github.com/yiisoft/yii2/issues/2363 . It is fixed in this pull request.
11 years ago
Qiang Xue
fb4b0ae98d
The scripts in asset bundles are now registered in `View` at the end of `endBody()`. It was done in `endPage()` previously
11 years ago
Qiang Xue
2dc341f893
not sending csrf header in ajax response.
11 years ago
Qiang Xue
4433a67f8e
Added `yii\web\View::clear()`
11 years ago
Qiang Xue
02b908bd9c
Fixes #938 : added `yii\web\View::renderAjax` and `yii\web\Controller::renderAjax`.
11 years ago
Carsten Brandt
262189533a
huge amount of documentation link fixes
11 years ago
Qiang Xue
861c2b2f9c
Added `yii\web\View::POS_LOAD`
11 years ago
Carsten Brandt
bc9b62c314
url of CSS and JS files registered in View can be url alias
...
fixes #2132 , fixes #2133
11 years ago
Alexander Makarov
5d23a066ca
Removed unused imports
11 years ago
Qiang Xue
58e847258f
Renamed Request::maskedCsrfToken to csrfToken.
11 years ago