Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Can't get migration in module to be recognised by spark migrate --all
Post: RE: Can't get migration in module to be recognised...

You have to pass the name space with the Seeder: Code: -- php spark db:seed Modules\YourModuleName\Database\Seeds\YourSeederName --
232 Views
7 Replies
01-08-2025, 11:36 PM
InsiteFX
    Thread: Run seed command in module
Post: RE: Run seed command in module

Ok, there was an error in my Seeder file that was causing my problems but all works now For Seeding from the App folder: Code: -- php spark db:seed YourSeederName -- For Seeding from the Module...
389 Views
8 Replies
01-08-2025, 11:30 PM
InsiteFX
    Thread: Can't get migration in module to be recognised by spark migrate --all
Post: RE: Can't get migration in module to be recognised...

PHP Code: -- 'Midair\Article' => ROOTPATH . 'midair/Article', // should be 'Midair\Article' => ROOTPATH . 'Midair/Article', -- There is a bug with the Seeder and Module which has been reported....
232 Views
7 Replies
01-07-2025, 11:55 PM
InsiteFX
    Thread: Run seed command in module
Post: RE: Run seed command in module

Ok, I just ran it and I get the same error as you do, I have created a Bug Report on GitHub. We just have to wait now for an answer.
389 Views
8 Replies
01-07-2025, 11:49 PM
InsiteFX
    Thread: Can't get migration in module to be recognised by spark migrate --all
Post: RE: Can't get migration in module to be recognised...

Please wait until the end of day, I' am working on and testing this out now.
232 Views
7 Replies
01-07-2025, 10:51 PM
InsiteFX
    Thread: Components for Codeigniter 4
Post: RE: Components for Codeigniter 4

@"dgvirtual", Thanks this should be helpful.
196 Views
1 Replies
01-07-2025, 10:47 PM
InsiteFX
    Thread: Run seed command in module
Post: RE: Run seed command in module

I Created the Migration and Seeder files using the namespace and both files where created in InsiteFX/Blog. Code: -- php spark make:migration BlogTables --namespace InsiteFX/Blog php spark mak...
389 Views
8 Replies
01-07-2025, 10:41 PM
InsiteFX
    Thread: Run seed command in module
Post: RE: Run seed command in module

One thing that is critical is that you need to have the module path in the Autoload.php file like below for it to find the seeder in a module. PHP Code: -- public $psr4 = [     APP_NAMESPACE => ...
389 Views
8 Replies
01-06-2025, 10:44 PM
InsiteFX
    Thread: Run seed command in module
Post: RE: Run seed command in module

This does not look right, look at the the slashes some are back slashes and others are forward slashes they should all be the same not mixed. Code: -- D:\Aero Club Belluno\composer-aeclidb\app\Datab...
389 Views
8 Replies
01-06-2025, 03:24 AM
InsiteFX
    Thread: Run seed command in module
Post: RE: Run seed command in module

You can get all spark commands from your terminal using this command: Code: -- php spark list -- For namespaces it shows here how to do it: CodeIgniter 4 Users Guide - Managing Databases - Databa...
389 Views
8 Replies
01-05-2025, 11:17 PM
InsiteFX
    Thread: Shield auth messages - I would like to use mine
Post: RE: Shield auth messages - I would like to use min...

If it's Italian then it should go under Language/it You can download all the CodeIgniter translations from here: CodeIgniter 4 Translations (https://github.com/codeigniter4/translations)
208 Views
4 Replies
01-05-2025, 11:09 PM
InsiteFX
    Thread: Shield auth messages - I would like to use mine
Post: RE: Shield auth messages - I would like to use min...

You should not over write the Shield Auth Language files! You Create a new language file that has your two character language name like en for English Language -- en -- fr -- ja -- your langua...
208 Views
4 Replies
01-05-2025, 03:53 AM
InsiteFX
    Thread: Spark on Docker not working
Post: RE: Spark on Docker not working

Also if the folder is changed from default spark will not work unless you edit it and change the path to the new folder.
188 Views
2 Replies
01-04-2025, 11:19 PM
InsiteFX
    Thread: Basecontroller load helpers / library depend on loggedin
Post: RE: Basecontroller load helpers / library depend o...

Yes, in CodeIgniter 4, helpers essentially act like global functions once loaded, meaning that after you load a specific helper file, the functions within it can be accessed from anywhere in your ap...
461 Views
6 Replies
01-04-2025, 11:17 PM
InsiteFX
    Thread: Class PageNotFoundException not found
Post: RE: Class PageNotFoundException not found

Show us your routes so that we may be able to help you with this problem. PHP Code: -- php spark routes --
215 Views
3 Replies
01-04-2025, 11:01 PM
InsiteFX
    Thread: redirect not working
Post: RE: redirect not working

For one routes with (:any) need to be the last routes in the route list or they will not work.
190 Views
2 Replies
01-03-2025, 11:25 PM
InsiteFX
    Thread: Forum software updated
Post: RE: Forum software updated

@"kilishan", Thank you for hard work on this.
587 Views
4 Replies
01-03-2025, 11:10 PM
InsiteFX
    Thread: HTML6 and CSS5: What’s New for Web Developers?
Post: HTML6 and CSS5: What’s New for Web Developers?

HTML6 and CSS5: What’s New for Web Developers? (https://www.analyticsinsight.net/tech-news/html6-and-css5-whats-new-for-web-developers)
195 Views
0 Replies
01-03-2025, 04:19 PM
InsiteFX
    Thread: Passing arguments to Prepared Statement
Post: RE: Passing arguments to Prepared Statement

Just a note here: getVar() Important This method exists only for backward compatibility. Do not use it in new projects. Even if you are already using it, we recommend that you use another, ...
229 Views
3 Replies
01-02-2025, 10:46 PM
InsiteFX
    Thread: CodeIgniter v4.5.7 bug fix released!
Post: RE: CodeIgniter v4.5.7 bug fix released!

Thank you CodeIgniter Development Team.
347 Views
2 Replies
12-31-2024, 10:55 PM
InsiteFX

Theme © iAndrew 2016 - Forum software by © MyBB