Skip to main content
Lanah's user avatar
Lanah's user avatar
Lanah's user avatar
Lanah
  • Member for 9 years, 7 months
  • Last seen more than 3 years ago
awarded
awarded
awarded
comment
Model/Controller: get id of current item and use it in controller
Create JTable, yourModelName.xml for form in models/forms/ then in your view.html.php get form $this->form = $this->get('Form'), get item $this->item = $this->get('Item') and if form will not be filled just do $this->form->bind($this->item) and all of the form will be in your scope of data jform or other as you wish in model->getForm() method
comment
Use JTable to save frontend-data
You need to extend JControllerForm controller in front and add getModel method into it.
comment
Use JTable to save frontend-data
You need to extend administrator model and view and thats all.
comment
Loading…
comment
How to check whether a specific row exists in a JDatabase table?
true, but he might be using some kind of core tables : ) and if not he should create JTable in module / plugin :)
answered
Loading…
awarded
awarded
comment
How to check whether a specific row exists in a JDatabase table?
You should propagate JTable for this case ; ) if(JTable->load([$key => $value])) return true if record exists and false if record not exists then you can use ->store to insert / update record.
Loading…
comment
How do I get category object from within an item's template?
It's like a rape on a joomla ; ) You need to pass reference of parent $category aka $this to child template.
answered
Loading…
answered
Loading…
answered
Loading…
awarded