Jump to content

Recommended Posts

Posted

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". :D

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". :D

I hope this tutorial has been helpful to the community!!!

  • Like 1
Posted

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. :)

  • 1 year later...
Posted

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!

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...