The widgets' data source
  • Hi!

    I took a look at the way the widgets work. All it's done in the jquery.showinfo.js. I would like to see the script where the json object parsed by this script is created. In /usr/share/airtime/public there is no api folder, and for sure no /api/week-info/.

    Where should I look?

    Alexandru
  • 4 Comments sorted by
  • Hey,

    Look into airtime_mvc/application/controllers/ApiController.php

    Function name weekInfoAction();

    The URL don't map to files when you use an MVC framework, it is all virtualized :)
    Airtime Pro Hosting: http://airtime.pro
  • Hi!

    I modified the file /var/lib/airtime/tmp/airtime_mvc/application/controllers/ApiController.php but I see no change. For example I modified this line

    $dow = array("monday", "tuesday", "wednesday", "thursday", "ffffffriday", "saturday", "sunday");

    and added another one

    $result['AIRTIME_VERSION'] = "2.1.1";

    It's the right file I modify, you told me...so, what's wrong?

    Alexandru
  • i've you tried changing here:
    /usr/share/airtime/application/controllers/ApiController.php


  • Now I tried. And I see the changes.

    Thanks a lot!!!

    With dpkg -L airtime it showed only the files from /var/lib. No idea that the same file structure it's located also in /usr/share.

    Alexandru