Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Override page cache functionality
Post: RE: Override page cache functionality

I solved it by overriding cache() in App\Common.php. If the user is logged in and the user is not under the admin section it should use the dummy handler. They will then never get cache response. The...
1,927 Views
1 Replies
10-23-2020, 08:09 AM
legon614
    Thread: Override page cache functionality
Post: Override page cache functionality

Hi, I would like to use the page cache with  Code: -- $this->cachePage(600); -- However, it should never use the cache is the user is logged in on site. I can check this with  Code: -- if ($s...
1,927 Views
1 Replies
10-22-2020, 12:14 AM
legon614
    Thread: Apache and sub folder
Post: Apache and sub folder

I have an old CI3 site on /, and the new CI4 site on /beta. They are both running Apache and I'm tring to get .htaccess to work. I want of course to go to /beta/public/index.php no matter the URL. And...
2,059 Views
1 Replies
10-07-2020, 01:50 AM
legon614
    Thread: Conditional layout templates
Post: Conditional layout templates

I want to use layout templates instead of doing this: PHP Code: --             echo view('html_top', $vars);             echo view($view, $vars);             echo view('html_bottom', $vars); -- ...
3,028 Views
2 Replies
08-20-2020, 09:32 AM
legon614
    Thread: View cell controllers in a folder
Post: RE: View cell controllers in a folder

jreklund Wrote: (08-20-2020, 08:39 AM) -- Hi, this should do the trick. PHP Code: -- namespace App\Controllers\ViewCells; use \App\Controllers\BaseController; // rest as is -- or PH...
8,035 Views
8 Replies
08-20-2020, 09:16 AM
legon614
    Thread: View cell controllers in a folder
Post: RE: View cell controllers in a folder

InsiteFX Wrote: (08-20-2020, 03:08 AM) -- Did you change the namespace when you moved them? -- I tried... with App\Controllers\ViewCells - the same as the folder structure. But it extends BaseContr...
8,035 Views
8 Replies
08-20-2020, 05:46 AM
legon614
    Thread: View cell controllers in a folder
Post: RE: View cell controllers in a folder

jreklund Wrote: (08-19-2020, 01:00 PM) -- Hi, you need to show us some code, on how you try to load it. And information on how you named them. As case sensitivity are importent. -- From the view: ...
8,035 Views
8 Replies
08-20-2020, 05:45 AM
legon614
    Thread: View cell controllers in a folder
Post: View cell controllers in a folder

Hi, I started using view cells, which is really nice. I have the logic in App\Controllers and it works like a charm. Now I want to move them to App\Controllers\ViewCells folder, but I get an error. ...
8,035 Views
8 Replies
08-19-2020, 11:14 AM
legon614
    Thread: Data flow (Controller filters and redirects)
Post: Data flow (Controller filters and redirects)

I have an application where I need to fetch alot of data from MySQL and I do so with my models. I use my models in the BaseControllers construct to be able to use them in all my controllers. I also...
761 Views
0 Replies
08-10-2020, 02:49 AM
legon614

Theme © iAndrew 2016 - Forum software by © MyBB