Alex Posted February 6, 2011 Report Posted February 6, 2011 Hi, Im trying to create a seperate page where a pilot can click on a world map on hotspots for the airports so it brings up a page with all the charts for that airport. Here is the process as i understand it. Create a module "Charts" <?php class charts extends CodonModule { public function index() { Template::Show('charts.tpl'); } } ?> I have created my charts.tpl which is in my skins folder and obviously each airport needs its own template where i will display the chart links. When i do this i get the module "charts" does not exists.error Is there anything else i need to change. I have checked the file exists in core/modules/charts and it is there. Thanks in advance Alex Quote
Administrators simpilot Posted February 6, 2011 Administrators Report Posted February 6, 2011 Make sure you have the module file placed correctly -> core/modules/charts/charts.php Class names in php are also very important. Make sure that the folder, file name and class name are all exactly the same, including capitalzation. core/modules/Charts/charts.php with the class name Charts will not work in most cases core/modules/Charts/Charts.php with class name as Charts is the accepted way to build classes within codon. Quote
Alex Posted February 6, 2011 Author Report Posted February 6, 2011 Thanks Dave, It was the capitalisation of Charts.php that was missing i had charts.php Works now, very fast response thanks 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.