Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How can I work with transactions with the CodeIgniter Query Builder?
Post: RE: How can I work with transactions with the Code...

InsiteFX Wrote: (07-30-2023, 10:56 PM) -- It's in the BaseConnection so I would think that it should work with QueryBuilder. -- I'm need use transaction for payment mechanism, if u say Query Builde...
796 Views
4 Replies
12-23-2023, 01:34 AM
UchihaSV
    Thread: Visual Studio Code cannot detect CI4 functions
Post: RE: Visual Studio Code cannot detect CI4 functions

VS Code still no have CI4 system functions autocomplete? How about add official QoL extension update for CI4? It's hard to write code in 2023 without autocompelete popup help info in line, need keep ...
5,512 Views
5 Replies
06-06-2023, 10:09 AM
UchihaSV
    Thread: View theming
Post: RE: View theming

Mni.day Wrote: (02-15-2023, 10:39 AM) -- UchihaSV Wrote: (02-14-2023, 10:01 PM) -- use $this property and define in initController(RequestInterface $request, ResponseInterface $response, LoggerInter...
966 Views
3 Replies
02-16-2023, 12:11 AM
UchihaSV
    Thread: Run method by trigger after output in another
Post: RE: Run method by trigger after output in another

Mni.day Wrote: (02-15-2023, 03:53 PM) -- If running under fastcgi you can use: fastcgi_finish_request(); -- But how i can use this in controller method without conflict with CI4 Framework system m...
1,018 Views
4 Replies
02-15-2023, 11:16 PM
UchihaSV
    Thread: Run method by trigger after output in another
Post: RE: Run method by trigger after output in another

Can i do this with CI4 Events? I found i can enable event with post_system, but this run on every request, how i can run only after some method called and depends on it result?
1,018 Views
4 Replies
02-15-2023, 06:42 AM
UchihaSV
    Thread: View theming
Post: RE: View theming

use $this property and define in initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
966 Views
3 Replies
02-14-2023, 10:01 PM
UchihaSV
    Thread: Run method by trigger after output in another
Post: Run method by trigger after output in another

Hello i have some method in Main Controller which run by 3rd party API callback(POST data) and i'm catch this and update one single order row in SQL and i need return response code "200" on success or...
1,018 Views
4 Replies
02-14-2023, 09:37 PM
UchihaSV
    Thread: Sql Query Like by Multiple columns
Post: RE: Sql Query Like by Multiple columns

ikesela Wrote: (11-12-2022, 08:05 AM) -- Yes -> can refer this: https://www.mysqltutorial.org/sql-concat-in-mysql.aspx -- Ok, then i can use CONCAT_WS like implode.
2,116 Views
4 Replies
11-12-2022, 08:23 AM
UchihaSV
    Thread: Sql Query Like by Multiple columns
Post: RE: Sql Query Like by Multiple columns

ikesela Wrote: (11-12-2022, 12:30 AM) -- Code: -- $this->userModel->like('CONCAT(last_name,first_name)',$_GET['search']); -- -- Tnx, and if i need space between columns i can use - CONCAT(l...
2,116 Views
4 Replies
11-12-2022, 06:04 AM
UchihaSV
  Question Thread: Sql Query Like by Multiple columns
Post: Sql Query Like by Multiple columns

Hello, i use SQL QB and it's fine, but i need use more flexible - need find data by one string but in multiple concat columns (first_name, last_name, patronymic). For example i need find string "Mark...
2,116 Views
4 Replies
11-11-2022, 07:26 PM
UchihaSV
    Thread: Cookie protection or crypt
Post: RE: Cookie protection or crypt

@"kenjis" Ok, then how we can resolve this problem in simple solution? I'm remember in Ci3 some "secret_key" in settings, when u set like "sghf7hdfg6798hj6789sdfg678jsdf67" and this protect your ses...
1,684 Views
3 Replies
07-31-2022, 05:54 PM
UchihaSV
    Thread: Cookie protection or crypt
Post: Cookie protection or crypt

Hello, we use in Ci4 session and cookie for keep Logined Users and other thing which need be protected. I think session already have some protection from http server. But if need keep some info betwee...
1,684 Views
3 Replies
07-31-2022, 04:01 PM
UchihaSV
    Thread: Create link from current with concat new query
Post: Create link from current with concat new query

Hello, is Ci4 have any function or helper for: Get current url and make new url with appended new GET query params. I think something like this already realized in model pager->links() and need be av...
664 Views
1 Replies
07-31-2022, 03:40 PM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

pconnect alredy false. If i connect and close conections in each method in models its work. But it is not rational. It would be better, if one time autoload all databases with visibility for all ...
18,004 Views
0 Replies
01-15-2015, 08:21 AM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

Avenirer Wrote: (01-15-2015, 07:12 AM) -- Then don't load both databases inside a model. A model is only for one table. And a table is usually found in one database, not spread around databases. Also...
18,004 Views
0 Replies
01-15-2015, 07:34 AM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

CodeIgniter 2.x
18,004 Views
0 Replies
01-15-2015, 07:06 AM
UchihaSV
    Thread: Autoload multi databases
Post: RE: Autoload multi databases

Yes, i alredy use this way. But if i load two models in one controllers, server has 500 Internal error, because load databases in each one models it's not good idea. So i want autoload all my data...
18,004 Views
0 Replies
01-15-2015, 07:05 AM
UchihaSV
    Thread: Autoload multi databases
Post: Autoload multi databases

$autoload['libraries'] = array('database'); It load only default db. How i can autoload, two or more databases?
18,004 Views
0 Replies
01-15-2015, 06:16 AM
UchihaSV
    Thread: CodeIgniter 2.x and shutdown database
Post: RE: CodeIgniter 2.x and shutdown database

I alredy understand what the problem is when looked in print_r($DB2), and i use "if ($DB2->conn_id)".
3,233 Views
0 Replies
01-14-2015, 10:41 AM
UchihaSV
    Thread: CodeIgniter 2.x and shutdown database
Post: CodeIgniter 2.x and shutdown database

I have some database connections, and i load database in controller if necessary. And i want continue my script work, if database is shutdown. But if some database is shutdown, my script stopped wit...
3,233 Views
0 Replies
01-14-2015, 03:21 AM
UchihaSV

Theme © iAndrew 2016 - Forum software by © MyBB