Log message #3149127

# At Username Text
# 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
# Jan 29th 2014, 20:41 feens ...isn't the purpose of a comment to be used in a controller (not called by one)?
# Jan 29th 2014, 20:40 ten1 you can think of the shell as being equivalent to the controller in this case. It's theoretically possible to call controller actions from the shell but not pleasant. Curl is possible, but again: rewrite this
# Jan 29th 2014, 20:39 todds the most direct route would probably be to do as feens suggests and just do a curl callâ?¦though it makes me cringe that you're gonna go through the web stack to execute local code.
# Jan 29th 2014, 20:39 todds nif: the reason you're getting an error is probably because you're not passing a component colleciton from the shell.
# Jan 29th 2014, 20:38 feens nif: well, if you're just trying to call the controller, why not just do like a curl call
# Jan 29th 2014, 20:38 nif ok... i know this hasn't been built in the best way... time and budget constraints and taking up a new framework saw to that. however, i cannot change the way it is built now. i kind of have to make this work and with minimal changes to the app code that exists now. moving stuff to the model could throw the whole thing out. is there no way to make this work as is? and then i promise to build it better next time! :)
# Jan 29th 2014, 20:37 todds )
# Jan 29th 2014, 20:37 ten11 ten11 ? oops