Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to create templates
Post: RE: How to create templates

Which version of CodeIgniter are you using? If it's the latest CI4 - templating is very easy. Take a look at this - https://codeigniter4.github.io/userguide/outgoing/view_layouts.html Step 1 - ...
4,876 Views
6 Replies
04-18-2019, 05:29 AM
happyape
    Thread: How to setup a route for an optional second param?
Post: RE: How to setup a route for an optional second pa...

Yes I already tried and it throws up error too. The only way I can get working is by using a regular expression with an optional flag.
1,767 Views
3 Replies
03-18-2019, 01:32 AM
happyape
    Thread: How to setup a route for an optional second param?
Post: How to setup a route for an optional second param?

Do I need to setup two rules in the Routes.php for these two urls? Code: -- 1) http://mydomain.example/show-list 2) http://mydomain.example/show-list/25 -- PHP Code: -- Rule 1) $routes->add...
1,767 Views
3 Replies
03-11-2019, 10:03 AM
happyape
    Thread: Correct permissions for Writable folder?
Post: RE: Correct permissions for Writable folder?

InsiteFX Wrote: (03-09-2019, 02:35 PM) -- Or 775 776 -- Thanks
23,177 Views
6 Replies
03-11-2019, 08:13 AM
happyape
    Thread: Correct permissions for Writable folder?
Post: Correct permissions for Writable folder?

Could somebody show me what permissions do I need to setup for Writable and it's sub folders? I am getting this error CodeIgniter\Cache\Exceptions\CacheException Cache unable to write to /va...
23,177 Views
6 Replies
03-08-2019, 10:35 AM
happyape
    Thread: Database query in a controller method?
Post: RE: Database query in a controller method?

Ok that's great to get that confirmation! Thank you @kilishan
1,218 Views
2 Replies
03-07-2019, 07:36 AM
happyape
  Thumbs Up Thread: Database query in a controller method?
Post: Database query in a controller method?

Every now and then I need to run a quick database query which doesn't really belong to any of the Models. Or even when setting a quick demo site, I need a quick and dirty way. In CI3, I could just do ...
1,218 Views
2 Replies
03-07-2019, 06:20 AM
happyape
    Thread: How to check if a user logged in?
Post: RE: How to check if a user logged in?

Actually I can apply filter directly in the routes.php PHP Code: -- $routes->group('api', ['filter' => 'api-auth'], function($routes) { $routes->resource('users'); }); -- So, that's usefu...
8,122 Views
5 Replies
03-07-2019, 12:16 AM
happyape
    Thread: How to check if a user logged in?
Post: RE: How to check if a user logged in?

Thank you for sharing your solution @elephpantech. PHP Code: -- //app/config/filters.php // List filter aliases and any before/after uri patterns // that they should run on, like: // '...
8,122 Views
5 Replies
03-07-2019, 12:05 AM
happyape
    Thread: How to check if a user logged in?
Post: How to check if a user logged in?

I can check and restrict access to certain methods or controllers by defining a helper method PHP Code: -- function checkLoggedIn() {    if (session('loggedin') == true) {        return true; ...
8,122 Views
5 Replies
03-05-2019, 06:43 AM
happyape
    Thread: CodeIgniter 4.0.0-beta.1 Released
Post: RE: CodeIgniter 4.0.0-beta.1 Released

"New View Layouts provide simple way to create site site view templates" In my opinion this was a must have so well done!
48,851 Views
44 Replies
03-01-2019, 06:23 AM
happyape
    Thread: CI4 - Documentation - 404 errors - Has it moved?
Post: RE: CI4 - Documentation - 404 errors - Has it move...

Thank you. :)
1,631 Views
3 Replies
11-16-2018, 02:36 AM
happyape
    Thread: CI4 - Documentation - 404 errors - Has it moved?
Post: CI4 - Documentation - 404 errors - Has it moved?

Can't seem find to link to CI4 documentation anywhere? The exising links throw 404 errors. Has it moved? https://bcit-ci.github.io/CodeIgniter4/installation/index.html
1,631 Views
3 Replies
11-16-2018, 02:08 AM
happyape
    Thread: CI4 - session not persisting
Post: RE: CI4 - session not persisting

Thanks
5,650 Views
12 Replies
10-23-2018, 10:09 AM
happyape
    Thread: CI4 - session not persisting
Post: RE: CI4 - session not persisting

InsiteFX Wrote: (10-23-2018, 03:44 AM) -- I start the sessions in a Base controller that all the other controllers extend. In the constructor I have the sessions like so. PHP Code: -- /** *...
5,650 Views
12 Replies
10-23-2018, 05:40 AM
happyape
    Thread: CI4 - session not persisting
Post: RE: CI4 - session not persisting

puschie Wrote: (10-22-2018, 06:16 AM) -- do you use the same web server config on host/remote ? you should get the "almost" same result on any host -> so pls compare your configs and look for some un...
5,650 Views
12 Replies
10-23-2018, 01:12 AM
happyape
    Thread: [Solved] Session dont working - Class 'database' not found
Post: RE: Session dont working - Class 'database' not fo...

NespiCMS Wrote: (10-19-2018, 10:20 AM) -- happyape Wrote: (10-19-2018, 07:10 AM) -- NespiCMS Wrote: (10-19-2018, 01:26 AM) -- Sorry, my mistake, this: public $sessionDriver            = '\CodeIgni...
4,549 Views
12 Replies
10-19-2018, 10:45 AM
happyape
    Thread: CI4 - session not persisting
Post: RE: CI4 - session not persisting

I have now tried Database option too but still no luck. Locally, on Windows machine, both files and database work without any issues. I am pretty sure it's something to do with cookies settings but m...
5,650 Views
12 Replies
10-19-2018, 07:51 AM
happyape
    Thread: Database session - No database selected
Post: Database session - No database selected

I was going to ask this question but fortunately found the answer by digging into the session handler file. The main issue is that the documentation doesn't mention yet about this property in the ...
897 Views
0 Replies
10-19-2018, 07:37 AM
happyape
    Thread: [Solved] Session dont working - Class 'database' not found
Post: RE: Session dont working - Class 'database' not fo...

NespiCMS Wrote: (10-19-2018, 01:26 AM) -- Sorry, my mistake, this: public $sessionDriver            = '\CodeIgniter\Session\Handlers\DatabaseHandler'; work fine, thanks a lot! -- Hi how did you...
4,549 Views
12 Replies
10-19-2018, 07:10 AM
happyape

Theme © iAndrew 2016 - Forum software by © MyBB