Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Validation div always appears in view even if empty
Post: RE: Validation div always appears in view even if ...

Try: PHP Code: -- ->with('errors', $this->validator->listErrors()) -- And in the view: PHP Code: --                             --
1,051 Views
1 Replies
08-29-2021, 03:40 PM
natanfelles
    Thread: CI4 error run curl
Post: RE: CI4 error run curl

Test to replace this lines: PHP Code: -- ob_flush(); flush(); -- To something like: PHP Code: -- $this->response->setBody(ob_get_clean()); -- It will lose the stream capability... I th...
2,516 Views
3 Replies
08-29-2021, 03:22 PM
natanfelles
    Thread: Using CI/CD on GitLab with CI4
Post: RE: Using CI/CD on GitLab with CI4

I have not a public project using CodeIgniter on GitLab CI/CD. But this file can help on your custom configuration: https://gitlab.com/aplus-framework/projects/app/-/blob/master/.gitlab-ci.yml The k...
4,030 Views
3 Replies
08-28-2021, 10:16 AM
natanfelles
    Thread: Preciso de Ajuda para recuperar um arquivo
Post: RE: Preciso de Ajuda para recuperar um arquivo

Vamos lá: Você está pegando o campo 'arquivo' da sua tabela com PHP Code: -- $arquivo = $hora['arquivo']; -- Porém, logo em seguida a variável $arquivo é sobrescrita: PHP Code: -- $arqu...
3,702 Views
2 Replies
07-31-2021, 11:05 AM
natanfelles
    Thread: Accessing a custom object with instanceof
Post: RE: Accessing a custom object with instanceof

LN_Account has the proper use call in the model?
4,109 Views
8 Replies
01-26-2021, 04:32 PM
natanfelles
    Thread: CI4 : I try to add a function in a helper
Post: RE: CI4 : I try to add a function in a helper

Name the file as "text_helper.php"
1,344 Views
2 Replies
12-28-2020, 12:27 PM
natanfelles
    Thread: Call to undefined method respond()
Post: RE: Call to undefined method respond()

You forgot to place the trait call: Code: -- class Myclass extends BaseController {     use ResponseTrait; public function mytask... --
5,305 Views
1 Replies
08-07-2020, 10:03 AM
natanfelles
    Thread: find() should be renamed
Post: RE: find() should be renamed

Normally, I call model functions name with By. For example: findBySlug(string $slug): Post
2,990 Views
3 Replies
08-05-2020, 01:13 PM
natanfelles
    Thread: How make fake test to work
Post: RE: How make fake test to work

Open an issue at https://github.com/codeigniter4/CodeIgniter4/issues/3368 (https://github.com/codeigniter4/CodeIgniter4/issues/3368)
3,251 Views
4 Replies
07-20-2020, 05:06 PM
natanfelles
    Thread: How make fake test to work
Post: RE: How make fake test to work

OK. Seems like it do not works with custom Entities. Here is the Entity: PHP Code: --
3,251 Views
4 Replies
07-20-2020, 02:17 PM
natanfelles
  Exclamation Thread: How make fake test to work
Post: How make fake test to work

Hello everyone! I having a bad time trying to use the new fake testing helper. Here is my model: PHP Code: --
3,251 Views
4 Replies
07-18-2020, 02:54 PM
natanfelles
  Video Thread: CodeIgniter v4.0.4 released
Post: RE: CodeIgniter v4.0.4 released

It would be good if there were new videos explaining the use of these new features. Thank you!
74,071 Views
44 Replies
07-16-2020, 01:34 PM
natanfelles
    Thread: My new work and I need some feedbacks.
Post: RE: My new work and I need some feedbacks.

Very thanks, Terry! Another awesome project you share. Please, adapt the CI_Minifier (https://github.com/terrylinooo/codeigniter-minifier) for CodeIgniter 4, (if you want). It would be nice as ...
3,236 Views
2 Replies
01-06-2019, 12:25 PM
natanfelles
    Thread: Codeigniter blog application bug: form is loaded without validation errors
Post: RE: Codeigniter blog application bug: form is load...

Also is possible save the validation errors as session flashdata. After the redirect, check if has errors and get them. This: https://en.wikipedia.org/wiki/Post/Redirect/Get
2,699 Views
2 Replies
01-06-2019, 12:11 PM
natanfelles
    Thread: Best way create layouts library vs extend CI_Controller
Post: RE: Best way create layouts library vs extend CI_C...

Some time ago, one approach I used was to create a library "App\Libraries\Theme". Then, use it as a service. Or, setting in a property of an abstract BaseController. It could be used like "$this...
2,977 Views
2 Replies
01-06-2019, 11:52 AM
natanfelles
    Thread: Problem in Filter
Post: RE: Problem in Filter

Oh, it looks like you can not return anything not empty (https://github.com/codeigniter4/CodeIgniter4/blob/bf09ee52c3798f64a02589aff86fbfa3b75a0393/system/Filters/Filters.php#L161-L167). Even then the...
2,538 Views
2 Replies
11-20-2018, 08:58 PM
natanfelles
    Thread: Problem in Filter
Post: RE: Problem in Filter

I think you've already solved that. But if a Response instance is returned the request will be responded (https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html?highlight=Response#before-fi...
2,538 Views
2 Replies
11-20-2018, 08:48 PM
natanfelles
    Thread: Undefined variable: _SESSION
Post: RE: Undefined variable: _SESSION

According with this lines https://github.com/codeigniter4/CodeIgniter4/blob/bf09ee52c3798f64a02589aff86fbfa3b75a0393/system/CodeIgniter.php#L288-L300 the filters will run if match the config. Maybe...
20,112 Views
11 Replies
11-20-2018, 08:34 PM
natanfelles
    Thread: [Done] Proposed Repositories Organization
Post: RE: Proposed Repositories Organization

I think this change will make our lives easier.
17,601 Views
10 Replies
10-28-2018, 03:16 PM
natanfelles
    Thread: \Config\Paths with absolute paths
Post: \Config\Paths with absolute paths

See: - Issues with ROOTPATH (https://forum.codeigniter.com/thread-71668.html) - Propose Directory Structure (https://forum.codeigniter.com/thread-71864.html) [hr] First, my idea was to create a co...
4,313 Views
2 Replies
10-25-2018, 08:50 PM
natanfelles

Theme © iAndrew 2016 - Forum software by © MyBB