# |
Aug 8th 2008, 17:33 |
kabturek |
i know another one "copy and paste design pattern" seen some lately ;) |
# |
Aug 8th 2008, 17:33 |
NOSLOW |
gwoo: short comments about the point of failure...there's a bunch of setup passes before I get to the failure. |
# |
Aug 8th 2008, 17:33 |
TommyO |
) |
# |
Aug 8th 2008, 17:32 |
kabturek |
oh the poors-man-caching design pattern ? |
# |
Aug 8th 2008, 17:32 |
TommyO |
primeminister_: by Session did you mean store the data in session, and wrap the Model call in an if (!$this->Session->check(...)) { type thing? |
# |
Aug 8th 2008, 17:31 |
primeminister_ |
*knew |
# |
Aug 8th 2008, 17:31 |
primeminister_ |
never knwe |
# |
Aug 8th 2008, 17:31 |
primeminister_ |
gwoo: cool! |
# |
Aug 8th 2008, 17:31 |
gwoo |
nice! |
# |
Aug 8th 2008, 17:30 |
NOSLOW |
kabturek: I certainly feel enlightened! |
# |
Aug 8th 2008, 17:30 |
gwoo |
primeminister: ClassRegistry::init('ModelName'); actually returns the instance |
# |
Aug 8th 2008, 17:30 |
kabturek |
NOSLOW: thats the way one shoul learn tests , by writing one :) now your whole life will change :) |
# |
Aug 8th 2008, 17:30 |
TommyO |
Symbi0nt: the article talks about exactly what you're doing, caching results |
# |
Aug 8th 2008, 17:29 |
primeminister_ |
Symbi0nt: did you get my suggestion about app::import in combination with sessions |
# |
Aug 8th 2008, 17:29 |
Howard`` |
I actually wasn't aware uses was bad, TommyO, i use it more than often |
# |
Aug 8th 2008, 17:29 |
Symbi0nt |
did it changed since then? |
# |
Aug 8th 2008, 17:29 |
Symbi0nt |
TommyO: I remeber requestAction from the 1.1 days |
# |
Aug 8th 2008, 17:29 |
TommyO |
Symbi0nt: did you get my suggestion about the manual chapter on RequestAction? |
# |
Aug 8th 2008, 17:29 |
Symbi0nt |
component, app_controller |
# |
Aug 8th 2008, 17:29 |
Symbi0nt |
I am still open for suggestion where to put that |
# |
Aug 8th 2008, 17:29 |
gwoo |
NOSLOW: what kind of comments? |
# |
Aug 8th 2008, 17:29 |
Symbi0nt |
somewhere |
# |
Aug 8th 2008, 17:28 |
Symbi0nt |
I want to do it once and that should do the trick |
# |
Aug 8th 2008, 17:28 |
primeminister_ |
in version 1,2 RC2 |
# |
Aug 8th 2008, 17:28 |
Symbi0nt |
Howard``: in every controller? no thanks |
# |
Aug 8th 2008, 17:28 |
Howard`` |
<Symbi0nt>: why not just run it in beforeFilter() of your controllers anyway? |
# |
Aug 8th 2008, 17:28 |
Symbi0nt |
App::import('Mappack'); returns false |
# |
Aug 8th 2008, 17:28 |
NOSLOW |
gwoo: should I leave comments in test case when I submit it with a ticket? |
# |
Aug 8th 2008, 17:28 |
primeminister |
TommyO: that was it ;) |
# |
Aug 8th 2008, 17:27 |
TommyO |
$uses is an override and should be avoided whenever possible |
# |
Aug 8th 2008, 17:27 |
Symbi0nt |
$ |
# |
Aug 8th 2008, 17:27 |
Symbi0nt |
I get then NewsCopntroller::%Mappack not found |
# |
Aug 8th 2008, 17:27 |
NOSLOW |
gwoo: It was very tricky to distill it down to just what matters (and learn the test suite at the same time). I was determined to figure it out no matter what. |
# |
Aug 8th 2008, 17:27 |
primeminister |
I heard 'uses' uses more memory? |
# |
Aug 8th 2008, 17:27 |
Symbi0nt |
$uses seems to mess around with the next controller |
# |
Aug 8th 2008, 17:27 |
TommyO |
Symbi0nt: look in the manual about requestAction/cache in an element |
# |
Aug 8th 2008, 17:27 |
TommyO |
$uses that is |
# |
Aug 8th 2008, 17:26 |
Symbi0nt |
because I need infos for the right side of my webpage all the time |
# |
Aug 8th 2008, 17:26 |
primeminister |
Symbi0nt: App:import('Model','Mappack') |
# |
Aug 8th 2008, 17:26 |
TommyO |
not a good idea in AppController |
# |
Aug 8th 2008, 17:26 |
Howard`` |
var $uses = str/array model(s) |