Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Database event to copy row to other tables?
Post: RE: Database event to copy row to other tables?

kenjis Wrote: (03-10-2024, 06:26 PM) -- What if only copying to the other table fails? Do you need to use a transaction to roll back? -- That could be...useful, but not showstopping. I'm thinking ...
220 Views
2 Replies
03-11-2024, 01:13 AM
sushiguru
    Thread: Database event to copy row to other tables?
Post: Database event to copy row to other tables?

Hi all I'm wondering what would be the best approach to duplicate a table insert into 'other' tables; for reasons I want to have the same row duplicated into multiple tables, so not sure if the best ...
220 Views
2 Replies
03-10-2024, 03:39 AM
sushiguru
    Thread: Extending core logger service
Post: RE: Extending core logger service

Riiiiight - got you; yes, I'm generally not using $this->logger->info, etc - just log_message('info', 'message'), etc. Good to know, and this is now doing what I need it to do.
427 Views
8 Replies
02-23-2024, 05:27 AM
sushiguru
    Thread: Extending core logger service
Post: RE: Extending core logger service

Hmm - still not sure I'm understanding this one. By adding the log function you suggest, yes, my class is now doing the logging BUT the parent functions I was looking to extend are still doing nothing...
427 Views
8 Replies
02-23-2024, 05:11 AM
sushiguru
    Thread: Extending core logger service
Post: RE: Extending core logger service

Which is why this post exists! On paper it _should_ work...
427 Views
8 Replies
02-23-2024, 03:21 AM
sushiguru
    Thread: Extending core logger service
Post: RE: Extending core logger service

Sorry - I don't understand the question... My understanding of the docs was that, provided the service was loaded in app/services, and the new class was extending the base class, then all methods are...
427 Views
8 Replies
02-22-2024, 06:55 AM
sushiguru
    Thread: Extending core logger service
Post: Extending core logger service

I'm trying to extend the core logger class to send myself an email on critical errors. So far I have the following which is not working, and I'm not sure why... My logger class lives in the app\Libra...
427 Views
8 Replies
02-22-2024, 04:12 AM
sushiguru
    Thread: logrotate for log files
Post: RE: logrotate for log files

Late to the party with this one, but this is what I use in cron to keep CI logs under control: Code: -- 3 23 * * * find "/var/www/html" -name "log*.php" -mtime +14 -exec rm {} \; -- For me, run ...
4,532 Views
3 Replies
11-02-2022, 08:45 AM
sushiguru
    Thread: Call to undefined function CodeIgniter\Test\helper() for CIUnitTestCase
Post: RE: Call to undefined function CodeIgniter\Test\he...

Did you ever get this to work?
4,743 Views
4 Replies
01-20-2022, 03:37 AM
sushiguru
    Thread: Can't get CI4 to run :|
Post: RE: Can't get CI4 to run :|

Dear lord, after losing an afternoon to this and finally posting to ask for help, I solved my own problem. Hopefully this might help someone else... The issue was that the vendor folder was being p...
2,633 Views
3 Replies
09-15-2020, 08:33 AM
sushiguru
    Thread: Can't get CI4 to run :|
Post: Can't get CI4 to run :|

Not new to CI - built many apps on CI3 but felt this was a new project and time to update to CI4. I'm using composer to manage dependencies, and have everything running locally, using the appstarte...
2,633 Views
3 Replies
09-15-2020, 08:10 AM
sushiguru
    Thread: Scheduled CI jobs on MS Azure
Post: Scheduled CI jobs on MS Azure

Hi all Just thought that I'd share my learnings in case there's anyone else looking to do the same thing as I was: run scheduled jobs on a CI site hosted on MS Azure (for db tidying, archiving, any...
2,689 Views
1 Replies
10-07-2017, 05:57 AM
sushiguru

Theme © iAndrew 2016 - Forum software by © MyBB