We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phalcon\Html\Helper\Title
invoke
The Title helper has the following __invoke parameters
Title
__invoke
public function __invoke( string $separator = '', string $indent = '', string $delimiter = PHP_EOL ): Title
This works fine when one sets the title from the controller like so:
$this ->tag ->title(' : ') ->set('AWESOME APP') ->append('Home')
which should produce a
<title>AWESOME APP : Home</title
However in the view, the call
{{ tag.title() }}
produces
<title>AWESOME APPHome</title
because the separator is overwritten. To achieve the desired behavior the volt code has to be changed to
{{ tag.title(' : ') }}
which forces developers to use the separator in two spots.
The signature of __invoke has to change, and the separator has to be removed
The text was updated successfully, but these errors were encountered:
Resolved in #15867
Sorry, something went wrong.
fix(html\helper\title): removed separator from __invoke; added setSep…
097e6ef
…arator method Related phalcon/cphalcon#15866 Refs phalcon#6.0.x
6354909
…arator method Related phalcon/cphalcon#15866 Refs #6.0.x
niden
Successfully merging a pull request may close this issue.
The
Title
helper has the following__invoke
parametersThis works fine when one sets the title from the controller like so:
which should produce a
However in the view, the call
{{ tag.title() }}
produces
because the separator is overwritten. To achieve the desired behavior the volt code has to be changed to
which forces developers to use the separator in two spots.
The signature of
__invoke
has to change, and the separator has to be removedThe text was updated successfully, but these errors were encountered: