November 2013
Beginner to intermediate
376 pages
9h
English
The custom post manager contains the Models and Twig templates library. First, we have to copy all the models into the models folder of the root plugin. The autoloader functionality is implemented in the main plugin file, and hence we have to move both the twig and twig_cache folders into the root folder as well. In step 15, we initialized the Twig_Initializer class from the main file. So, the initialize function of wpwa-custom-post-manager should be updated to the following code:
public function initialize(){ $this->template_parser = Twig_Initializer::initialize_templates(); $this->services = new WPWA_Model_Service($this->template_parser); $this->projects = new WPWA_Model_Project($this->template_parser); $this->books ...Read now
Unlock full access