Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Autoload class in codeigniter
Post: RE: Autoload class in codeigniter

kenjis Wrote: (10-14-2023, 01:17 AM) -- If you want the classes in your module to be autoloaded, create a Composer package. See https://codeigniter4.github.io/CodeIgniter4/extending/composer_package...
790 Views
3 Replies
10-14-2023, 05:25 AM
Chivinsdev
    Thread: Autoload class in codeigniter
Post: Autoload class in codeigniter

How to autoload class and its namespace in codeigniter 4 without manual adding to autoload.php config file. From the autoloader class i saw a method name addNamespace(). So where is the best time to u...
790 Views
3 Replies
10-14-2023, 12:32 AM
Chivinsdev
    Thread: How to set variable in .env file programity
Post: RE: How to set variable in .env file programity

Hello friend, Use this small snippet I wrote. I hope it will do exactly what you want I am currently using it in my premium script. PHP Code: -- if (!function_exists('set_env')) {     function s...
943 Views
1 Replies
04-17-2023, 10:08 AM
Chivinsdev
    Thread: Watermark image to another image
Post: Watermark image to another image

Hello mates, Please you guys should help me on this. I am trying to add logo image to product images but not seeing image watermark except text watermark. Please can anyone help me on this. Best r...
1,828 Views
3 Replies
08-19-2022, 07:41 AM
Chivinsdev
    Thread: How to auto route in modules
Post: RE: How to auto route in modules

kenjis Wrote: (01-15-2022, 05:03 PM) -- Why do you need this? All you have to do now is to write Config/Routes.php. https://codeigniter4.github.io/CodeIgniter4/general/modules.html#routes And ...
1,939 Views
2 Replies
01-15-2022, 10:46 PM
Chivinsdev
    Thread: How to auto route in modules
Post: How to auto route in modules

Hello Codeigniter teams,  Please how can I also auto route in codeigniter modules. I will be needing this feature
1,939 Views
2 Replies
01-15-2022, 01:37 PM
Chivinsdev
    Thread: Helper_array to class
Post: RE: Helper_array to class

iRedds Wrote: (01-01-2022, 12:27 AM) -- First of all, i ask the team for feedback. I want to move the function code into a separate class/classes and place them in the \CodeIgniter\Features namespac...
4,416 Views
5 Replies
01-03-2022, 08:27 AM
Chivinsdev
    Thread: How to create custom view folder
Post: RE: How to create custom view folder

jekslek Wrote: (04-19-2020, 05:51 AM) -- Chivinsdev Wrote: (04-17-2020, 06:09 PM) -- Hello friends, Please I want someone to help me on this. I am trying to change the view folder to something els...
3,512 Views
4 Replies
01-03-2022, 08:12 AM
Chivinsdev
    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()    ...
1,809 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...
826 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...
2,640 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: --
985 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...
10,607 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...
10,607 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(),...
10,607 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...
3,512 Views
4 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 ...
3,512 Views
4 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...
8,654 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!!!
8,654 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: -- $...
8,654 Views
10 Replies
11-12-2019, 03:12 AM
Chivinsdev

Theme © iAndrew 2016 - Forum software by © MyBB