Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: spark --help option to show help
Post: RE: spark --help option to show help

This would be nice. `--help` is more intuitive for me.
99 Views
3 Replies
Yesterday, 12:16 AM
paulbalandan
    Thread: How can I activate Suffix without using --suffix?
Post: RE: How can I activate Suffix without using --suff...

That one was added by me so I would answer. PHP Code: -- /** * Whether the `--suffix` option has any effect. * * @internal * * @var bool */ private $enabledSuffixing = true; -- ...
301 Views
6 Replies
05-17-2022, 08:31 AM
paulbalandan
    Thread: CLI vs CLI
Post: RE: CLI vs CLI

To be honest, @"iRedds" 's suggestion is what I initially expected of the CLI component when I first looked at the code. Separation of the web route and console route is a +1 for me.
401 Views
2 Replies
03-27-2022, 10:24 PM
paulbalandan
    Thread: "valid_date" validation does not prevent submission of spaces
Post: RE: "valid_date" validation does not prevent submi...

Hi! When using the `permit_empty` rule, CI4 checks if the value provided is either an array or a string. If an array, it checks whether it is an empty array. If a string or can be casted to string, it...
521 Views
3 Replies
02-27-2022, 10:43 PM
paulbalandan
    Thread: How do i install older version of CI4 using composer
Post: RE: How do i install older version of CI4 using co...

https://stackoverflow.com/questions/40914114/how-to-install-a-specific-version-of-package-using-composer Code: -- composer require codeigniter4/framework:4.1.5 --
424 Views
2 Replies
02-21-2022, 09:01 PM
paulbalandan
    Thread: CI4 How to create and choose between two types of email configurations
Post: RE: CI4 How to create and choose between two types...

Email::initialize() accepts object instance of Config\Email or array as argument. From the error it seems you are passing neither an array or Config\Email instance. Two possible solutions: 1) Conf...
702 Views
4 Replies
02-17-2022, 08:51 PM
paulbalandan
    Thread: preg_match(): Compilation failed: missing closing parenthesis at offset 19
Post: RE: preg_match(): Compilation failed: missing clos...

What version are you using? There's nothing on line 384 on current develop branch. https://github.com/codeigniter4/CodeIgniter4/blob/968c0278a0ba4138cf3e64a2bbab5f3a800532d5/system/Router/Router.php...
392 Views
1 Replies
02-17-2022, 08:44 PM
paulbalandan
    Thread: Spaced out on Cookies
Post: RE: Spaced out on Cookies

This should not be the case, as you have said in your Config\Cookie public $secure = TRUE; public $samesite = 'Lax'; clearly SameSite here is not 'None' but 'Lax' and the Secure attribute is se...
613 Views
5 Replies
02-17-2022, 08:40 PM
paulbalandan
    Thread: CI4 How to get controller name only
Post: RE: CI4 How to get controller name only

class_basename echo class_basename(service('router')->controllerName()); // Mycontroller
446 Views
2 Replies
02-15-2022, 05:48 AM
paulbalandan
    Thread: CI4 How to load a model by sending params
Post: RE: CI4 How to load a model by sending params

Sadly, you can't. `model()`'s 2nd and 3rd parameters are fixed to accept instances of ConnectionInterface and ValidationInterface. https://github.com/codeigniter4/CodeIgniter4/blob/b36b015ac4e326df83...
506 Views
4 Replies
02-14-2022, 11:09 PM
paulbalandan
    Thread: codeigniter 4.1.8 - Session: Initialization under CLI aborted.
Post: RE: codeigniter 4.1.8 - Session: Initialization un...

Hi! 1) Do not ever use the "testing" environment in your projects. It is internal to the development team for our unit testing. 2) By definition, the CLI version of PHP is a stand-alone process....
327 Views
1 Replies
02-11-2022, 08:15 PM
paulbalandan
    Thread: Time objects can break session
Post: RE: Time objects can break session

Seems your version is not updated.
435 Views
4 Replies
02-11-2022, 08:11 PM
paulbalandan
    Thread: Time objects can break session
Post: RE: Time objects can break session

What is the exception message?
435 Views
4 Replies
02-11-2022, 01:31 AM
paulbalandan
    Thread: Superglobal testing
Post: RE: Superglobal testing

With respect to testing, isn't this done by `@backupGlobals` of PHPUnit? https://phpunit.readthedocs.io/en/9.5/annotations.html#backupglobals
967 Views
5 Replies
02-03-2022, 04:41 AM
paulbalandan
    Thread: The change on debugbar logging requests
Post: RE: Show time() in microtime

I think you're looking for microtime(true) https://www.php.net/manual/en/function.microtime.php
1,152 Views
5 Replies
01-25-2022, 06:50 PM
paulbalandan
    Thread: How to use cookies - sometimes not working
Post: RE: How to use cookies - sometimes not working

https://forum.codeigniter.com/thread-77036.html?highlight=cookie [hr] https://forum.codeigniter.com/thread-77036.html?highlight=cookie
973 Views
3 Replies
01-21-2022, 01:57 AM
paulbalandan
    Thread: cookies and CI4
Post: RE: cookies and CI4

Hi! `setcookie` is the native PHP function. `set_cookie` is CI4's cookie helper function. Behind the scenes, when calling `set_cookie`, you are actually building a cookie object to be saved in t...
5,007 Views
8 Replies
12-22-2021, 11:37 PM
paulbalandan
    Thread: CI4: directory_mirror() throws an error if destination directory exists
Post: RE: CI4: directory_mirror() throws an error if des...

The overwrite option only applies to existing files. [hr] However, if you think the option should extend to existing directories as well, please submit an issue report to GitHub https://github.com/co...
524 Views
2 Replies
12-14-2021, 07:34 PM
paulbalandan
    Thread: Parse Error in Production and Not Local Server
Post: RE: Parse Error in Production and Not Local Server

Dev here. That's weird, return types were introduced in PHP 7 so it being at 7.4 doesn't matter.
1,007 Views
5 Replies
10-13-2021, 09:01 AM
paulbalandan
    Thread: Error when trying to get property from parent class
Post: RE: Error when trying to get property from parent ...

You said you are trying to access the property from the parent class, to which I assumed you defined it as an explicit property. Anyway, move the initialization of $this->siteCfg from the initContr...
845 Views
4 Replies
10-13-2021, 08:47 AM
paulbalandan

Theme © iAndrew 2016 - Forum software by © MyBB