Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Access Views/Presenters from other Contoller
  • Is it able to do it like that ? 

  • I don't understand the question.

    Your URI request leads to executing a single Controller method, there are no other controllers active at any given point.

    Do you mean you want bits of generic code, that you want to use from several controllers, for example to generate a header or a menu?
  • Can I use the set_safe in regular function, which is not view instances ?

    // or use the set_safe() method, which is identical to set() but defaults to 'false'

    $view->set_safe('title', '<strong> bold because unfiltered</strong>');
  • or can I disable the framework to convert my html code ?

    Thanks
  • Every time I use ajax to get my html code, I turn into plain text..  How can I disable it ?
  • HarroHarro
    Accepted Answer
    No, it's a method of the View class.

    Yes, you can, by disabling the filter, but is strongly recommended not to, since it disables all security. In general, if you have a lot of need for this, you're doing some wrong.

    I told you that twice before. If you want to output HTML, you need to disable encoding.

Howdy, Stranger!

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

In this Discussion