Welcome Guest, Not a member yet? Register   Sign In
Run a seeder using a php script, without spark CLI
#5

Hi datamweb, thanks for your support on this! I followed your instructions and it is now showing this error:
ErrorException #64

CodeIgniter\Autoloader\Autoloader::main(): Failed opening required '/var/www/html/index.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear')
SYSTEMPATH/Commands/Server/rewrite.php at line 43
Code:
36 // then let the request handle it like normal.
37 if ($uri !== '/' && (is_file($path) || is_dir($path))) {
38     return false;
39 }
40
41 // Otherwise, we'll load the index file and let
42 // the framework handle the request from here.
43 require_once $fcpath . 'index.php';
44 // @codeCoverageIgnoreEnd
45

The KishanSeeder.php file is exactly how you wrote it, Routes.php is updated with your code also and there is no migration file.
I tried calling home, Home home.php, Home.php from the URL.
Thanks! Smile
Reply


Messages In This Thread
RE: Run a seeder using a php script, without spark CLI - by Kishan Anand - 04-29-2022, 05:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB