GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SourceKettle/TwitterBootswatchHelper: An automatic api.bootswatch.com fetch mechanism for CakePHP 2.0 apps

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
View/Helper
View/Helper
 
 
webroot
webroot
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

TwitterBootswatchHelper

An automatic api.bootswatch.com fetch mechanism for CakePHP 2.0 apps

Installation

Firstly, check out TwitterBootswatchHelper into your 'APP/app/Plugin' directory and update the submodules:

$ cd app/Plugin/
$ git clone [email protected]/pwhittlesea/TwitterBootswatchHelper TwitterBootswatch

Secondly, add TwitterBootswatchHelper to your APP/app/Config/bootstrap.php config file:

<?php
...
CakePlugin::load('TwitterBootswatch');
...

Thirdly, import the Plugin in your controller:

<?php
/**
 * DemoController
 * For a demo
 *
 */
class DemoController extends AppController {
  public $helpers = array('TwitterBootswatch');
  ...
}

Finally, you can now use the TwitterBootswatch Helper in your views:

<h3>Select your theme</h3>
<?php
  $themes = array();
  foreach ($this->TwitterBootswatch->getThemes() as $a => $theme) {
    $themes[$a] = $theme['name'].' '.$theme['description'];
  }
?>
<?= $this->Form->radio("theme", $themes) ?>

About

An automatic api.bootswatch.com fetch mechanism for CakePHP 2.0 apps

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.