Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Add Lang::line() support to Html::anchor()
  • With this extend you are able to use the Lang class directly in Html::anchor() for the fields href, text and attribute title. Just by extending the Html class... http://scrp.at/u_ Copy code into: /app/classes/html.php Add the following to the app bootstrap:
    Fuel\Core\Autoloader::add_classes(array(
     // Add classes you want to override here
     // Example: 'View' => APPPATH.'classes/view.php',
     'Html' => APPPATH.'classes/html.php',
    ));
    

    If someone has suggestions or knows how to do it better, please let it know on this topic.

Howdy, Stranger!

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