Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Is there a way to get the current method arguments?
Post: RE: Is there a way to get the current method argum...

Thanks for the suggestion @ozornick :)
327 Views
4 Replies
01-22-2024, 01:00 PM
kcs
    Thread: Is there a way to get the current method arguments?
Post: RE: Is there a way to get the current method argum...

Thanks @"ozornick". In the end, here's what I did inside a helper: PHP Code: -- function isCurrentMenu(){     $controller_name = \CodeIgniter\Config\Services::router()->controllerName();     s...
327 Views
4 Replies
01-06-2024, 08:08 AM
kcs
    Thread: Is there a way to get the current method arguments?
Post: Is there a way to get the current method arguments...

I am using this static pages controller from the documentation with this route definition: PHP Code: -- // static pages $routes->get('/{locale}/(:any)', 'PagesController::show/$1', ['priority' =>...
327 Views
4 Replies
01-04-2024, 04:41 AM
kcs
    Thread: Happy New Years Everyone.
Post: RE: Happy New Years Everyone.

Happy new year everyone  :P
348 Views
6 Replies
01-02-2024, 04:44 AM
kcs
    Thread: Understanding routing / namespace for modules
Post: RE: Understanding routing / namespace for modules

Indeed it was not working anymore, just the admin page was :s Thanks a lot @"kenjis" for explaining the wildcard effect I was not understanding and pointing out to me the route priority I can use. I...
340 Views
7 Replies
01-01-2024, 02:37 AM
kcs
    Thread: Understanding routing / namespace for modules
Post: RE: Understanding routing / namespace for modules

I solved it I think: Specifying the existing locales into my route definition like this: PHP Code: -- $routes->get('/{locale:en|fr}', 'Home::index', ['as' => 'homeLocalised']); -- makes the rule ...
340 Views
7 Replies
12-31-2023, 10:33 AM
kcs
    Thread: Understanding routing / namespace for modules
Post: RE: Understanding routing / namespace for modules

kcs Wrote: (12-31-2023, 06:45 AM) -- Additional question if I may: can I suspend the localize filter for the admin part? I don't need it there. -- I actually found out how to do this, thanks to anoth...
340 Views
7 Replies
12-31-2023, 09:05 AM
kcs
    Thread: Understanding routing / namespace for modules
Post: Understanding routing / namespace for modules

Hi everyone, I am working on an admin module for the first time, and trying to make sense of the documentation. I am not sure I am doing things the right way, and while some things are working, I am ...
340 Views
7 Replies
12-31-2023, 06:45 AM
kcs
    Thread: Facing Problems
Post: RE: Facing Problems

To avoid this, I make different versions of my .env file: I have a local one .env I use for development, one named .env-staging and one .env-production for the two other environments I use. When I dep...
180 Views
3 Replies
12-31-2023, 06:25 AM
kcs
    Thread: Using view_cell - I am not clearly getting how to do it
Post: RE: Using view_cell - I am not clearly getting how...

ozornick Wrote: (08-31-2023, 05:52 AM) -- See output in Cell  var_dump($blockFromModel); -- Oh wow the dump made it clear to me that I had a typo on a field name and I could not see it looking at the...
940 Views
10 Replies
08-31-2023, 06:32 AM
kcs
    Thread: Using view_cell - I am not clearly getting how to do it
Post: RE: Using view_cell - I am not clearly getting how...

Thanks a lot @"ozornick" for understanding my limitations  :P I feel I am almost there (I had a few errors still and corrected them like this: PHP Code: -- // BlockCell.php class BlockCell {   ...
940 Views
10 Replies
08-31-2023, 04:32 AM
kcs
    Thread: Using view_cell - I am not clearly getting how to do it
Post: RE: Using view_cell - I am not clearly getting how...

Thank you for the help, but I am not getting how I should organize my code and I am super confused with the examples  :huh: From what you are explaining, should I keep the getBlock($bloc_name) func...
940 Views
10 Replies
08-31-2023, 01:53 AM
kcs
    Thread: Using view_cell - I am not clearly getting how to do it
Post: RE: Using view_cell - I am not clearly getting how...

So do you mean like this? PHP Code: --
940 Views
10 Replies
08-30-2023, 04:53 PM
kcs
    Thread: Using view_cell - I am not clearly getting how to do it
Post: Using view_cell - I am not clearly getting how to ...

Hi everyone, I have been reading the documentation on view_cells and following some tutorials, but I am getting confused as to what to put where and was hoping to get some clarity asking here.  I do...
940 Views
10 Replies
08-30-2023, 03:56 PM
kcs
    Thread: DB Migration keeps failing
Post: RE: DB Migration keeps failing

That was it!!! I did not realise that I needed to resend all the constraints when modifying a column. Thanks a lot @"ozornick".
618 Views
6 Replies
08-27-2023, 12:18 AM
kcs
    Thread: DB Migration keeps failing
Post: RE: DB Migration keeps failing

kenjis Wrote: (08-26-2023, 02:14 PM) -- It seems an SQL syntax error. Check the SQL statement that was executed. -- How do I do that? Is it somewhere in the logs? Or should I use a different command ...
618 Views
6 Replies
08-26-2023, 02:23 PM
kcs
    Thread: DB Migration keeps failing
Post: RE: DB Migration keeps failing

ozornick Wrote: (08-26-2023, 12:31 PM) -- Most likely, there is data in your table that has the value title = NULL. You cannot change such a column. Delete the found values with NULL or set them as ...
618 Views
6 Replies
08-26-2023, 02:10 PM
kcs
    Thread: DB Migration keeps failing
Post: DB Migration keeps failing

Hi everyone, I am trying to make a simple DB migration, renaming a column in an existing table. I tripled checked my migration file, connection and everything I could think of but I am stuck with an ...
618 Views
6 Replies
08-26-2023, 11:52 AM
kcs
    Thread: Codeigniter 4 w/ Tailwind CSS
Post: RE: Codeigniter 4 w/ Tailwind CSS

Hi, I am also experimenting with Tailwind... and running into some other things I am not quite sure how to solve. @"rmartin93" Have you managed to get it working? I did following the CLI install and ...
6,191 Views
7 Replies
06-28-2023, 02:19 PM
kcs
  Thumbs Up Thread: Migrating to php 8.2 - how to solve deprecated dynamics properties
Post: RE: Migrating to php 8.2 - how to solve deprecated...

kenjis Wrote: (12-18-2022, 05:47 PM) -- Try to add: PHP Code: -- use AllowDynamicProperties; -- But the best way is to define the properties you use. Because dynamic properties are deprecated. -...
4,684 Views
5 Replies
12-19-2022, 02:08 AM
kcs

Theme © iAndrew 2016 - Forum software by © MyBB