how to add new config in spryker backoffice & store that in db, then print it to frontend?
Hi, I have added navigation in spryker backoffice and in that added a label and a input tag and save button to store the data into the database
in config/zed/navigation.xml
<hello-antelopes>
<label>Hello World</label>
<title>Hello World</title>
<bundle>training</bundle>
<controller>hello</controller>
<action>index</action>
<visible>1</visible>
</hello-antelopes>
in src/zed/HelloWorld/Presentation/hello/index.twig
{% extends '@Gui/Layout/layout.twig' %} {% block content %} <div> <div>{{ 'Hello World' | trans }}</div> <div> <div> <label>Title</label> <input /> </div> <input type="submit" value="{{ 'Save' | trans }}"/> </div> </div> </div> {% endblock %}
i am able to print the navigation and the form inside back office right now after clicking save it don't do anything , what changes do i need to do in code to store it in database and the print it to frontend, is their any reference that i can follow
Answers
-
With only those files you are not telling Spryker where/how to save what you're creating, no?
I'd say you might want to have a look at the Persist, Fetch, and Transport Data across Layers and Services course in the Spryker Backend Fundamentals learning plan: https://safari.spryker.com/learn/learning_plan/view/83/spryker-backend-fundamentals.5
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random