July 3, 200917 yr I'm currently trying to adapt to OOP PHP. I have a firm grasp of OOP from developing desktop applications but for PHP, I am missing some theory. To practice my PHP, I'm making a news publishing system. I'm currently working on the "Add News" page which will, as suggested, add a news article to the database and also to the front end of the website. The interface for it will be a form for the user to fill in, but I just don't know what to do when the user hits Submit... Should I be posting it to a createNews.php file, which retrieves the post values, then creates a "NewsArticle" class with the posted values, then call the method which stores it in the database? Any input is much appreciated as always.
July 3, 200917 yr IBM has some stellar tutorials on PHP OOP http://www.ibm.com/developerworks/opensource/library/os-phpobj/
Create an account or sign in to comment