Closed
Description
Hi there... i have idea about prependTitle and appendTitle- to manage and clear them. Maybe will be useful. What is you opinion?
Now
If we want to clear append or prepend title, must clear all values
\Phalcon\Tag::setTitleSeparator(' - ');
\Phalcon\Tag::setTitle('Title');
// Somewhere in controller
\Phalcon\Tag::prependTitle('Category');
\Phalcon\Tag::prependTitle('Article');
// In some situation, just want to clear all prepended element
\Phalcon\tag::resetInput();
\Phalcon\Tag::setTitleSeparator(' - ');
\Phalcon\Tag::setTitle('Title');
\Phalcon\Tag::prependTitle('Just article');
Idea
A way to clear elements and to add multiple elements at once (why not).
\Phalcon\Tag::setTitleSeparator(' - ');
\Phalcon\Tag::setTitle('Title');
// Somewhere in controller
\Phalcon\Tag::prependTitle('Category');
\Phalcon\Tag::prependTitle('Article');
// Same situation - clear and put just one prepend element (will be faster than clear all values)
\Phalcon\Tag::prependTitle(['Just article']);
// Or other - clear and put a few elements
\Phalcon\Tag::prependTitle(['Other category', 'Other article']);
Details
- Phalcon version: 3.0.0 x64
- PHP Version: 7.0.11 x64
- Operating System: Windows 10
- Server: Apache x64
- Other related info (Database, table schema): MariaDB x64
Hope you understand me. Thanks