Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Code module not setting up
Post: RE: Code module not setting up

kenjis Wrote: (08-30-2022, 02:01 PM) -- $routes->get('(:any)', 'Pages::view/$1'); takes all the routes. -- Oh my gosh, yes. :blush: Thank you. kenjis Wrote: (08-30-2022, 02:01 PM) -- See https...
4,023 Views
10 Replies
09-01-2022, 07:18 AM
leafface
    Thread: Code module not setting up
Post: RE: Code module not setting up

The view() function also cannot locate the module's view file, looks for the view in the \app\Views folder :/
4,023 Views
10 Replies
08-30-2022, 07:46 AM
leafface
    Thread: Code module not setting up
Post: RE: Code module not setting up

kenjis Wrote: (08-29-2022, 06:39 PM) -- Can you show your two Routes.php? What do you get when you run `spark routes`? -- All right, here are the two files: \app\Config\Routes.php: PHP Code...
4,023 Views
10 Replies
08-30-2022, 06:07 AM
leafface
    Thread: Code module not setting up
Post: RE: Code module not setting up

kenjis Wrote: (08-29-2022, 05:14 AM) -- If you disable Auto-Discovery (of routing), the module's Routes.php is not loaded. See https://codeigniter4.github.io/CodeIgniter4/general/modules.html#auto-d...
4,023 Views
10 Replies
08-29-2022, 09:33 AM
leafface
    Thread: Code module not setting up
Post: RE: Code module not setting up

iRedds Wrote: (08-28-2022, 02:49 PM) -- backslash -> \Modules\YtVideos\Controllers\Admin_YtVideos::index -- Thanks. It was stupid of me not to think of that. (I relied too much on the user guide wh...
4,023 Views
10 Replies
08-29-2022, 03:10 AM
leafface
    Thread: Code module not setting up
Post: Code module not setting up

Hello, I'm trying to set up a code module following the steps in the user guide. 1) I added the module to the psr4 section of the Autoload.php: PHP Code: -- public $psr4 = [     APP_NAMESPACE     ...
4,023 Views
10 Replies
08-28-2022, 02:23 PM
leafface
    Thread: Query Builder: Table alias gets DB prefix when using subquery
Post: RE: Query Builder: Table alias gets DB prefix when...

iRedds Wrote: (08-18-2022, 08:52 AM) -- this is a bug [hr] As a temporary solution you can use object cloning PHP Code: -- $subquery = (clone $this->db)->table('menu s') -- -- That'll do it t...
2,085 Views
5 Replies
08-19-2022, 09:29 AM
leafface
    Thread: Query Builder: Table alias gets DB prefix when using subquery
Post: RE: Query Builder: Table alias gets DB prefix when...

php_rocs Wrote: (08-18-2022, 06:21 AM) -- @"leafface" , So what is your question?  There are multiple ways you could do this query.  I can think of two more ways right off the top of my head....
2,085 Views
5 Replies
08-18-2022, 06:34 AM
leafface
    Thread: Query Builder: Table alias gets DB prefix when using subquery
Post: Query Builder: Table alias gets DB prefix when usi...

Hello, I have two similar queries. The difference is that the second one has an extra subquery in it. The first query gets compiled nicely, in the second one, however, the table aliases in the m...
2,085 Views
5 Replies
08-17-2022, 08:23 AM
leafface
    Thread: One library depends on another - what's the solution?
Post: RE: One library depends on another - what's the so...

Your solution works! Many thanks! BTW: Yes, sorry, Auth depends on Ui, not the other way around.
1,394 Views
4 Replies
07-29-2022, 04:09 AM
leafface
    Thread: One library depends on another - what's the solution?
Post: RE: One library depends on another - what's the so...

iRedds Wrote: (07-28-2022, 07:47 PM) -- Use services for dependency injection. https://codeigniter.com/user_guide/concepts/services.html -- The thing why I decided against solving this with services...
1,394 Views
4 Replies
07-29-2022, 02:10 AM
leafface
    Thread: One library depends on another - what's the solution?
Post: One library depends on another - what's the soluti...

Hello, To make sure I use the proper practice, I have to fully explain what's going on. I have a library called 'Ui', responsible for displaying the front end. (It displays a main view that has ...
1,394 Views
4 Replies
07-28-2022, 12:06 PM
leafface
    Thread: Datamapper - what's with non-datamapper models?
Post: Datamapper - what's with non-datamapper models?

Hi, The Datamapper installation guide says I should leave the $autoload['models'] array blank, because Datamapper automatically loads these. Does this mean I can't use regular CI models anymore, be...
2,506 Views
1 Replies
07-02-2015, 06:48 AM
leafface

Theme © iAndrew 2016 - Forum software by © MyBB