Skip to content

How to call affected_rows method from ci4 model

I have a model that extends CI4 builtin Model.. Any idea how do i perform the following? thinking of getting it after deleting a row, most of the example using custom model, not extending ci4 model. Answer First, be sure to set your database connection up correctly in app/Config/App.php or in your .env file. …

I have an error while using firebase php which is cURL error 35

I am trying to use php with firebase after installing the package “composer require kreait/firebase-php ^4.0” and adjusting my firebase it shows me that error: Fatal error: Uncaught GuzzleHttpExceptionConnectException: cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ff64t.fi…

Static counter of subclass instances in PHP

I’m aware of a pattern for adding a static counter to a class to count the number of instances of that class class Vehicle { private static $_count=0; public static function getCount() { …

How to show certain rows only in serverside processing?

I would like to show only certain rows to logged in users where “column_name” = “some_value” in serverside-processing. Currently i use following code below. How do i achieve this? Answer We can do this by using instead of simple use complex and then add “column_name = ‘some…