f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
206 stars 89 forks source link

Suggestions for Base::redirects #294

Closed soyleung closed 4 years ago

soyleung commented 4 years ago

I try to use base:: redirects to jump to other pages.

But I found that there was too much consumption of $init resources in redirects.

So I changed the $init mode, read it statically, and found that the optimization was better.

I don't know what this is about.

1.Add to

+static
+    $init;

2,delete in private

-    $init;

3,replace

$this->init;

to

self::init;
ikkez commented 4 years ago

This doesn't make much sense. Can you explain the WHY a bit more detailed please?!