how to add methods in controller file in joomla 3.4 - joomla

I am trying to work with controller file in joomla 3.4. Tell me what is the differences for connecting model and views in joomla 3.4 to joomla 2.5

operation code available in the model and out-put display in view part and model function control in the controller.same step effort in joomla 3.5 and joomla 2.5

Related

Remove component's view name from url joomla 4

I am using Joomla 4.2.1.
I installed custom component which is previously used into Joomla 3.10.11.
I create a menu item with view from this component.
On Joomla 3.10.11 it works fine
for example : http://mylocal.local/index.php/kurse-nach-datum
But
on Joomla 4.2.1 it create url with view name
For example : http://mylocal.local/index.php/kurse-nach-datum/courses
kurse-nach-datum is the Alias of link
and link is index.php?option=com_course&view=courses

Add static javascript to every page of joomla

Im completely new to Joomla development. I need to develop Joomla plugin that adds static javascript to the footer of all the pages of a Joomla site. Also, the plugin would need to save 2 fields in database, and access these fields on per page basis. Also, Admin panel is needed.
Now, my questoion is, where do i start? Joomla plugin development is a big task, so if I can get some pointers as to where to start, it would be very supporting.
Im not asking for direct code, but just the right direction to start.
Thanx in advance....
Joomla has three types of extensions (what you refered to as plugin): components, modules and plugins, where each has a different purpose.
If you need to add javascript to all pages, the best place is your template. If you don't have access to template, just building an extension, then you have to create a content plugin.
If you need to create extension with admin panel which also works with database, you need to create a component. The best place to get started is tutorial Developing a MVC component for Joomla 2.5

Creating custom module: Menuitem SEF links?

I have a Joomla site that I am working on, building some custom modules to control content.
I am using a menuitem field type:
<field type="menuitem" name="loc_nav_item" label="Link URL" ></field>
And then echoing out:
However, even though I have SEF urls active and working on the site, this creates a url based on the ID like this:
I am relatively knew to Joomla, even more so with custom module creating. Is there something I am missing here that will allow the module to generate the proper, SEF url?
Joomla 1.7 (required by client...)
Yes! You need to apply the JRoute function to it - this effectively hasn't changed since Joomla 1.5 so you're fine using it on Joomla 1.7. See the Joomla doc here for more info for the 11.1 platform though.
So you need to use something along the lines of:
Also tell your client Joomla 2.5 has no visible differences to Joomla 1.7 except has a tonne of extra security features missing in Joomla 1.7. He's asking for himself to be hacked!!

Component part shown in joomla frontend

How do I display the form in the frontend in Joomla 2.5, just like the Create Article form shown in the frontend?
You can obviously create an form in an article but it will be pointless as the form will require PHP functions which cannot be written in an article.
Your best bet would be to develop a simple module which you can embed in an article or download a free form extension from the Joomla Extensions Directory.

How to move custom template form Joomla 1.5 to 2.5?

I am migrating form Joomla 1.5 to 2.5 version. I need to move template.
I installed it with Extension Manager. It displayed in Template Manager. But when I am assigning this template to site- the site respond with HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. This template worked fine on Joomla 1.5.
Your template need a Joomla 2.5 (or 1.7) compatibility!
I'm facing the same inconvenient at this time, so i want to publish here my answer to help anyone who has to do this task to convert templates 1.7 to 2.5, the instructions can be found in docs.joomla.org, specifically in the section "Alternate Method Using a Version 2.5 Template".
I've tried different tools to convert them automatically without success, this method really helped me.

Resources