Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Redirect Help
Post: RE: Redirect Help

Thank you for your assistance. Apologies for getting off-topic with this thread.
3,992 Views
10 Replies
02-08-2021, 02:06 PM
stupidscript
    Thread: Redirect Help
Post: RE: Redirect Help

Hmm ... well, still no luck with cookies. In a Model (are cookies also restricted to Controllers, like redirect() is?): Code: -- helper('cookie'); set_cookie('mudcookie','test value',3600); ...
3,992 Views
10 Replies
02-08-2021, 12:05 PM
stupidscript
    Thread: Redirect Help
Post: RE: Redirect Help

Thank you all for your comments and tips. Here are my takeaways: 1) redirect() is not actually a "global" function that is available "at any point", rather, its use is restricted to Controllers. ...
3,992 Views
10 Replies
02-08-2021, 10:53 AM
stupidscript
    Thread: Redirect Help
Post: RE: Redirect Help

Because it may be useful, in addition to the redirect() issue(s), the cookie helper seems to be borked. Doesn't matter if I put this in a Controller or a Model, it does nothing that I can find, and...
3,992 Views
10 Replies
02-05-2021, 04:22 PM
stupidscript
    Thread: Redirect Help
Post: RE: Redirect Help

Please note that I can use redirect()->route('namedroute') only in a Controller function, but it does not work anywhere else. From the CI4 manual: Quote: -- Global Functions and Constants Code...
3,992 Views
10 Replies
02-05-2021, 03:44 PM
stupidscript
    Thread: Redirect Help
Post: Redirect Help

CodeIgniter4 / Ubuntu Linux 20.04.01 LTS / PHP 7.4.3 return redirect ... route('/namedroute'); -- There are no errors logged (unless CI4 throws an error). Just ... nothing happens ... a blank pag...
3,992 Views
10 Replies
02-05-2021, 02:30 PM
stupidscript
    Thread: Which Provides Better Performance?
Post: RE: Which Provides Better Performance?

Okay, I think I got it, now. I appreciate your help.
3,555 Views
4 Replies
09-03-2020, 10:34 AM
stupidscript
    Thread: Which Provides Better Performance?
Post: RE: Which Provides Better Performance?

Thank you for your reply. It makes sense to me, except the "shared instance" note. My understanding is that a "shared instance" is always available to all processes, once it is instantiated, and ma...
3,555 Views
4 Replies
09-02-2020, 11:48 AM
stupidscript
    Thread: Which Provides Better Performance?
Post: Which Provides Better Performance?

When loading models and connecting a database, is there a "best performance" way to do these things? 1) Loading Models: Code: -- use App\Models\MyModel; + $model=new MyModel(); + $model->myMeth...
3,555 Views
4 Replies
09-01-2020, 03:07 PM
stupidscript

Theme © iAndrew 2016 - Forum software by © MyBB