Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Outside the recent fun from our Terminator
Post: RE: Outside the recent fun from our Terminator

We must understand semantic versioning differently because a minor change such as 3.1 to 3.2 indicates there is no backward compatibility break. While I agree that nobody is interested in CI 3 with ...
dave friend Lounge 1 760 07-07-2020, 06:12 AM
    Thread: Is a beforeFind on a Model a bad idea?
Post: RE: Is a beforeFind on a Model a bad idea?

(06-29-2020, 10:29 PM)tgix Wrote: What am I missing? /Mattias It is possible to define custom events. The (static) class method Events::on() allows you to register an event using any name you like....
dave friend CodeIgniter 4 Support 7 1,401 06-30-2020, 05:44 AM
    Thread: $session is not accessible to view
Post: RE: $session is not accessible to view

(06-28-2020, 12:56 AM)@nuj_3313 Wrote: Thanks! it's work! But is it really required to assign it to view, is it not available automatically, I mean I also have to use the URI segment and other thin...
dave friend CodeIgniter 4 Discussion 5 1,236 06-28-2020, 06:42 AM
    Thread: IntlDateFormatter gregorian calendar
Post: RE: IntlDateFormatter gregorian calendar

(06-28-2020, 05:32 AM)mohs3n Wrote: When I create a new instance of IntlDateFormatter in the controller I get this error: Error Class 'App\Controllers\Panel\Articles\IntlDateFormatter' not found I...
dave friend CodeIgniter 4 Support 3 402 06-28-2020, 06:23 AM
    Thread: Getting path/URL of uploaded files
Post: RE: Getting path/URL of uploaded files

(06-26-2020, 06:34 PM)dariusbaker Wrote: Code:http://localhost:8080/Users/path/to/app/writable/uploads/20200626/1593171870_2ebce4905386e30800cf.jpeg I guess the error makes sense because it points t...
dave friend CodeIgniter 4 Support 2 428 06-27-2020, 06:29 AM
    Thread: Generated SQL query in 4
Post: RE: Generated SQL query in 4

(06-27-2020, 03:17 AM)stepgr Wrote: Hi all, very new to CI and after a short time in v3 I started to getting familiar with v4 . I have some ready sql queries (from phpmyadmin) that I would like to ...
dave friend CodeIgniter 4 Support 2 399 06-27-2020, 06:13 AM
    Thread: Accessing Session Id
Post: RE: Accessing Session Id

(06-27-2020, 03:36 AM)68thorby68 Wrote: Hi, I am a little confused as how to access the Ci4 session id to ensure the correct session is being used.  In the past I would store the session id in the ...
dave friend CodeIgniter 4 Support 1 808 06-27-2020, 06:03 AM
    Thread: Temp data that must be destroyed at end of lifecycle
Post: RE: Temp data that must be destroyed at end of lif...

(06-26-2020, 09:15 AM)vincent78 Wrote: @dave friend: Thanks for your answer I have an abstract class User Maybe, the best solution is to have a public static property in this class : $current_u...
dave friend General Help 5 527 06-26-2020, 11:08 AM
    Thread: Temp data that must be destroyed at end of lifecycle
Post: RE: Temp data that must be destroyed at end of lif...

For v3 using Hooks is probably the way to go. Specifically for your needs, the post_controller hook. It's pretty well explained in the documentation, but let us know if you have implementation quest...
dave friend General Help 5 527 06-26-2020, 08:53 AM
    Thread: Temp data that must be destroyed at end of lifecycle
Post: RE: Temp data that must be destroyed at end of lif...

Which version of CodeIgniter?
dave friend General Help 5 527 06-26-2020, 05:33 AM
    Thread: Single model per aplication .
Post: RE: Single model per aplication .

You don't need the code you show. Any model loaded using $this->load->model(...) already creates a singleton. You can use the Auto-loading Resources feature to make the model available all ...
dave friend CodeIgniter 3.x 1 726 06-25-2020, 06:11 PM
    Thread: CI 3.2 - does it worth it?
Post: RE: CI 3.2 - does it worth it?

I like the idea of full reliance on exceptions. Is that what you are thinking?
dave friend Lounge 4 1,194 06-25-2020, 12:25 PM
    Thread: CI 3.2 - does it worth it?
Post: RE: CI 3.2 - does it worth it?

I am inclined to think of 3.2 as serving to make the jump to a supported version of PHP. PHP v5+ EOL'd at the end of 2018 and PHP v7.2 EOLs at the end of 2020. Jumping to PHP 7.3 might be enough of ...
dave friend Lounge 4 1,194 06-25-2020, 11:04 AM
    Thread: The future of Codeigniter
Post: RE: The future of Codeigniter

(06-25-2020, 09:57 AM)orionstar Wrote: This guy is just lol, this video just made my day... :D https://www.youtube.com/watch?v=h7L7B5A5KmgI agree, he is a joke. However, I'd like to suggest that no...
dave friend Lounge 49 12,788 06-25-2020, 10:21 AM
    Thread: How to send emails using CI 4
Post: RE: How to send emails using CI 4

(06-25-2020, 07:14 AM)carlkyo Wrote: I don't know how to integrate PHPMailer. can you please help many thanks Have you tried using the Email Class that CI v4 provides? If you cannot get that to work...
dave friend CodeIgniter 4 Support 13 7,738 06-25-2020, 09:37 AM
    Thread: Virtual hosting is forcing https
Post: RE: Virtual hosting is forcing https

(06-25-2020, 08:42 AM)InsiteFX Wrote: You can no long use .dev it redirects to google. SEE: A domain just for developers The whole idea of top-level domain ownership feels evil to me. ********** ...
dave friend CodeIgniter 4 Support 6 1,116 06-25-2020, 09:07 AM
    Thread: The CodeIgniter Foundation is finally here.
Post: RE: The CodeIgniter Foundation is finally here.

What is the current status of The CodeIgniter Foundation?
dave friend News & Discussion 23 22,808 06-25-2020, 08:53 AM
    Thread: Custom Classes : general questions
Post: RE: Custom Classes : general questions

(06-23-2020, 05:38 AM)kilden Wrote: Hello, 1 - What do you think about creating a class that I can use in many Models, Views and Controllers ?  2 - Where should I put this class "for a good practic...
dave friend Best Practices 5 1,261 06-23-2020, 06:35 AM
    Thread: Is there an external cart library?
Post: RE: Is there an external cart library?

There are literally dozens of very competent shopping cart libraries for PHP out in the wild. That's the reason none exists in the new CodeIgniter. Find something that's still being maintained and ...
dave friend CodeIgniter 4 Support 2 593 06-22-2020, 07:02 PM
    Thread: ajax redirect to exception/error pages
Post: RE: ajax redirect to exception/error pages

Looking at the URLs you're setting for window.location I pretty sure you are getting redirecting to a 404 anyway. CodeIgniter expects the URL segments after to represent controller/method/args and er...
dave friend CodeIgniter 4 Support 5 923 06-22-2020, 11:36 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.