Welcome Guest, Not a member yet? Register   Sign In
call an ajax request to one Controller... what the solution since out of web access
#1

I have my Controllers Views and Models and all application folder out of web root[public_html] Not accessible

I want call an ajax request to one Controller... what the solution since out of access?

Cent OS 6.7 LAMP 

if create for the Controller file a soft link "ln -s /x/y/appplication/controllers/Xcontroller.php /x/y/public_html/assets/php/link-to-controller.php"

should work calling soft link in web root...? or same thing is? any other solution?
Reply
#2

As long as you use the full url path to the controller/method it
should not matter.

I have mine outside and I can access them.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

try chown them
Reply
#4

(07-28-2018, 09:03 AM)InsiteFX Wrote: As long as you use the full url path to the controller/method it
should not matter.

I have mine outside and I can access them.


YOU MEAN access Controller from Ajax/jQuery/HTML5... ?

Can you provide your URL as example used by your jQuery/Ajax??
Reply
#5

(07-28-2018, 01:56 PM)plonknimbuzz Wrote: try chown them

what you mean ? >>>
try chown them

change owner(user):group with this command to what?

can you provide your ajax url as example... or at least a sample ajax url similar to  yours?
Reply
#6

Code:
<head>
<!-- setup base_url() and site_url() for JavaScript -->
<script>
   var baseUrl = "<?php echo base_url(); ?>";
   var siteUrl = "<?php echo site_url(); ?>";
</script>
</head>

jQuery CODE:

$.ajax({
   url: baseUrl + "controller/method",
   // other parameters
});
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB