![]() |
Plugin Handling Class - Extends the CI_Hooks Class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Plugin Handling Class - Extends the CI_Hooks Class (/showthread.php?tid=10594) |
Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 12-31-2008 [eluser]simshaun[/eluser] Unless they really want your class, most won't go through all that hassle. TortoiseSVN is definitely the best though. Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 12-31-2008 [eluser]Xeoncross[/eluser] What??? - why would people like that even be on a PHP Framework site? I think you mistaking this for a wordpress community. Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 12-31-2008 [eluser]simshaun[/eluser] We have so-called "experienced" developers with years of experience walking into our office quite often who don't know what SVN is. First, I'm sure that if a poll was taken, many on these forums wouldn't know how to use SVN. Second, I've never been on the WordPress forums, so there has been no mistaking involved here. Finally, why do you keep trying to make arguments out of this? I'm simply telling you what I believe to be true, and trying to give you advice to help you get your code out. Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 12-31-2008 [eluser]Xeoncross[/eluser] haha Your right, my answers do almost sound like arguments - but they actually weren't directed at you. I am hoping that someone browsing this thread will be pressured into starting SVN. Kind of like how Rails got so big. ![]() Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 07-15-2009 [eluser]quasiperfect[/eluser] hi in u'r example u call a class $this->hooks->_call_hook('custom_hook_class'); and in the hooks u have defined the function print_hello how do u call that function with a variable ? Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 07-15-2009 [eluser]Xeoncross[/eluser] Well, if you look at the code you will see. You can also read up on it at the php site. Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 07-15-2009 [eluser]quasiperfect[/eluser] i love u'r *smart* response my question was how i call the custom_hook_class function print_hello with a variable from the controller not with the parameters defined in the config/hooks.php Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 07-15-2009 [eluser]Xeoncross[/eluser] Are you asking how you setup more hooks to run outside of setting them in the config/hooks.php file? If that is the question then my question is, why you are hard-coding hooks from in the controller instead of the hooks config? If you are asking how you pass a variable to filter when calling the hook: Code: $mydata = $this->hooks->filter('custom_hook', $mydata); Plugin Handling Class - Extends the CI_Hooks Class - El Forum - 07-16-2009 [eluser]quasiperfect[/eluser] i was testing some things but u'r right i will set all hooks from config the library works great thanks for responding |