Backend secured with htaccess and conflict with site views #702
Replies: 2 comments 6 replies
-
By adding 'allow from localhost' and 'allow from 127.0.0.1' as well as a rule that adds the IP address of your server to your .htaccess you should be able to solve this. |
Beta Was this translation helpful? Give feedback.
-
Okay so the only back-end files being used is the tables which is how it use to be done in the Joomla components, as you will see the front does not have this tables folder (for the banners admin and site). But other then that the front-end edit view is not linked to the back-end. This means that if it works with the Joomla core components it should also work for components build with JCB. O yes there is another... the xml folder files and the JavaSript files... So lets try this... remove these lines from your model in the front-end and see if it works: /**
* Method to get the script that have to be included on the form
*
* @return string script files
*/
public function getScript()
{
return 'administrator/components/com_membersmanager/models/forms/member.js';
} This is the only outside the Joomla way... part I can quickly pick-up... and if this is the only issue. We can fix it very easy by moving that file to the media folder, and linking it in from there. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am used to secure Joomla backend with htaccess file in administrator folder.
But, with a component I developed thanks to JCB (love it!), I have a conflict with the site view, where users are prompted with the pop-up due to htaccess file in backend.
As if, to load site views, we were going through backend...
I never saw that with others components...
This is not really a blocking point as users can just click cancel and the process continue with no side effects...but it is not clean!
Did you already face that situation?
Do you have an idea why I face this behaviour or how to solve it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions