Questions tagged [jmodel]

The tag has no usage guidance.

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

$mymodel->publish($id, $state) returns “false” when calling it via CLI - on Web it returns true

I got a little problem: I would like to publish an item with some "different" states (1,0,2,-2,-1). I'm doing this this way: if(empty($this->getErrors())) { $tableitem->store(); $...
0
votes
1answer
16 views

Change boolean field in JModelList table like “published”

Joomla 3.9.10. I have custom component. In admin panel I show items list from one DB table with JModelList. models/mycom.php: class MyComModelMyCom extends JModelList { public function getItems()...
0
votes
0answers
733 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 = ...