Welcome Guest, Not a member yet? Register   Sign In
Plugin Handling Class - Extends the CI_Hooks Class
#21

[eluser]simshaun[/eluser]
Unless they really want your class, most won't go through all that hassle.

TortoiseSVN is definitely the best though.
#22

[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.
#23

[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.
#24

[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. Wink
#25

[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 ?
#26

[eluser]Xeoncross[/eluser]
Well, if you look at the code you will see. You can also read up on it at the php site.
#27

[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
#28

[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);
#29

[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




Theme © iAndrew 2016 - Forum software by © MyBB