![]() |
Extending CORE class didn't work as expected - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Extending CORE class didn't work as expected (/showthread.php?tid=52160) |
Extending CORE class didn't work as expected - El Forum - 05-31-2012 [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 Extending CORE class didn't work as expected - El Forum - 05-31-2012 [eluser]weboap[/eluser] check this thread http://ellislab.com/forums/viewthread/196998/ Extending CORE class didn't work as expected - El Forum - 06-01-2012 [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? |