Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Yonas Fesehatsion
Full Stack JavaScript Techdegree Student 7,950 PointsHow to set up Admin page for a website?
By now I am familiar with CSS, HTML, PHP and also sql and POD. Thats where the course on PHP development ends in the treehouse courses. But i felt something is missing. The Amin page. I come to learn in treehouse from CMS background and I am used to any kind of website with Amin page where the end user (customer) is supposed to update his/her website easily with out any background in any sort of coding. My problem now is where is the Admin page or how am I supposed to integrate it with the website I have just finished for a client. I am expecting there are ways in which the client is supposed to perform CRUD in the database through easy means such as forms. It would also be very helpful for me is someone can try to explain what contents are left to be dynamically edited by the client and what are for the developer. You know the balance. Thanks beforehand.
1 Answer
Kevin Korte
28,149 PointsIt's usually not terribly hard to end up rolling your own admin background using the technologies listed. To over simplify, you would have an admin login, they would would serve up some views only associated the a user who is logged in. Than you could read data from the database, and using your knowledge of html forms and PDO, have new data posted to the database or edited.
On a tangent, this is where MVC frameworks like Laravel come in handy, as a lot of the basic CRUD functionality is built in already, and all you have to do is create the database tables, and the views, with some pretty light controller and model logic to build your own admin dashboard.
I'm not saying it's easy, but I built an admin dashboard in Rails in about 3 days while I was also learning it. It's not as scary as it sounds.