⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

need to display .html file with Javascript



richb201
  • profile picture
  • Member

Posted 19 December 2017 - 19:55 PM

I have my GC app running pretty well. There is a functionality that GC doesn't have but I have found in Google Chart. How can I display the Google chart html file from my MVC based GC app? The Google Chart page is pretty much Javascript. I am calling the chart.php (which contains the HTML/Javascript and is in my View directory) with this call:

 

public function org_chart_managment()
{
$this->load->view('chart.php',(array)$output);
}

In my view file I have :

<a href='<?php echo site_url('Configure/org_chart_management')?>'>Org Chart</a> |

So I thought that clicking on "Org Chart" would run the org_chart_management() in the controller Configure. Instead I get 

 

http://localhost/index.php/Configure/org_chart_management in the address bar and an error 404. I put a breakpoint at the org_chart_management() but it never even gets called. 

 

What am I doing wrong?


richb201
  • profile picture
  • Member

Posted 19 December 2017 - 20:23 PM

never mind. I found the spelling error.