Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

Thank you very much for your answer. It's odd that it's working for you. But I doubt it's because of my view file- The view loads fine over here! Probably doesn't work for you because you don't have ...
15,002 Views
20 Replies
06-08-2021, 12:59 AM
tomsenner
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

app/_own_vars_functions.php PHP Code: -- -- app/Controllers/Test.php PHP Code: -- Home Home Test -- app/Config/Autoload.php PHP Code: --
15,002 Views
20 Replies
06-07-2021, 12:00 PM
tomsenner
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

paulbalandan Wrote: (06-06-2021, 11:08 AM) -- Use the full path: PHP Code: -- public $files = [ ROOTPATH . 'app/own_functions.php' ]; -- -- Unfortunately I am still getting the same error "ca...
15,002 Views
20 Replies
06-06-2021, 11:34 AM
tomsenner
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

paulbalandan Wrote: (06-06-2021, 05:54 AM) -- You can place the file anywhere you want as it is not specifically a helper. Helpers' file names should end in `_helper`, like `number_helper.php` for th...
15,002 Views
20 Replies
06-06-2021, 09:00 AM
tomsenner
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

paulbalandan Wrote: (06-06-2021, 03:38 AM) -- You can use the new Files autoloading available to the Autoloader as of v4.1.2. Create a class containing your global functions and defining your currenc...
15,002 Views
20 Replies
06-06-2021, 05:46 AM
tomsenner
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

John_Betong Wrote: (06-05-2021, 11:23 PM) -- @tomsenner, You could declare CONSTANTS: index.php Code: --
15,002 Views
20 Replies
06-06-2021, 02:31 AM
tomsenner
    Thread: Define/include "globally available" arrays and functions
Post: Define/include "globally available" arrays and fun...

Hello, I'd like to define some arrays and functions that I can access "globally" in all controllers/models/views. For example I need to define an array of available currencies: PHP Code: -- $c...
15,002 Views
20 Replies
05-31-2021, 06:38 AM
tomsenner
    Thread: GUI-Tool: CodeIgniter Database Migration Builder
Post: RE: GUI-Tool: CodeIgniter Database Migration Build...

Thank you. Yes makes more sense in this category.
2,399 Views
2 Replies
05-20-2021, 02:57 AM
tomsenner
    Thread: GUI-Tool: CodeIgniter Database Migration Builder
Post: GUI-Tool: CodeIgniter Database Migration Builder

In case you are looking for a tool with a graphical user interface to create database migrations for codeigniter. Here you go: checkpacker.com/_tools/ci-migration-builder/ If you are missing any...
2,399 Views
2 Replies
05-19-2021, 08:52 AM
tomsenner
    Thread: Using Update() on primary key named differently than id
Post: RE: Using Update() on primary key named differentl...

Thank you Craig. I was looking deeply into the documentation but must have missed this one. It's excactly what I needed!
2,225 Views
2 Replies
05-18-2021, 07:22 AM
tomsenner
    Thread: Using Update() on primary key named differently than id
Post: Using Update() on primary key named differently th...

Hello, when I am using the below code it will only work if my primary key field in the database is named "id". PHP Code: -- $model->update($idVar, ['description' => $this->request->getPost('descr...
2,225 Views
2 Replies
05-18-2021, 05:07 AM
tomsenner

Theme © iAndrew 2016 - Forum software by © MyBB