Welcome Guest, Not a member yet? Register   Sign In
SHIELD Best Practice
#1

(This post was last modified: 06-27-2022, 10:15 AM by JanFromHamburg. Edit Reason: typo )

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!
Reply
#2

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/b...install.md
--- I am not a developer ---
Reply
#3

See docs:
https://github.com/codeigniter4/shield/b...install.md
Reply
#4

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...
Reply
#5

(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/b...ckstart.md
Reply
#6

(This post was last modified: 06-29-2022, 11:57 PM by InsiteFX. Edit Reason: spelling error fix )

Lonnie just posted a video on how to install Shield into the framework. Look on the right side for it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#7

@JanFromHamburg : Here is the link to the video @InsiteFX is talking about : https://www.youtube.com/watch?v=Qp3dX1rD46A
--- I am not a developer ---
Reply




Theme © iAndrew 2016 - Forum software by © MyBB