Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: TWIG
Post: RE: TWIG

Shame on me! there was an ugly $validation = false; in my controller code. i'm tired. Thanks for reply.
215 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 %}...
215 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...
2,727 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...
2,727 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 ...
2,727 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...
24,018 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 :(
24,018 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
755 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...
24,018 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.
755 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.
24,018 Views
30 Replies
08-23-2023, 07:44 AM
foxbille
    Thread: fail to use jpgraph in CI4
Post: RE: fail to use jpgraph in CI4

Ok, Thanks to you both, will try it. Meanwhile have found this : https://packagist.org/packages/amenadiel/jpgraph But for now, have to fix problems with twig use. Have a nice day, Eric
755 Views
6 Replies
08-23-2023, 06:56 AM
foxbille
    Thread: fail to use jpgraph in CI4
Post: fail to use jpgraph in CI4

Hello, I need to use php jpgraph library, so i have put it in a folder (because of the large number of files) Jpgraph located in app\Libraries so path to jpgraph class file is : app\Libraries\Jp...
755 Views
6 Replies
08-21-2023, 08:35 AM
foxbille
    Thread: v4.3.5 security fix released
Post: RE: v4.3.5 security fix released

Thank for updates, unfortunately i putted 4.3.4 online just a few days ago. Does someone use a tool or a linux shell script to detect modified files and automate ftp send to put them online ?
2,903 Views
8 Replies
05-22-2023, 09:16 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

kenjis Wrote: (04-14-2023, 03:26 AM) -- foxbille Wrote: (04-14-2023, 02:43 AM) -- But then, using twig, the flow is still not good, code of default_full.twig is displayed as if htmlentities() was us...
24,018 Views
30 Replies
04-17-2023, 04:55 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

kenjis Wrote: (04-12-2023, 05:26 AM) -- 1. The DEBUG-VIEW comment like "" is output by CI4's View class. 2. If you use Pagination in CI4 with Twig, the DEBUG-VIEW comment will be output in the outpu...
24,018 Views
30 Replies
04-14-2023, 02:43 AM
foxbille
    Thread: Shield - redirect after login
Post: RE: Shield - redirect after login

kenjis Wrote: (04-12-2023, 06:01 AM) -- It is not good. Because the code "service('settings')->set('Auth.redirects', ['login' => $path])" updates the Config value in the database. That is, the confi...
2,727 Views
10 Replies
04-12-2023, 06:07 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

kenjis Wrote: (04-08-2023, 04:59 PM) -- I think if you use Twig, the debug comments will not be added. And these are not added in production environment. If you don't need them in development env...
24,018 Views
30 Replies
04-12-2023, 02:05 AM
foxbille
    Thread: Shield - redirect after login
Post: Shield - redirect after login

hi, i need to protect route 'bookmark/init' and have noticed that after login, user is redirected to '/'. To have him redirected to what he requested : "bookmark/init' my solution is the following, a...
2,727 Views
10 Replies
04-12-2023, 01:34 AM
foxbille
    Thread: Twig integration in CI4
Post: RE: Twig integration in CI4

kenjis Wrote: (04-07-2023, 06:37 PM) -- Code: -- href="{{ base_url('admin/settings') }}" -- -- Ok, thanks! And how do i get rid of
24,018 Views
30 Replies
04-08-2023, 11:56 AM
foxbille

Theme © iAndrew 2016 - Forum software by © MyBB