Replies: 7 comments 4 replies
-
Hey @camya! Could you please post the full controller class that contains this code? |
Beta Was this translation helpful? Give feedback.
-
Hi Dan, nice to meet you. I output the data in a regular (resouce) controller's index action. Nothing fancy here. Hope I'm not just missing a simple step. :)
The files installed in vendor/squirephp are looking fine for me. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Could you double check that you have the |
Beta Was this translation helpful? Give feedback.
-
Ok, I found the problem. The method I'm not sure why this empy file was created, and why it was empty. I deleted the squire-squire-models-country-en.sqlite file and reloaded the page. This time a valid database squire-squire-models-country-en.sqlite file was created and Country::all() worked just fine. Some ideas:
|
Beta Was this translation helpful? Give feedback.
-
Awesome! I will add those requirements to the docs - I presumed that they were default extensions since most environments preinstall them by default. How would you feel about a |
Beta Was this translation helpful? Give feedback.
-
It seems to happen when you load the app without the necessary PHP modules. The file is created regardless of it being populated. I'm assuming that removing the file when this happens would fix it. |
Beta Was this translation helpful? Give feedback.
-
This issue still happens. Same steps(deleting the sqlite file in Storage) does worked for me. But It should have happened at all. Or at least this should have been added to Docs |
Beta Was this translation helpful? Give feedback.
-
Hi,
at the moment I try to figure out how to use the project in my application. I followed the instructions by installing squire via
composer require squirephp/countries-en
The instruction says, that I can access the data for example by simply using
Country::all();
I've tried it from my Controller.Unfortunately this does not work for me. I get the following error message.
It looks like I missed something essential. :) How can setup the driver or how can I migrate the data for the model?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions