Upgrading from Pre 0.1.0 Versions to 0.1.0 and above
Patrick Garske edited this page Jan 27, 2019
·
4 revisions
All functions that accept arguments now accept them as part of an array. This update will most likely break your code, so please make sure to back everything up and read the 0.1.0 Update documentation.
Pre 0.1.0:
echo jumbotron(jumbotron_content("Jumbotron Title", "Lead Text", "*Insert Actual Content Here*", "#", "Primary Button"), no_arg());
0.1.0 and above:
$jumbotron_data = array();
$jumbotron_data["fluid"] = true;
$j_content_data = array();
$j_content_data["title"] = "Jumbotron Title";
$j_content_data["lead_text"] = "Lead Text";
$j_content_data["links_to"] = "#";
$j_content_data["button_text"] = "Primary Button";
echo jumbotron($jumbotron_data, jumbotron_content($j_content_data, "*Insert Actual Content Here*"));
To install the latest 0.1.0 Beta via composer, run the following command: composer require tuxnull/bootstraphp:dev-master