Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Problem with multiple user.php files and JTableUser definition
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Radek Suski  
View profile  
 More options May 16 2012, 3:15 am
From: Radek Suski <suski.ra...@googlemail.com>
Date: Wed, 16 May 2012 00:15:13 -0700 (PDT)
Local: Wed, May 16 2012 3:15 am
Subject: Re: [jplatform] Problem with multiple user.php files and JTableUser definition

Andrew,

yes but this is not my component which causes the problem, this is the
component I have problems with.

In particular there is a component called "Job Board". This component has a
file in /administrator/components/com_jobboard/tables/user.php. This file
is NOT an override of the JTable User class.
When I'm trying to create the JUser object in our module, JPath::find()
means that this table definition from the "Job Board" component is the
right definition for the JTableUser class, which is not the case, and
that's the whole problem.

Phil, namespaces in PHP is not something we can rely on yet I think.

On Wednesday, 16 May 2012 09:10:12 UTC+2, Andrew Eddie wrote:

> On 16 May 2012 17:01, Phil Brown <pbr...@softwaresolutions.com.au> wrote:
> > This is something I hit fairly often.

> > Only recently with a html class called SSFormsHtmlForm in a file in
> > JPATH_COMPONENT/html/form.php.

> > This stopped JHtmlForm::token from loading due to this issue.
> > Personaly it is ugly to have other files named correctly then have an
> odd
> > one out due to conflicts.

> > If the paths could take the namespace into account?

> The whole point of the problem is that all the "include path" methods
> and their variants are a hangover from supporting PHP 4. This is no
> longer a problem with new autoloaders and such, but we aren't
> completely there yet.  The workaround is to use JLoader::register to
> force the behaviour that you want and this works in Joomla 1.5 and
> 2.5.  That's far easier than trying to "fix" the path order which I'm
> sure will end up breaking something else in an unexpected way.

> Name spaces are only going to help when everything is name spaced and
> I can't see that happening in the Platform until next year.

> Regards,
> Andrew Eddie
> http://learn.theartofjoomla.com - training videos for Joomla developers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.