Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How do I define a global variable after the Codeigniter instantiation?
Post: RE: How do I define a global variable after the Co...

InsiteFX Wrote: (08-31-2021, 04:04 AM) -- You would need to either place it in the BaseController or create a library for it using static variable. OrĀ  use Events, see below: CodeIgniter 4 User G...
367 Views
3 Replies
08-31-2021, 04:10 AM
castle
    Thread: How do I define a global variable after the Codeigniter instantiation?
Post: How do I define a global variable after the Codeig...

Hi, This post (https://stackoverflow.com/questions/17013397/codeigniter-best-place-to-declare-global-variable) recommends putting global variables in Code: -- /application/config/constants.php --...
367 Views
3 Replies
08-31-2021, 02:04 AM
castle
    Thread: Cookie vs Session? Did I got wrong?
Post: RE: Cookie vs Session? Did I got wrong?

wuuyun Wrote: (08-24-2021, 12:17 AM) -- session and cookie all can use in ci4 -- I need to work with ci3 for now. Is there a secure way of doing a "remember me" login using session?
900 Views
3 Replies
08-24-2021, 01:02 AM
castle
    Thread: Cookie vs Session? Did I got wrong?
Post: Cookie vs Session? Did I got wrong?

Hi, I read that I could implement the "remember me" functionality using CI built-in Session Library, instead of using cookies. Is that true? If yes, is there any tutorial where I can find that? Chee...
900 Views
3 Replies
08-23-2021, 11:54 PM
castle
    Thread: Is there a correct way of using Flashdata? The doc seems confusing.
Post: RE: Is there a correct way of using Flashdata? The...

jreklund Wrote: (07-22-2020, 04:39 AM) -- Personally I'm using it like this. PHP Code: -- // Helper function if ( ! function_exists('get_flashdata')) { function get_flashdata($name = NULL, ...
1,392 Views
3 Replies
07-22-2020, 09:14 AM
castle
    Thread: Is there a correct way of using Flashdata? The doc seems confusing.
Post: Is there a correct way of using Flashdata? The doc...

Hi, I'm confused with the documentation about flashdata. First the doc shows how to use flashdata http://codeigniter.com/userguide3/libraries/sessions.html?highlight=flashdata#flashdata Then ...
1,392 Views
3 Replies
07-22-2020, 03:47 AM
castle
    Thread: Can we setup HMVC without the Modular Extensions?
Post: RE: Can we setup HMVC without the Modular Extensio...

Nothing guys?
1,064 Views
2 Replies
03-07-2019, 07:54 PM
castle
    Thread: Can we setup HMVC without the Modular Extensions?
Post: Can we setup HMVC without the Modular Extensions?

Is there a way to setup/use HMVC or something similiar without the Modular Extensions? Maybe cascading from MY_Controller? Thanks
1,064 Views
2 Replies
03-05-2019, 08:59 PM
castle
    Thread: How to setup your codeigniter projects
Post: RE: How to setup your codeigniter projects

InsiteFX Wrote: (03-02-2019, 11:42 AM) -- No I'am not using HMVC, The Base controller will hold all the methods that are needed in the Frontend and Backend controllers. The Backend controller if for...
4,467 Views
5 Replies
03-04-2019, 12:14 AM
castle
    Thread: How to setup your codeigniter projects
Post: RE: How to setup your codeigniter projects

@InsiteFX What is the advantage of your approach? It looks good, I just didn't understand the needs of Base.php controller. Are you doing a HMVC approach?
4,467 Views
5 Replies
03-02-2019, 11:00 AM
castle
    Thread: Where do I learn about CodeIgniter core (I mean the 'system' folder)?
Post: RE: Where do I learn about CodeIgniter core (I mea...

ciadmin Wrote: (03-01-2019, 01:31 AM) -- The closest thing is the application flow chart (https://www.codeigniter.com/user_guide/overview/appflow.html) in the user guide.There was talk, a few years b...
1,612 Views
3 Replies
03-01-2019, 08:14 AM
castle
    Thread: Where do I learn about CodeIgniter core (I mean the 'system' folder)?
Post: Where do I learn about CodeIgniter core (I mean th...

Hey, I'm wondering if there is any documentation about CI core itself. Any information architecture, flowcharts or something that gives a glimpse of how the CI works under the hood. Thanks
1,612 Views
3 Replies
02-28-2019, 11:54 PM
castle
    Thread: Using get_where to get data between today and last x days from database
Post: RE: Using get_where to get data between today and ...

jreklund Wrote: (01-07-2019, 01:32 PM) -- As you are passing BETWEEN... as a value it's being escaped. Maybe you can do it like: 'payment_timestamp BETWEEN DATE_SUB(NOW(), INTERVAL 7 DAY) AND NOW...
1,433 Views
2 Replies
01-07-2019, 04:12 PM
castle
    Thread: Using get_where to get data between today and last x days from database
Post: Using get_where to get data between today and last...

This is working: PHP Code: -- $this->db->select('*'); $this->db->where('payment_timestamp BETWEEN DATE_SUB(NOW(), INTERVAL 7 DAY) AND NOW()'); $this->db->where('vendor', $id); $data['dash_sale_d'] =...
1,433 Views
2 Replies
01-07-2019, 12:49 PM
castle
    Thread: How to limit the number of items in the cart library?
Post: How to limit the number of items in the cart libra...

Hello, I hope any one can help me. How would you limit the number of items in the current (I now is a deprecated library) shopping cart? I want to limit to just one purchase at time, but I cannot f...
752 Views
0 Replies
10-02-2018, 12:32 AM
castle
    Thread: Seeking advices in how to create several accounts for a single vendor.
Post: RE: Seeking advices in how to create several accou...

Thank you guys. Do you mean something like this? (plz see the attachment). @skunkbad i'll check your library.
3,290 Views
6 Replies
03-26-2018, 09:25 PM
castle
    Thread: Seeking advices in how to create several accounts for a single vendor.
Post: RE: Seeking advices in how to create several accou...

Sorry, I don't see how it could help me.
3,290 Views
6 Replies
03-25-2018, 09:20 PM
castle
    Thread: Seeking advices in how to create several accounts for a single vendor.
Post: Seeking advices in how to create several accounts ...

Hello, I'm building an multi-vendor ecommerce website and I need some help with a request that I just got. By default, the website will create a single account per vendor. The request I got is to a...
3,290 Views
6 Replies
03-25-2018, 08:49 PM
castle
    Thread: Help in converting vanilla PHP to CI (AJAX + filter + infinity scroll)
Post: RE: Help in converting vanilla PHP to CI (AJAX + f...

Thank you.
3,789 Views
6 Replies
03-23-2018, 08:30 AM
castle
    Thread: Help in converting vanilla PHP to CI (AJAX + filter + infinity scroll)
Post: RE: Help in converting vanilla PHP to CI (AJAX + f...

Could you give an example?
3,789 Views
6 Replies
03-23-2018, 06:22 AM
castle

Theme © iAndrew 2016 - Forum software by © MyBB