protected function createPages()
    {
        $this->setCliMessage('Creating pages...');

        $pages = array();

        $pages[] = array(
            'title' => 'Contact us',
            'description' => 'Contact information',
        );

        $pages[] = array(
            'title' => 'Help',
            'description' => 'Help information. Coming soon...',
        );

        foreach ($pages as $page) {

            $page += array(
                'status' => 1,
                'user_id' => $this->context['user_id'],
                'store_id' => $this->context['store_id']
            );

            $this->getPageModel()->add($page);
        }
    }
protected function createPages()
    {
        $this->setCliMessage('Creating pages...');

        $pages = array();

        $pages[] = array(
            'title' => 'Contact us',
            'description' => 'Contact information',
        );

        $pages[] = array(
            'title' => 'Help',
            'description' => 'Help information. Coming soon...',
        );

        foreach ($pages as $page) {

            $page += array(
                'status' => 1,
                'user_id' => $this->context['user_id'],
                'store_id' => $this->context['store_id']
            );

            $this->getPageModel()->add($page);
        }
    }
protected function createPages ( ) { $ this -> setCliMessage ( 'Creating pages...' ) ; $ pages = array ( ) ; $ pages [ ] = array ( 'title' => 'Contact us' , 'description' => 'Contact information' , ) ; $ pages [ ] = array ( 'title' => 'Help' , 'description' => 'Help information. Coming soon...' , ) ; foreach ( $ pages as $ page ) { $ page += array ( 'status' => 1 , 'user_id' => $ this -> context [ 'user_id' ] , 'store_id' => $ this -> context [ 'store_id' ] ) ; $ this -> getPageModel ( ) -> add ( $ page ) ; } }
Creates default pages
Creates default pages