Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Crumbpath / Breadcrumbs
  • Hello, i thought let give a try at FuelPHP :)
    So i created a crumbpath / breadcrumbs package for you guys. It is a simple package but i see alot of site's that misses
    this functionality. Hopefull it stimulates developers to implement a breadcrumb to there site. The package:
    https://github.com/rbrussaard/fuel-crumbpath It is very easy to use
    Add item to collection
    \Crumbpath::add_item('Lorem', 'lorem');
    title, url Cast crumbpath to html
    \Crumbpath\Crumbpath::to_html(); Set custom view
    \Crumbpath::set_view(\View::factory('html/crumbpath'));
    I also got a question, is there a method to get the base / default url of the site installation? Enjoy, and thanks in advance for your answers.
  • echo \Config::get('base_url'):
    
  • Harro Verton wrote on Tuesday 4th of October 2011:
    echo \Config::get('base_url'):
    

    Super! Thanks! Updated repository. What you think about the package? any tips about my php usage?
  • In your view, the "Home" link has no href, so it links to the current page, not the homepage. And I think you should not hardcode this, some may not want a home link, or don't speak English and use something else than "Home".
  • I was thinking to add this by config settings. So you set your own values as home link. Now it is possbile to use a custom view where u can change this ofc.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion