Questions tagged [model]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
551 views

K2—load Items and Categories by ID

I am about to write a little plugin for K2 what enables the user to link Items/categories to items/categories. The backend part is working and I would like to load the items/categories in public ...
0
votes
0answers
22 views

Joomla 2.5 - Rollback on model save()

This is what I'm trying to do: I save my item in the model, then I call a method that can throw an exception if something goes wrong. If I catch the exception, I want to rollback, this is my ...
0
votes
0answers
715 views

Model/Controller: get id of current item and use it in controller

I got a view in my component's frontend, which catches data from model using the ID of the element: protected function populateState($ordering = null, $direction = null) { $app = ...