![]() |
SHIELD Best Practice - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: SHIELD Best Practice (/showthread.php?tid=82267) |
SHIELD Best Practice - JanFromHamburg - 06-27-2022 Hi all, sorry upfront for the maybe dumb question: I can download the Shield files to the 'vendor/codeigniter4' folder with Composer. What then? Would I copy all files from 'vendor/codeigniter4/Shield' to the app folder? (That seems a strange process) Appreciate your feedback! RE: SHIELD Best Practice - InstantT - 06-27-2022 Hello Did you try to use Composer from a terminal to install Shield? You can use the following command: PHP Code: composer require codeigniter4/shield When I tried to install it, this line did not work and I used PHP Code: composer require codeigniter4/shield:dev-develop You then need to run one or two Spark commands If it helps, here is the link to the documentation for the complete installation (manual or Composer) : https://github.com/codeigniter4/shield/blob/develop/docs/0%20-%20install.md RE: SHIELD Best Practice - kenjis - 06-27-2022 See docs: https://github.com/codeigniter4/shield/blob/b0ccc14d5dda68df74130723227fbc0370d88221/docs/0%20-%20install.md RE: SHIELD Best Practice - JanFromHamburg - 06-29-2022 Thank you! I struggle a lot with the changes from 3 to 4. Installation worked out, but how do I use for example the RegisterController.php? Do I need to copy the files to the "app" folder structure or would I set a route to the controller in vendors/codeigniter/shield? As I understand the documentation does not tell... RE: SHIELD Best Practice - kenjis - 06-29-2022 (06-29-2022, 11:40 AM)JanFromHamburg Wrote: Installation worked out, but how do I use for example the RegisterController.php? Do I need to copy the files to the "app" folder structure or would I set a route to the controller in vendors/codeigniter/shield? As I understand the documentation does not tell... If you finished setup, the basic functionality will work. Routes are registered automatically. Run `php spark routes`. Navigate to http://localhost:8080/register And see new doc under review: https://github.com/codeigniter4/shield/blob/f1de212cf24f2d7dabab29f2d6637db3f9fbd19c/docs/quickstart.md RE: SHIELD Best Practice - InsiteFX - 06-29-2022 Lonnie just posted a video on how to install Shield into the framework. Look on the right side for it. RE: SHIELD Best Practice - InstantT - 06-30-2022 @JanFromHamburg : Here is the link to the video @InsiteFX is talking about : https://www.youtube.com/watch?v=Qp3dX1rD46A |