Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Could the parser parse a module?
  • Lets say I have a module called blog and a function in its class file called get that accepts an id value, and then somewhere in a view some text like this for example:
    {blog:get:31}
    

    and that would render out http://fuel/index.php/blog/get/3 Is that something the new parse package could do, or will be able to do?
  • The Parser package itself does little, it's just an interface to allow you to use template parse libraries for Views instead of normal PHP. Thus if this is possible with SimpleTags, Mustache, Dwoo, Smarty, Twig, Haml or Jade: yes. So I guess the answer is yes. ;)
  • Thanks, Ive actually already got this working by overriding the core controller, but would certainly prefer using any traditional methods to do it so I'll dive into the Dan's Simple tags and see whats what.

Howdy, Stranger!

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

In this Discussion