how the component will be executed

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
ravkt
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Apr 04, 2012 9:39 am

how the component will be executed

Post by ravkt » Sun Sep 16, 2012 6:16 am

hi all, anyone explain me how the component files will be execute...

please explain the classes and functions execution in a component.
Last edited by imanickam on Sun Sep 16, 2012 7:56 am, edited 1 time in total.
Reason: Moved the topic from the forum Extensions for Joomla! 1.5 to the forum Joomla! 1.5 Coding

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: how the component will be executed

Post by sovainfo » Sun Sep 16, 2012 10:18 am

Joomla will call the component.php. where component is what follow after com_. What happen next is up to the component itself. Most of the time it starts a controller defined in controller.php
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

ravkt
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Apr 04, 2012 9:39 am

Re: how the component will be executed

Post by ravkt » Sun Sep 16, 2012 10:33 am

but i need to know the classes and functions execution in a component...

actually i want to write some condition for a particular category in templates/name_template/html/com_k2


but how to get the category name in item.php any idea?
Last edited by ravkt on Sun Sep 16, 2012 1:13 pm, edited 1 time in total.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: how the component will be executed

Post by sovainfo » Sun Sep 16, 2012 12:35 pm

Look in the source.

No need to identiek, use $this or self.

Don't understand the question about placing condition!
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

ravkt
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Apr 04, 2012 9:39 am

Re: how the component will be executed

Post by ravkt » Sun Sep 16, 2012 1:17 pm

i don't understand could you please explain in briefly?...

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: how the component will be executed

Post by sovainfo » Sun Sep 16, 2012 3:27 pm

In order to findout which classes and functions are called you need to look in the source of the component.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

ravkt
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Apr 04, 2012 9:39 am

Re: how the component will be executed

Post by ravkt » Mon Sep 17, 2012 6:47 am

hi thanks for your answer...

i know that i need to check the code but what my point is, from where shall i start checking. whether shall i start from controller=>models=>views or views=>models=>controller

thanks in advance...

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: how the component will be executed

Post by sovainfo » Mon Sep 17, 2012 7:49 am

As mentioned you start with component.php.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

ravkt
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Wed Apr 04, 2012 9:39 am

Re: how the component will be executed

Post by ravkt » Tue Sep 18, 2012 6:41 am

hi any one tell me the component code execution flow...


Locked

Return to “Joomla! 1.5 Coding”