CodeIgniter 4 Playground |
Hi all, what fix my error?
PHP Code: php spark serve
@MGatner,
> @John_Betong > Okay that is merged, try pulling the latest version of Playground and see if you have better luck. Many thanks it not only works but I have just incorporated playground into my ci4-strict online version and it is online and there is a GitHub version
(12-01-2019, 09:16 PM)hainm Wrote: Hi all, what fix my error? Hi. you should put it in Codeigniter project. You can copy system folder from 'vendor\codeigniter4\codeigniter4' into root directory
Another hurdle completed
I eventually managed to import the PlayGround into my ci4-strict application. Once the original PlayGround tables were created they were exported as SQL files and MySqli used to create the DataBase because I could not find any CI4 methods. When the DataBase was created the tables were created and populated from the SQL scripts. A SQL = "DROP DATABASE CI4" was used to ensure the database and tables were created from scratch. Now the tables are created I am curious to know what supposed to happen when links are clicked and also the image source for "pirate.png" and "ursula.png". (12-05-2019, 06:07 AM)John_Betong Wrote: Another hurdle completed You could run the migrations from the cli if you have shell access to the server. It was intended as something to play in for a local environment to learn from, not really something to be live on servers so installation doesn't cover all of those features The real benefit, we feel, is from exploring the code and the comments. Our aim is to show how to do things in different ways in the code. For example, the "Heroes" section of that page is handled through arrays returned from the database calls, while the "Dungeons" section uses Entity instances. (12-05-2019, 06:07 AM)John_Betong Wrote: Now the tables are created I am curious to know what supposed to happen when links are clicked and also the image source for "pirate.png" and "ursula.png". Nothing yet - it's still very much early days for the playground. We are adding to it as we have time. My next intentions are to add forms for each of those. One using simple HTML/PHP for the form, and the other using the form helper objects. After that - not sure yet, but ideas are always welcome. (12-03-2019, 04:39 AM)MGatner Wrote: @hainm Playground comes with the necessary application files, but the framework needs to be added. The intended way to do this is by running “composer install” from the project directory, but as triluminos noted you could also download a zip and put it in place.I did it using composer, still receiving the same problem as [b]triluminos [/b]
Thanks, after having moved the system folder I know get this message:Class 'SQLite3' not found
SYSTEMPATH/Database\SQLite3\Connection.php at line 89 If I run php spark migrate php spark dbeed PlaygroundSeeder I get pretty much the same error: An uncaught Exception was encountered Type: Error Message: Class 'SQLite3' not found Filename: C:\xampp\htdocs\playground\system\Database\SQLite3\Connection.php Line Number: 89 |
Welcome Guest, Not a member yet? Register Sign In |