Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: database sqlsrv : add connection info "language"
Post: database sqlsrv : add connection info "language"

Hello everyone, my app work with several databases, mysql (windows), mariadb (linux) and mssql (windows).  I can connect to sql server database but I need to connect it with the connection info "Lang...
195 Views
1 Replies
11-23-2024, 06:16 AM
nico
    Thread: Lib Validation : permit empty string for valid_email or extend rule
Post: RE: Lib Validation : permit empty string for valid...

Yes, it works ! Thank you.
560 Views
2 Replies
09-04-2024, 05:21 AM
nico
    Thread: Lib Validation : permit empty string for valid_email or extend rule
Post: Lib Validation : permit empty string for valid_ema...

Hello everyone, I want to use validation for mail field which is not required. But empty string is not validated. Is there a method to validate it anyway ? Or the other option I think is to custom th...
560 Views
2 Replies
09-03-2024, 04:55 AM
nico
    Thread: Error page in production (CI 3)
Post: RE: Error page in production (CI 3)

I found a temp solution but I don't like it because I modified a file in system directory : system/core/Common.php : PHP Code: -- function _exception_handler($exception) {     $_error =& loa...
576 Views
2 Replies
07-04-2024, 05:28 AM
nico
    Thread: Error page in production (CI 3)
Post: Error page in production (CI 3)

Hello, Actually, in production mode, an error will send blank page to user. Is it possible to send a fixed error html page (blank page is ambigous for users), just to say there is an error ? In adva...
576 Views
2 Replies
07-04-2024, 04:13 AM
nico
    Thread: request->getPost in __construct & dynamic model's name
Post: RE: request->getPost in __construct & dynamic mode...

I found. PHP Code: --     public function initController( $request, $response, $logger) {         parent::initController($request, $response, $logger);         $name = $this->request->getPost('ta...
1,507 Views
4 Replies
09-14-2022, 10:27 PM
nico
    Thread: request->getPost in __construct & dynamic model's name
Post: RE: request->getPost in __construct & dynamic mode...

Thank you Kenjis. That solved the first point. What about the loading of the model dynamically ?
1,507 Views
4 Replies
09-14-2022, 08:59 PM
nico
    Thread: request->getPost in __construct & dynamic model's name
Post: request->getPost in __construct & dynamic model's ...

Hello everyone, I want to write a controller which load a model with a string I get with getPost Code: --     public function __construct()     {         parent::__construct();         $name = $...
1,507 Views
4 Replies
09-14-2022, 01:07 PM
nico
    Thread: inherits / extends few Controllers
Post: inherits / extends few Controllers

Hello, I want to create few mother class for controllers. I create the file core/Base.php and : controllers/Test.php Code: -- class Test extends Base -- But I have "Class 'Base' not fou...
1,730 Views
0 Replies
11-01-2020, 11:31 PM
nico
    Thread: A part of my models would inherits an abstract class
Post: RE: A part of my models would inherits an abstract...

Thank you, but can we make few models class in core/  ?
4,054 Views
3 Replies
01-16-2020, 01:31 PM
nico
    Thread: A part of my models would inherits an abstract class
Post: A part of my models would inherits an abstract cla...

Salut ! I want re-use same code for a group of model. Is it possible to make some models inherits a class and how to do this ? In advance, thank you.
4,054 Views
3 Replies
01-16-2020, 02:56 AM
nico
    Thread: Permission on log file after cron
Post: Permission on log file after cron

Hello every body. Every morning at 7, a cron task is launched (with command php) and so create the log file for the day. But this file's permission is -rw-r--r-- with user "bob" and group "www-dat...
2,135 Views
1 Replies
01-17-2018, 11:40 PM
nico
    Thread: few applications on the same server
Post: few applications on the same server

Hello every body, I used Code Igniter for a few applications on a server. Each application has its own codeigniter folder. But I am not sure that the best practice in this case. That I want ...
4,102 Views
2 Replies
01-11-2017, 11:26 PM
nico

Theme © iAndrew 2016 - Forum software by © MyBB