WordPress, Plug-ins, PHP, Back-ends, HTML, CSS and Angular 4??

WordPress, Plug-ins, PHP, HTML, CSS and Angular 4??

I need to create a new UI on a WordPress site and want to use Angular. I am not a PHP developer, but would consider using PHP if it made this UI something I could more easily package into a WordPress plug-in.

I am a bit confused about how PHP fits into the equation.

Also, when I need to supplement this new UI with a back-end, is PHP the technology I use to communicate with the WordPress site?

Please explain my options.

Thanks.
newbiewebSr. Software EngineerAsked:
Who is Participating?
 
Julian HansenCommented:
is PHP the technology I use to communicate with the WordPress site?
Yes
I am a bit confused about how PHP fits into the equation.
PHP is the server side code that interacts with the WP environment to retrieve content, format it and send it to the browser.

If you are moving to Angular then you have to ask yourself why - what is it you are hoping Angular will do for you.
You can most certainly use it but mixing Angular with WP seems on the surface to indicate a lack of understanding of requirement - although this is not cast in stone.

Angular is predominantly client side. The Angular code runs in the browser to manipulate the view in the browser. Callbacks to the server are made to fetch and retrieve data which is then rendered in the client. Server side rendering of views is also possible but lets leave that alone for now.

To understand how you would potentially use this I would need to know more about what the application is?

Usual practice (in this case) Angular runs the interface and calls the server (AJAX) for data (or submits data) - on the server a PHP handler for the AJAX call will process and return the data. This could be the built in WP AJAX handler or a custom service that loads WP and interacts with it in a custom fashion.
0
 
newbiewebSr. Software EngineerAuthor Commented:
I actually only introduce the topic of Angular since I wanted to learn Angular myself. It would be the front end of the WordPress site.

But, it sounds like I am trying to solve to many problems and should stick with PHP and make my new functionality simply into another PHP page.

So, PHP is the server side. I assume the page would be HTML, CSS, Bootstrap and PHP.

Does the use of PHP mean JavaScript is not used? Or wold JavaScript and JavaScript library's and plug-ins still be just as much needed on a PHP page?

Thanks.
0
 
Dave BaldwinFixer of ProblemsCommented:
In a Wordpress site, most of the content is stored in a database and PHP is used to fetch and display it.  There are usually NO HTML files in a Wordpress site, just the HTML pages generated by PHP.
0
 
newbiewebSr. Software EngineerAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.