# |
Jan 29th 2014, 20:57 |
optimator |
sweet. thanks |
# |
Jan 29th 2014, 20:57 |
ten1 |
then include it in your helper with App::uses() |
# |
Jan 29th 2014, 20:56 |
ten1 |
optimator: put it in app/Lib |
# |
Jan 29th 2014, 20:56 |
optimator |
todds: so where would I put the qr include directory if I'm using a view helper? |
# |
Jan 29th 2014, 20:55 |
gellin |
Is anyone here that will help me with a, and/or condition statement |
# |
Jan 29th 2014, 20:54 |
todds |
ten1: derp -- sorry, I thought you meant use the shell to trigger the curl call rather than requestAction(). |
# |
Jan 29th 2014, 20:53 |
ten1 |
todds: requestAction() wouldn't hit the web stack |
# |
Jan 29th 2014, 20:53 |
todds |
cool, it'll probably end up inside a view helper or element then. |
# |
Jan 29th 2014, 20:51 |
optimator |
it renders a qr code as a png |
# |
Jan 29th 2014, 20:51 |
todds |
depends on what the file does. what does it do? |
# |
Jan 29th 2014, 20:50 |
optimator |
the file isn't a cake MVC |
# |
Jan 29th 2014, 20:50 |
optimator |
hey - I'm new to cake, I have a php file I want to include. Where/how do i do that in the view? |
# |
Jan 29th 2014, 20:48 |
todds |
lol, the shell is just more unecessary overhead if he is gonna go through the web stack anyway. I mean the situation is jacked, but i think it's probably the best approachâ?¦if a re-write is out of the question, that is. |
# |
Jan 29th 2014, 20:48 |
nif |
why always the assumption that coders are guys? 'night all. |
# |
Jan 29th 2014, 20:47 |
ten1 |
ACTION shrugs |
# |
Jan 29th 2014, 20:47 |
ten1 |
but if he has the shell... |
# |
Jan 29th 2014, 20:47 |
todds |
freakin ten1â?¦. :-P |
# |
Jan 29th 2014, 20:47 |
ten1 |
...or that :/ |
# |
Jan 29th 2014, 20:46 |
todds |
instead of calling cake from cron you'll just do a curl call to your web app |
# |
Jan 29th 2014, 20:46 |
nif |
i will. thanks! and thanks for all the advice. |
# |
Jan 29th 2014, 20:46 |
todds |
lol |
# |
Jan 29th 2014, 20:46 |
ten1 |
requestAction() being made from pure clarified Satan and not to be used except by the brave, bold, needful, and exceptionally stupid |
# |
Jan 29th 2014, 20:46 |
todds |
nif: just do the curl call. |
# |
Jan 29th 2014, 20:45 |
ten1 |
requestAction() should be possible, in anything that extends Object |
# |
Jan 29th 2014, 20:45 |
nif |
except the curl option? |
# |
Jan 29th 2014, 20:45 |
feens |
...it's either a) fix the problem, or b) figure out how to solve the maze you've constructed |
# |
Jan 29th 2014, 20:44 |
feens |
ya, but you're looking for an answer that doesn't really exist |
# |
Jan 29th 2014, 20:44 |
ten1 |
see previous comment |
# |
Jan 29th 2014, 20:44 |
nif |
ok. i get that. can we move on from it? awareness of it has been there for a while, but like i said, low budget, no time and learning a new framework all contributed to this. everyone has to start somewhere, otherwise they may never reach those higher places where they get to tell other people how they screwed up. but i have a deadline and i have to get this working. next time i will do better |
# |
Jan 29th 2014, 20:43 |
ten1 |
it would be compounding error with worse error |
# |
Jan 29th 2014, 20:43 |
feens |
ya...you basically asking a question that can't really be answered..."how do I make my poorly written code do this?"...and expecting a simple answer in return |
# |
Jan 29th 2014, 20:43 |
ten1 |
you could try a requestAction, and may whatever powers govern code have mercy on you |
# |
Jan 29th 2014, 20:43 |
todds |
ten1 the glass is half FULL! |
# |
Jan 29th 2014, 20:42 |
ten1 |
I wish there was some answer that would make things okay here, but you have screwed up very badly |
# |
Jan 29th 2014, 20:42 |
nif |
i know. like i said, this isn't built well. but i don't have the option of rewriting it and so i am desperately trying to find a way to do this |
# |
Jan 29th 2014, 20:42 |
todds |
nif: yeah, what you're describing sounds like a mess. In you're case, I'd recommend a re-write. But if you're not going to do that, then the most direct route (easiest) is to do that curl call instead. |
# |
Jan 29th 2014, 20:42 |
feens |
controllers aren't meant to do work like that...they're just supposed to direct traffic per se |
# |
Jan 29th 2014, 20:41 |
feens |
ya....that's not so good |
# |
Jan 29th 2014, 20:41 |
nif |
it is... but the component uses a different controller to get some work done |
# |
Jan 29th 2014, 20:41 |
feens |
I'm assuming calling a controller via a component opening a whole can of worms |
# |
Jan 29th 2014, 20:41 |
ten1 |
components should indeed not call controllers |