Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Search and repale in theme(templase). Own variables
  • Hello. Please help me with Fuelphp templates:I Want to use themes from other cms. Files of these themes are contains variables like {variable}or {headers} - without $. Like a substring. Anybody can help to replase these variables to fuel php $variable. Thanks.

    $this->theme->set_template('main');
    $this->theme->get_template()->set("{headers}", "My homepage");
    not work, and
    $var = "prprprpr";
    $this->theme->get_template()->set(preg_replace ( "{headers}", "\$var", $this->theme ), 'My homepage');
    not work to.
    please guys, help me.

  • Which "other CMS" is that exactly?

    Ideally you would want to use the parser package, and write a custom parser for those specific templates. With a bit of luck that's not that difficult.

Howdy, Stranger!

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

In this Discussion