-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override params.php
Without Affecting Other Plugins
#15
Comments
@creecros please check, I think I am done
|
oh crap, after doing all this work I think I have messed up...!
I dunno, my head is messed up now |
it's okay, at least you learned something and got a little practice. as for file_exists. I'm not aware of that php method, 'if this plugin is being used to access this action'. maybe in the next php release? |
ewww...I just thought of it though. I guess it does exist. |
opp, nevermind, that won't work. |
well crap, maybe....ya, I think so. OK, here's my thought. include a hidden field in the action...and use that in the check to determine if it is coming from your plugin action. if so, have your controller use your params.php, if not, use normal params.php. |
I have no idea how to do that. Thinking of packing it in. |
Could you explain this a bit more please |
@creecros what would the value be? This is what I am thinking...
|
@creecros could i use this for the check? <?php if ($this->app->checkMenuSelection('ActionController')) so if i do it as mycontroller.. do you think it would work? |
ooooh... I think I might have done it.... testing... standby caller |
autosubtasks overrides the
params.php
but what if i override step 2, which isaction_creation/event.php
? then in that override, we say, if this plugin then process and go to MY params file, otherwise leave it as it is.... this will then be picked up by autosubtasks and overridden.Originally posted by @aljawaid in #12 (reply in thread)
The text was updated successfully, but these errors were encountered: