mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: Remove deprecated View::$currentSection
(#9403)
* refactor: Remove deprecated `View::$currentSection` * docs: Update changelog
This commit is contained in:
parent
4c16324780
commit
b635a1790f
@ -124,16 +124,6 @@ class View implements RendererInterface
|
||||
*/
|
||||
protected $sections = [];
|
||||
|
||||
/**
|
||||
* The name of the current section being rendered,
|
||||
* if any.
|
||||
*
|
||||
* @var string|null
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
protected $currentSection;
|
||||
|
||||
/**
|
||||
* The name of the current section being rendered,
|
||||
* if any.
|
||||
@ -420,8 +410,6 @@ class View implements RendererInterface
|
||||
*/
|
||||
public function section(string $name)
|
||||
{
|
||||
// Saved to prevent BC.
|
||||
$this->currentSection = $name;
|
||||
$this->sectionStack[] = $name;
|
||||
|
||||
ob_start();
|
||||
|
@ -200,6 +200,7 @@ Removed Deprecated Items
|
||||
``clean_path()`` function instead.
|
||||
- **Router:** The deprecated ``CodeIgniter\Router\Exceptions\RedirectException`` has been removed. Use ``CodeIgniter\HTTP\Exceptions\RedirectException`` instead.
|
||||
- **Constants:** The deprecated constants ``EVENT_PRIORITY_*`` in has been removed. Use the class constants ``CodeIgniter\Events\Events::PRIORITY_LOW``, ``CodeIgniter\Events\Events::PRIORITY_NORMAL`` and ``CodeIgniter\Events\Events::PRIORITY_HIGH`` instead.
|
||||
- **View:** The deprecated property ``CodeIgniter\View\View::$currentSection`` has been removed.
|
||||
|
||||
************
|
||||
Enhancements
|
||||
|
Loading…
x
Reference in New Issue
Block a user