Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Does CI have a way to reuse a form like Symfony?
Post: RE: Does CI have a way to reuse a form like Symfon...

Forms in CodeIgniter are currently procedural (through the use of form_helper) and not yet object-oriented. It could be nice to have an OOP counterpart to it as well as other helpers.
174 Views
1 Replies
06-11-2021, 10:23 AM
paulbalandan
    Thread: Minor Error In Latest CI Documentation
Post: RE: Minor Error In Latest CI Documentation

Check this one: https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_413.html [hr] I recommend using this dev version of the user guide as it is always up to date.
301 Views
3 Replies
06-10-2021, 05:21 AM
paulbalandan
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

Try to edit the "welcome_message.php" default view file and try to call there your custom function. Actually, I did my edit there and it is working fine.
946 Views
20 Replies
06-08-2021, 06:29 AM
paulbalandan
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

This is working for me (although I have to use another view file as your example is not rendering in me). The global autoloading works fine, no error call to undefined function is emitted. PHP Code:...
946 Views
20 Replies
06-07-2021, 11:04 PM
paulbalandan
    Thread: Minor Error In Latest CI Documentation
Post: RE: Minor Error In Latest CI Documentation

This has been fixed.
301 Views
3 Replies
06-07-2021, 10:45 PM
paulbalandan
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

Can you share your functions file, then your view file consuming the function, and the controller consuming the view?
946 Views
20 Replies
06-07-2021, 09:58 AM
paulbalandan
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

Use the full path: PHP Code: -- public $files = [ ROOTPATH . 'app/own_functions.php' ]; --
946 Views
20 Replies
06-06-2021, 11:08 AM
paulbalandan
    Thread: Incorrect subject
Post: RE: Incorrect subject

Thanks for the heads up!
298 Views
1 Replies
06-06-2021, 06:47 AM
paulbalandan
    Thread: [SOLVED] RE: How to prevent auto-update of $createdField and $updatedField
Post: RE: How to prevent auto-update of $createdField an...

Try setting the `$useTimestamps` property to `false`.
248 Views
2 Replies
06-06-2021, 06:43 AM
paulbalandan
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

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 the `helper()` function to work. Since your file ...
946 Views
20 Replies
06-06-2021, 05:54 AM
paulbalandan
    Thread: Define/include "globally available" arrays and functions
Post: RE: Define/include "globally available" arrays and...

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 currencies as constant. PHP Code: -- // example fil...
946 Views
20 Replies
06-06-2021, 03:38 AM
paulbalandan
    Thread: Forum Problem
Post: RE: Forum Problem

I noticed this too during the revamp of the forums. Based on the discussions in Slack, the slowness can be caused by the change in the hosting provider.
539 Views
10 Replies
06-02-2021, 12:59 AM
paulbalandan
    Thread: mime_in throws error when file is not passed
Post: RE: mime_in throws error when file is not passed

try to add the `permit_empty` rule
138 Views
1 Replies
05-27-2021, 09:23 AM
paulbalandan
    Thread: VScode - undefined 'getVar' method in version 4.1.2
Post: RE: VScode - undefined 'getVar' method in version ...

This is because of the incomplete interface dependence CI4 has. It is typehinted to the interfaces but those interfaces clearly do not have the methods being called as those methods are defined in the...
732 Views
8 Replies
05-27-2021, 09:20 AM
paulbalandan
    Thread: Class not found when CI_ENVIRONMENT = development
Post: RE: Class not found when CI_ENVIRONMENT = developm...

Could it be that your class is saved to a directory not respecting PSR-4? [hr] paliz Wrote: (05-22-2021, 04:00 AM) -- Always create istance of class to use it any where and this way you call fuction ...
452 Views
5 Replies
05-22-2021, 08:57 AM
paulbalandan
    Thread: CodeIgniter v4.1.2 released
Post: RE: CodeIgniter v4.1.2 released

You can send in a PR for that.
2,490 Views
22 Replies
05-20-2021, 06:45 AM
paulbalandan
    Thread: Class not found
Post: RE: Class not found

Are you using CodeIgniter 3? If so, did you check your Code: -- application/config/config.php -- file if the path to the Composer autoload file is correctly set there? In mine, I have set the autolo...
582 Views
7 Replies
05-19-2021, 10:20 AM
paulbalandan
    Thread: update(null,$data)
Post: RE: update(null,$data)

This is by design to allow one-time "global" updates, as discussed here (https://github.com/codeigniter4/CodeIgniter4/issues/4617) and an attempt to change this behavior in here (https://github.com/co...
430 Views
3 Replies
05-18-2021, 10:06 AM
paulbalandan
    Thread: what is ?[0;32m and ?[0m in php spark
Post: RE: what is ?[0;32m and ?[0m in php spark

If you are using Windows 10, then you should have color support native to your terminal. For Windows 7 and 8, then you need to install ANSICON. However, it is strange that your spark header is gree...
538 Views
5 Replies
05-11-2021, 11:20 AM
paulbalandan
    Thread: has_cookie helper always return false?
Post: RE: has_cookie helper always return false?

Since you are using already the has_cookie() function, I'm assuming you are using the development version of CI4 because this helper is not available in v4.1.1 and below. I don't know your use case...
253 Views
1 Replies
05-07-2021, 01:03 PM
paulbalandan

Theme © iAndrew 2016 - Forum software by © MyBB