Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Calendar Package
  • Probably some bugs in it still, but here is a Calendar Package for Fuel 1.0. https://github.com/dlpetrie/fuel_calendar - Supports month, week, and day views
    - Supports multiple instances ( very little testing and don't know why you would really need it)
    - Can pass data and overwrite the default link to each date cell
    - Option to show navigation for previous/next month, week, and day views
    - Option to overwrite template in app/view/whatever/directory/you/want instead of just app/view
    - Default views use basic HTML5 - may want to overwrite if your app isn't made to support it.
    - There is no default styling Basic example:
    // some controller method
    
    public function action_calendar($view = null, $year = null, $month = null, $day = null)
    {
        //setting config
        $config = array(
            'dates_as_links' => true,
            'navigation' => true,
            'navigation_url' => \Config::get('base_url').'events/view/calendar/',
            'viewpath' => 'events/content/',
        );
    
        // passing data $key = date, $value = array()
        $data = array( 
            '12' => array( //$key = text or link - link will overwrite default 'dates_as_links' to this value
                'text' => 'this will appear in calendar day of 12',
                'link' => 'http://www.google.com' // #12 will now link to google
            ),
        );
    
        $this->response->body = \Calendar::forge('calendar', $config)->build($view, $year, $month, $day, $data);
    }
    
  • Has this been updated for 1.1? I personally haven't tested it yet as I'm at work ftm.
    Do you maybe have a demo?
  • Thank you, I will give this a try now using fuelphp version 1.7
  • I started updating fuel_calender for use with fuelphp version 1.7, So far I got the month view working, but still needs more updating. 
  • So the calendar is working with fuelphp 1.7 now.
    I also have the https://github.com/gkwelding/FuelPHP-Social-Package working, and NinjAuth package working as well. Thank you fuelphp developers. I am going integrate this calendar with Google API as a test.
  • NinjAuth is no longer needed, Auth has built-in support for Oauth.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion