Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
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? |
|
natanfelles |
CodeIgniter 4 Support
|
8 |
618 |
01-26-2021, 04:32 PM |
|
|
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" |
|
natanfelles |
CodeIgniter 4 Support
|
2 |
305 |
12-28-2020, 12:27 PM |
|
|
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... |
|
natanfelles |
CodeIgniter 4 Support
|
1 |
793 |
08-07-2020, 10:03 AM |
|
|
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 |
|
natanfelles |
CodeIgniter 4 Feature Requests
|
3 |
840 |
08-05-2020, 01:13 PM |
|
|
Thread: How make fake test to work
Post: RE: How make fake test to work
Open an issue at https://github.com/codeigniter4/CodeIgni...ssues/3368 |
|
natanfelles |
CodeIgniter 4 Support
|
4 |
861 |
07-20-2020, 05:06 PM |
|
|
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:<?php namespace App\Models;use CodeIgniter\Entity;class User extends Enti... |
|
natanfelles |
CodeIgniter 4 Support
|
4 |
861 |
07-20-2020, 02:17 PM |
|
|
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:<?php namespace App\Models;use CodeIgniter\Model;use Faker... |
|
natanfelles |
CodeIgniter 4 Support
|
4 |
861 |
07-18-2020, 02:54 PM |
|
|
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! |
|
natanfelles |
News & Discussion
|
34 |
34,221 |
07-16-2020, 01:34 PM |
|
|
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 a \C... |
|
natanfelles |
Lounge
|
2 |
1,759 |
01-06-2019, 12:25 PM |
|
|
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 |
|
natanfelles |
General Help
|
2 |
1,502 |
01-06-2019, 12:11 PM |
|
|
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... |
|
natanfelles |
CodeIgniter 4 Support
|
2 |
1,662 |
01-06-2019, 11:52 AM |
|
|
Thread: Problem in Filter
Post: RE: Problem in Filter
Oh, it looks like you can not return anything not empty. Even then the code should not be executed... Have you found a solution? |
|
natanfelles |
CodeIgniter 4 Support
|
2 |
1,209 |
11-20-2018, 08:58 PM |
|
|
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. |
|
natanfelles |
CodeIgniter 4 Support
|
2 |
1,209 |
11-20-2018, 08:48 PM |
|
|
Thread: Undefined variable: _SESSION
Post: RE: Undefined variable: _SESSION
According with this lines https://github.com/codeigniter4/CodeIgni...#L288-L300 the filters will run if match the config.
Maybe a property in the user filter class could help with that. Or in the \Co... |
|
natanfelles |
CodeIgniter 4 Support
|
11 |
9,487 |
11-20-2018, 08:34 PM |
|
|
Thread: [Done] Proposed Repositories Organization
Post: RE: Proposed Repositories Organization
I think this change will make our lives easier. |
|
natanfelles |
CodeIgniter 4 Roadmap
|
10 |
8,101 |
10-28-2018, 03:16 PM |
|
|
Thread: \Config\Paths with absolute paths
Post: \Config\Paths with absolute paths
See:
- Issues with ROOTPATH
- Propose Directory Structure
First, my idea was to create a composer.json file:
Code:{
"require": {
"codeigniter4/framework": "dev-develop"
}
}
Install and ... |
|
natanfelles |
CodeIgniter 4 Feature Requests
|
2 |
2,097 |
10-25-2018, 08:50 PM |
|
|
Thread: Model - read/write connections
Post: RE: Model - read/write connections
Yes. I found the isWriteType() in the \CodeIgniter\Database\Query class and also has one @todo in the \CodeIgniter\Database\BaseConnection::getConnection().
My thought is that the BaseConnection is n... |
|
natanfelles |
CodeIgniter 4 Feature Requests
|
2 |
1,492 |
10-24-2018, 09:26 AM |
|
|
Thread: Model - read/write connections
Post: Model - read/write connections
A thought for Model - read/write connections:
Maybe the Model $DBGroup property could accept an array as:
PHP Code:protected $DBGroup = [ 'read' => ... |
|
natanfelles |
CodeIgniter 4 Feature Requests
|
2 |
1,492 |
10-24-2018, 07:15 AM |
|
|
Thread: Debug toolbar
Post: RE: Debug toolbar
The 'toolbar' fits three types of content at the moment.
If you require HTML then it comes through AJAX.
If you require the Accept header for JSON or XML, the response will come with the "Debugbar-L... |
|
natanfelles |
CodeIgniter 4 Support
|
1 |
1,599 |
04-28-2018, 06:57 PM |
|
|
Thread: Migration not working
Post: RE: Migration not working
Hey @ponzo. Namespace your migration:
Code:<?php namespace App\Database\Migrations;
The docs example are not showing it. |
|
natanfelles |
CodeIgniter 4 Support
|
2 |
3,278 |
04-25-2018, 06:03 PM |