Extending CORE class didn't work as expected |
[eluser]ReyPM[/eluser]
Hi every: I'm trying to extend the CI_Calendar class for add multievent per day support which is not included by default. Right now my class, called MY_Calendar and save at libraries/, have this code: http://pastebin.com/cq6A3JTY. Now in my model I have this other code: http://pastebin.com/tq3MLWkw and as yours can see there I setup a $config var but for some reason my code isn't using that $config because the tabel output without styles. Why? I'm missing something or something is wrong in my code? Regards and thanks in advance
[eluser]ReyPM[/eluser]
Hi, I've this already done but to the template is passed a Array so when I build the calendar I get this error: Quote:A PHP Error was encountered This is the data returned by my function: Code: Array ( [1] => Array ( [0] => Event 1 [1] => Different profiles for different groups ) ) And of course if because the template didn't expect a Array just a simple string, my question here is: how to make the template to parse correctly the data? This is my code for the template: Code: $template = ' Any help with this? |
Welcome Guest, Not a member yet? Register Sign In |