Questions tagged [joomla-component]

Joomla Components are the main Joomla extensions, which provide vital functionality for every Joomla website. They are usually displayed in the center of the page.

Joomla Components define the most vital parts of Joomla page functionality. While a Joomla site may exist without modules or plugins, it could never work without components.

Some components are hard-coded into Joomla, like com_content, which provides the basic Article functionality, or com_users which provides the interface into managing Joomla users. The com_installer is the component responsible to allow for new extension installations.

If you are inexperienced in developing Joomla extensions, you may start with modules or plugins, before getting into components.

For the more experienced, you can read how a component works, here.
To start creating your own component, you can go here.

182 questions
14
votes
1 answer

How to create joomla 2.5 component?

I'm already use joomla component creating application . But that is not a best way , then i think to learn it. please send best tutorial for that . :)
Nimesha
  • 185
  • 1
  • 1
  • 10
4
votes
1 answer

How to use multiple models in joomla MVC Component

I am using different model in joomla than view's own model that is similar to its name by assigning it from controller, like: $view->setModel($this->getModel('user')); Now how can I use its method getSingleUser($user_id) in view. In an…
Hafiz
  • 4,187
  • 12
  • 58
  • 111
4
votes
3 answers

.gitignore for Joomla component

I'm developing a Joomla! component named com_proposta. I'm using git for version control. I want git to ignore all Joomla files except the files in administrator/components/com_proposta and components/com_proposta.
user2671169
  • 203
  • 1
  • 10
3
votes
2 answers

Joomla: Write and call a helper function in a component

Fledgling Joomla / PHP developer, hitting a wall understanding how to do this. Everything I found searching has been for older versions of Joomla or other frameworks and so it's all confusing the first time around. I want to have a helper function…
Gisto
  • 887
  • 2
  • 16
  • 32
3
votes
1 answer

including Joomla's component's one view's part to another view of Joomla

I am working in Joomla 1.5 and have developed a component, that component have 2 view having same part in both views. I am repeating code, as I have used same code in 2 different views. So I want to know that is there some way that I write it once…
Hafiz
  • 4,187
  • 12
  • 58
  • 111
3
votes
2 answers

Creating simple CRUD frontend component in joomla1.5

I am trying to convert a php application to joomla1.5 app. I have read some docs on how to create components in joomla1.5 but however i am lost at the best approach to create a simple CRUD frontend Component. Here are my few questions 1) Should i…
user1220771
  • 35
  • 1
  • 4
3
votes
2 answers

Joomla show only Contact Form

I have created a contact form for my Joomla site. There are two items in that contact page as Contact (my contact details are listed here) and Contact Form. I don't need that Contact item to display. i need to show only Contact Form. How could i…
Bishan
  • 15,211
  • 52
  • 164
  • 258
3
votes
1 answer

Fatal error: Call to undefined method JController::getInstance() in joomla 3

I am trying to upgrade a component from joomla2.5 to joomla 3 but I am getting this error: Fatal error: Call to undefined method JController::getInstance() in /home/evolve13/public_html/components/components/com_donation/donation.php on line…
Fredrick Boaz
  • 159
  • 2
  • 7
3
votes
1 answer

$input->getCmd('task') what is 'task' in JOOMLA

i was digging this piece of code in JOOMLA $input = JFactory::getApplication()->input; $controller->execute($input->getCmd('task')); 80% i understood but stuck at 'task' thing. Documentation says that getCMD * The default behaviour is fetching…
arslan
  • 565
  • 1
  • 7
  • 25
3
votes
3 answers

Joomla - Where to edit the insert SQL?

I'm learning to create MVC component right now. I studied the code that was created using the component creator. Now I wanna to locate the SQL insert function after the save button is click in the edit form, where does the form send to to call the…
3
votes
3 answers

Changing layout of view in Joomla 2.5

I know there are several similar topics around but I read and tried most of them but still can't figure out how to do this. I have a written a component in Joomla 2.5 and it works so far. I have different views and I can load the views using the…
jost21
  • 1,084
  • 3
  • 15
  • 29
3
votes
1 answer

Joomla: error while saving form in custom view

I have created a custom component with form to update prices of four product to be displayed on frontend. My main controller code is here: public function display($cachable = false, $urlparams = false) { require_once…
3
votes
1 answer

Inject CSS into Joomla Content Editor (JCE) programmatically using PHP?

I want to embed stylesheets in the JCE Editor iframe only for specific pages, preferably using PHP. Right now, the JCE admin interface allows you to set stylesheets globally and by individual user profile for every instance where JCE is loaded in…
danronmoon
  • 3,814
  • 5
  • 34
  • 56
2
votes
1 answer

com_users login format view?

I would like to know what this code does in the joomla file components/com_users/views/login/tmpl/default_login.php form->getFieldset('credentials') as $field): ?> hidden): ?> Also, how do I add the…
theoth
  • 127
  • 3
  • 11
2
votes
1 answer

Joomla component : one view calling multiple models?

I want a view to call 2 different models for use. Controller.php class StatsController extends JController { function display() { if( !JRequest::getVar( 'view' ) ) { JRequest::setVar('view', 'stats' ); } …
1
2 3
12 13