base_url() codeigniter 3.0.4 duplicate in URL with javascript |
I have source code in config.php
PHP Code: $config['base_url'] = 'http://localhost/metter/'; I have source code in autoload.php PHP Code: $autoload['helper'] = array('url','file','form','html','date'); I have script with ajax Code: $("#save").click(function(){ process save in php is successfully, but in window.location="....." on URL is http://localhost/metter/master/Category/...27)%20?%3E please help me to resolve this.. thanks
your script is in a file with extension php or js ?
because <?php ... ?> can work only on php files for me, before insert all my JS scripts in my template, i write this little code PHP Code: <script> BASE_URL will be available in all your JS files |
Welcome Guest, Not a member yet? Register Sign In |