Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Nested Model Relations for CodeIgniter 4
Post: RE: Nested Model Relations for CodeIgniter 4

got it! use \Michalsn\CodeIgniterNestedModel\Traits\HasRelations; was outside model class definition :( now i get : Method "specialite()" returned an incorrect type. ("App\Models\Relation" instead...
1,561 Views
7 Replies
03-13-2025, 09:52 AM
foxbille
    Thread: Nested Model Relations for CodeIgniter 4
Post: RE: Nested Model Relations for CodeIgniter 4

I know, it's a typo in my post, script is fine.
1,561 Views
7 Replies
03-11-2025, 02:03 PM
foxbille
    Thread: Nested Model Relations for CodeIgniter 4
Post: RE: Nested Model Relations for CodeIgniter 4

no...     Have followed instructions scrupulously     Started a fresh CI4 installation with composer create-project     Then added codeigniter-nested-model     checked everything i could (Model, E...
1,561 Views
7 Replies
03-06-2025, 12:28 PM
foxbille
    Thread: Nested Model Relations for CodeIgniter 4
Post: RE: Nested Model Relations for CodeIgniter 4

Hello, Have tried it, but get a Call to undefined method App\Models\PraticienModel::initRelations  exception. Can't find out why. Eric
1,561 Views
7 Replies
03-06-2025, 11:41 AM
foxbille
    Thread: of controllers, views and templates
Post: RE: of controllers, views and templates

Woooh, shame on me, did'nt read documentation. Thanks a lot for guiding me. Will try it immediatly Tick, tick, tick ... Works fine! Thanks!!!
836 Views
2 Replies
07-21-2024, 04:38 AM
foxbille
    Thread: of controllers, views and templates
Post: of controllers, views and templates

I find it hard to explain my problem so i will write in a schematic way. Rule is : One route -> one Controller::method -> one child template which is part of a parent template called by {% extends "d...
836 Views
2 Replies
07-20-2024, 01:58 PM
foxbille
    Thread: Doctrine integration
Post: RE: Doctrine integration

kenjis Wrote: (05-13-2024, 06:57 PM) -- No, because there is already https://github.com/daycry/doctrine -- okay :(
20,776 Views
18 Replies
05-18-2024, 09:14 AM
foxbille
    Thread: Doctrine integration
Post: RE: Doctrine integration

yes  i did! PHP Code: -- namespace Config; use CodeIgniter\Config\BaseService; Class Services extends BaseService {    public static function doctrine($getShared = false)     {       if (!...
20,776 Views
18 Replies
05-11-2024, 05:24 AM
foxbille
    Thread: Doctrine integration
Post: RE: Doctrine integration

Hello, Very interested by this solution, so i tried it.  But Doctrine version is higher and code exposed here does not work anymore. So i picked code for App\Libraries\doctrine.php in doctrine "ins...
20,776 Views
18 Replies
05-10-2024, 11:51 PM
foxbille
    Thread: TWIG
Post: RE: TWIG

Shame on me! there was an ugly $validation = false; in my controller code. i'm tired. Thanks for reply.
1,156 Views
2 Replies
03-29-2024, 05:27 AM
foxbille
    Thread: TWIG
Post: TWIG

Hello, I use twig for one of my app, but still encounter some difficulties, In the same form, when error on "fichier" field occurs, this, prints errors : PHP Code: -- {% if validation == false %}...
1,156 Views
2 Replies
03-26-2024, 01:23 PM
foxbille
    Thread: Shield - redirect after login
Post: RE: Shield - redirect after login

datamweb Wrote: (09-05-2023, 12:02 PM) -- @"foxbille" I don't know exactly what the issue is. Are you looking for a topic similar to the below? https://github.com/codeigniter4/shield/discussion...
6,179 Views
10 Replies
09-15-2023, 08:41 AM
foxbille
    Thread: Shield - redirect after login
Post: RE: Shield - redirect after login

When only some routes of app are protected, you might have to find a solution to redirect user after login In my App, I managed things like this : First create a filter named permissionFilter.php in...
6,179 Views
10 Replies
09-05-2023, 06:58 AM
foxbille
    Thread: Shield - redirect after login
Post: RE: Shield - redirect after login

InsiteFX Wrote: (08-06-2023, 11:19 PM) -- Shield User Guide - Custom Redirect URLs (https://codeigniter4.github.io/shield/customization/#customize-login-redirect) -- Thanks for help Have modified ...
6,179 Views
10 Replies
09-04-2023, 07:31 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

kenjis Wrote: (08-24-2023, 05:05 PM) -- Try to load the helper before `$this->twig = new Twig(['functions' => ['dateSlash']]);` -- Does not fix. but I might say that helper is yet loaded in baseCo...
36,789 Views
30 Replies
09-02-2023, 09:37 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

ozornick Wrote: (08-23-2023, 09:56 AM) -- Fixed?     public function add()     {         helper('form');         ....     } -- nope :(
36,789 Views
30 Replies
08-24-2023, 07:13 AM
foxbille
    Thread: fail to use jpgraph in CI4
Post: RE: fail to use jpgraph in CI4

kenjis Wrote: (08-23-2023, 02:36 PM) -- JpGraph is not namespaced. So there is no "App\Libraries\Jpgraph\jpgraph\Text" class. -- Ok, thanks anyway
1,848 Views
6 Replies
08-24-2023, 07:03 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

Thanks for replay I might not have understand your question anyway, here is my code In controller PHP Code: -- use \Kenjis\CI4Twig\Twig; class Trace extends BaseController {     protected $t...
36,789 Views
30 Replies
08-23-2023, 09:45 AM
foxbille
    Thread: fail to use jpgraph in CI4
Post: RE: fail to use jpgraph in CI4

Fatal error: Uncaught Error: Class "App\Libraries\Jpgraph\jpgraph\Text" not found in /home/[...]/traces/app/Libraries/Jpgraph/jpgraph.php Sorry, I give up.
1,848 Views
6 Replies
08-23-2023, 08:05 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

Hi All, Have the same problem : an Add form worked well until i add PHP Code: -- {{ form_error('lastname') }} -- Twig\Error\SyntaxError Unknown "form_error" function.
36,789 Views
30 Replies
08-23-2023, 07:44 AM
foxbille

Theme © iAndrew 2016 - Forum software by © MyBB