Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Sortable behavior
  • Is there a possibility to implement something like a sortable behavior for Orm?
    I cant do it by class extending like "nestedsets" does because i'd like to assign multiple behaviours to one model
  • So every time you perform a query, your results will be sorted by this behaviour?
    is this what you mean?
  • mhh no. sorry for my bad english.
    I'd like to make a model use a trait. this trait performs sorting actions on the model.
    the model is required to have some special fields for that (sorting).

    Ho do i make the "the model needs that field". like an interfact (but on properties).

Howdy, Stranger!

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

In this Discussion