controllers/commands/Page.php
protected function wizardAddPage()
    {
        // Required
        $this->validatePrompt('title', $this->text('Title'), 'page');
        $this->validatePrompt('description', $this->text('Description'), 'page');
        $this->validatePrompt('store_id', $this->text('Store ID'), 'page');

        // Optional
        $this->validatePrompt('user_id', $this->text('User ID'), 'page', 0);
        $this->validatePrompt('meta_title', $this->text('Meta title'), 'page', '');
        $this->validatePrompt('meta_description', $this->text('Meta description'), 'page', '');
        $this->validatePrompt('category_id', $this->text('Category ID'), 'page', 0);
        $this->validatePrompt('blog_post', $this->text('Blog post'), 'page', 0);
        $this->validatePrompt('status', $this->text('Status'), 'page', 0);

        $this->validateComponent('page');
        $this->addPage();
    }
protected function wizardAddPage()
    {
        // Required
        $this->validatePrompt('title', $this->text('Title'), 'page');
        $this->validatePrompt('description', $this->text('Description'), 'page');
        $this->validatePrompt('store_id', $this->text('Store ID'), 'page');

        // Optional
        $this->validatePrompt('user_id', $this->text('User ID'), 'page', 0);
        $this->validatePrompt('meta_title', $this->text('Meta title'), 'page', '');
        $this->validatePrompt('meta_description', $this->text('Meta description'), 'page', '');
        $this->validatePrompt('category_id', $this->text('Category ID'), 'page', 0);
        $this->validatePrompt('blog_post', $this->text('Blog post'), 'page', 0);
        $this->validatePrompt('status', $this->text('Status'), 'page', 0);

        $this->validateComponent('page');
        $this->addPage();
    }
protected function wizardAddPage ( ) { // Required $ this -> validatePrompt ( 'title' , $ this -> text ( 'Title' ) , 'page' ) ; $ this -> validatePrompt ( 'description' , $ this -> text ( 'Description' ) , 'page' ) ; $ this -> validatePrompt ( 'store_id' , $ this -> text ( 'Store ID' ) , 'page' ) ; // Optional $ this -> validatePrompt ( 'user_id' , $ this -> text ( 'User ID' ) , 'page' , 0 ) ; $ this -> validatePrompt ( 'meta_title' , $ this -> text ( 'Meta title' ) , 'page' , '' ) ; $ this -> validatePrompt ( 'meta_description' , $ this -> text ( 'Meta description' ) , 'page' , '' ) ; $ this -> validatePrompt ( 'category_id' , $ this -> text ( 'Category ID' ) , 'page' , 0 ) ; $ this -> validatePrompt ( 'blog_post' , $ this -> text ( 'Blog post' ) , 'page' , 0 ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'page' , 0 ) ; $ this -> validateComponent ( 'page' ) ; $ this -> addPage ( ) ; }
Add a new page step by step
Add a new page step by step