Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Upgrade Model CI3 to CI4
Post: RE: Upgrade Model CI3 to CI4

Try this I hope it will help you get what you are looking for PHP Code: -- namespace App\Models; use CodeIgniter\Model; class myClass extends Model {     public function myFunc()    ...
566 Views
3 Replies
02-16-2021, 01:55 AM
Chivinsdev
    Thread: Global Filter not working for error pages
Post: Global Filter not working for error pages

I have set some filters to redirect a person to login page if not logged in but now its not showing 404 error page if the page is not found instead it redirect me to login also. Is there anyway i ca...
210 Views
0 Replies
02-15-2021, 10:27 AM
Chivinsdev
    Thread: Unable to load the requested class: Url
Post: RE: Unable to load the requested class: Url

I am not sure if codeigniter have a class called url. If you want to use the url helper in codeigniter 4 use helper('url') and in codeigniter 3 use in your controller $this->load->helper('url') and in...
810 Views
4 Replies
01-26-2021, 03:01 AM
Chivinsdev
    Thread: cookie not working in libraries
Post: cookie not working in libraries

Please what is wrong with this code? the cookie area is not working at all PHP Code: --
514 Views
0 Replies
05-02-2020, 03:21 PM
Chivinsdev
    Thread: Cookie not working in codeigniter 4. Need helper
Post: RE: Cookie not working in codeigniter 4. Need help...

Leo Wrote: (04-20-2020, 03:18 PM) -- I was able to set and read a cookie just fine with your stripped code. You probably have a problem with your getConfig() function. Heres a stripped to barebones c...
4,433 Views
8 Replies
04-20-2020, 03:37 PM
Chivinsdev
    Thread: Cookie not working in codeigniter 4. Need helper
Post: RE: Cookie not working in codeigniter 4. Need help...

Leo Wrote: (04-19-2020, 02:12 PM) -- Hi, can you post your code? Some guy on the forum was trying to set a cookie with a negative timestamp. -- Here is the my code for setting the cookie if ($re...
4,433 Views
8 Replies
04-20-2020, 01:35 PM
Chivinsdev
    Thread: Cookie not working in codeigniter 4. Need helper
Post: Cookie not working in codeigniter 4. Need helper

Hello I try to use the cookie system to store some information and also retrieve it I discovered that all the helper is not working. In my library class fore remember me I try using the set_cookie(),...
4,433 Views
8 Replies
04-19-2020, 08:46 AM
Chivinsdev
    Thread: How to create custom view folder
Post: RE: How to create custom view folder

kilishan Wrote: (04-17-2020, 08:50 PM) -- IIRC the renderer service is instantiated earlier in the process, so the shared copy in the app has app/Views as its view folder. I believe all you need to d...
908 Views
3 Replies
04-17-2020, 11:25 PM
Chivinsdev
    Thread: How to create custom view folder
Post: How to create custom view folder

Hello friends, Please I want someone to help me on this. I am trying to change the view folder to something else like "themes". And I will like this folder to be in the root directory. I try using ...
908 Views
3 Replies
04-17-2020, 06:09 PM
Chivinsdev
    Thread: help me write this mysql query in codeigniter
Post: RE: help me write this mysql query in codeigniter

acebay Wrote: (11-12-2019, 03:49 PM) -- Piotr Wrote: (11-12-2019, 09:27 AM) -- PHP Code: -- Easiest way: $q = $this->db->query("SELECT *, ABS( post_code - 2015 ) AS distance FROM list_data WHERE...
3,542 Views
10 Replies
11-18-2019, 07:34 AM
Chivinsdev
    Thread: help me write this mysql query in codeigniter
Post: RE: help me write this mysql query in codeigniter

I am happy it work. Thanks for your reply. enjoy!!!
3,542 Views
10 Replies
11-12-2019, 04:46 AM
Chivinsdev
    Thread: help me write this mysql query in codeigniter
Post: RE: help me write this mysql query in codeigniter

Try this one I hope it will help you get what you are looking for. in your controller. Either you autoload the database in autoload file or you load it to the controller straight by PHP Code: -- $...
3,542 Views
10 Replies
11-12-2019, 03:12 AM
Chivinsdev
    Thread: Redirect Not Working CI4
Post: RE: Redirect Not Working CI4

Quote: -- I tried everthing with (/), adding to routes of course. With only redirect(); A lot of things... but seems like something changes in CI4 that I dont get it. SYSTEMPATH/HTTP\Exceptions\HT...
16,233 Views
16 Replies
11-11-2019, 09:21 AM
Chivinsdev
    Thread: Starting with Myth:Auth - some questions
Post: RE: Starting with Myth:Auth - some questions

Poetawd Wrote: (11-01-2019, 09:25 AM) -- kilishan Wrote: (11-01-2019, 09:16 AM) -- Poetawd Wrote: (11-01-2019, 09:13 AM) -- Another question, is auto-loading really required ? I mean, is it going t...
9,563 Views
16 Replies
11-06-2019, 04:15 AM
Chivinsdev
    Thread: Image not showing in codeigniter 4
Post: RE: Image not showing in codeigniter 4

durairaj Wrote: (11-06-2019, 12:19 AM) --
12,951 Views
12 Replies
11-06-2019, 03:37 AM
Chivinsdev
    Thread: Making auto detecting of base url to be compatible with composer
Post: RE: Making auto detecting of base url to be compat...

InsiteFX Wrote: (10-20-2019, 12:14 PM) -- PHP Code: -- // Wrong! // Should be written like this.
1,796 Views
2 Replies
10-24-2019, 07:04 AM
Chivinsdev
    Thread: Making auto detecting of base url to be compatible with composer
Post: Making auto detecting of base url to be compatible...

Hello I love detecting my base url automatically which I discovered not compatible with composer base on http and at the same time not compatible to public file assets including such as: PHP Code: ...
1,796 Views
2 Replies
10-19-2019, 07:13 PM
Chivinsdev
    Thread: How to remove public/index.php/ from url
Post: RE: How to remove public/index.php/ from url

Based on your issue. I had the same problem look. I created two .htaccess file one at the public folder and the other at the root directory but no success so. This is how I solved my own problem => I ...
20,095 Views
13 Replies
10-16-2019, 09:32 AM
Chivinsdev
    Thread: Can't Redirect Well In Codeigniter 4
Post: Can't Redirect Well In Codeigniter 4

Hello My Pros, How are you today please I am having issue to redirect to page. I customise my app/Config/App.php by adding constructor to it where I auto set the base url like this PHP Code: -- pub...
722 Views
0 Replies
10-16-2019, 07:17 AM
Chivinsdev

Theme © iAndrew 2016 - Forum software by © MyBB