levicosta201 Posted July 11, 2014 Report Posted July 11, 2014 Hello everyone, I come to share with you an issue that I did in my code Virtual Air Lines, this code snippet will remove the error: "no route passed". Hope that is useful to the community! First in: /core/modules/Schedules/Schedules.php search for: public function addbid() { inside this function search for the variable: $routeid = $this->get->id; Replace the variable above for: $routeid = $_GET['bid']; Then search for the file: /core/templates/schedule_results.tpl open this file and search for: <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> Replace the above code by: <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/Schedules/addbid?bid='.$route->id);?>" target="_blank">Add to Bid</a> And voila, you will no longer see the error: "no route passed". I hope this tutorial has been helpful to the community!!! 1 Quote
flyalaska Posted July 18, 2014 Report Posted July 18, 2014 You still have the issue that has caused the "No Routes Passed". In most cases that error issue will also effect the schedules. Just put your js in the correct order. Quote
levicosta201 Posted July 18, 2014 Author Report Posted July 18, 2014 You still have the issue that has caused the "No Routes Passed". In most cases that error issue will also effect the schedules. Just put your js in the correct order. This solution worked for me. Quote
flyalaska Posted July 18, 2014 Report Posted July 18, 2014 You are not getting the point. If you are getting the error, you still have a problem with the js. The reason you are getting the error in the first place. Quote
levicosta201 Posted July 18, 2014 Author Report Posted July 18, 2014 You are not getting the point. If you are getting the error, you still have a problem with the js. The reason you are getting the error in the first place. I got you. Thanks for the feedback, I thought it would work. this code works for me yes. There is NO error with this code. Quote
in2tech Posted September 25, 2015 Report Posted September 25, 2015 You still have the issue that has caused the "No Routes Passed". In most cases that error issue will also effect the schedules. Just put your js in the correct order. Normally I can over come this issue in my skins but have one I am having trouble with. By correct order, exactly what do you mean? It always seems to be the <script src="<?php echo SITE_URL?>/path/js/jquery.min.js"></script> that causes me problems, because once I remove it when looking for the file the No Routes Passed error goes away but so does the function of the javascript. Any ideas on particular order of you speak? Thanks for your help! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.