PHP code example of spoonx / sxbootstrapwizard

1. Go to this page and download the library: Download spoonx/sxbootstrapwizard library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spoonx / sxbootstrapwizard example snippets




// Add the assets
$this->sxbWizardAssets()->add();

// The title to show. (Automatically translated, whenever a translator is available).
$title  = 'My dialog!';

// The ID needed to reference your wizard later on
$id = 'my-wizard';

// Create a new wizard instance
$wizard = $this->sxbWizard($title, $id);

/* Add a card.
 *
 * $label       The label for the card. (Automatically translated, whenever a translator is available).
 *
 * $content     The content for the card. Allowed types are:
 *                  - ViewModel
 *                  - /path/to/view (will be resolved, and loaded using partial helper)
 *                  - string
 *
 * $cardName    The name of the card (used in the front-end)
 */
$wizard->addCard($label, $viewModel, $cardName);

echo $wizard