Joomla.it Forum

Joomla! 3 => Joomla! 3 => : Thierry87 02 Feb 2013, 19:13:57

: Custom data sources don't work
: Thierry87 02 Feb 2013, 19:13:57
It is impossible to call a php file from default.php (restricted access). Each of my users has its coordinates in a specific field and I built a custom data source (model joomlausers.php). My query works, but your code is not appropriate to call a php file.
Sorry to write in English, but I do not think it is more understandable in French.
: Re:Custom data sources don't work
: mau_develop 02 Feb 2013, 19:26:29
but your code is not appropriate to call a php file
-----------------------------------------------------------------
your server allow this?
: Re:Custom data sources don't work
: Thierry87 02 Feb 2013, 21:07:23

Hello,
No this is not my code. I have not modified your component, but you can not call this way joomlausers.php file (or another file to another data source). This causes an error "restricted access" (defined ('_JEXEC') or die ('Restricted access') ;).
: Re:Custom data sources don't work
: giovi 03 Feb 2013, 00:24:17
Hello thierry87, welcome in the Italian Joomla! community ;)