# |
Sep 12th 2009, 18:19 |
unclezoot |
i know you can call js and css from the plugin helper |
# |
Sep 12th 2009, 18:19 |
unclezoot |
that's a good question |
# |
Sep 12th 2009, 18:15 |
dogmatic69 |
is it posible to call a element from a helper? |
# |
Sep 12th 2009, 17:51 |
unclezoot |
vs class Advantage extends AppModel { |
# |
Sep 12th 2009, 17:50 |
unclezoot |
you cant spell var $name = 'Avantage'; |
# |
Sep 12th 2009, 17:50 |
unclezoot |
hehe |
# |
Sep 12th 2009, 17:46 |
dogmatic69 |
i think that might only work in the controller |
# |
Sep 12th 2009, 17:45 |
dogmatic69 |
change var $useTable = 'users'; to var $uses = array( 'User' ); |
# |
Sep 12th 2009, 17:39 |
Hedz |
thun_ and how do you use the model? |
# |
Sep 12th 2009, 17:38 |
thun_ |
line #9 already fixed and still same error |
# |
Sep 12th 2009, 17:37 |
thun_ |
http://pastebin.com/m2f55c330 |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
pr( $this->Model ); |
# |
Sep 12th 2009, 17:34 |
Hedz |
thun_ bin your model |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
its the rendering and dl that is the problem |
# |
Sep 12th 2009, 17:34 |
thun_ |
can i debug(current database settings) ? what var keeps that in a model |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
cos your sql is about 2 - 5ms |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
yip |
# |
Sep 12th 2009, 17:34 |
unclezoot |
speedwise |
# |
Sep 12th 2009, 17:34 |
dogmatic69 |
unclezoot: caching the modle would not give much |
# |
Sep 12th 2009, 17:34 |
unclezoot |
i suspect static html would be the way forward |
# |
Sep 12th 2009, 17:33 |
dogmatic69 |
lol |
# |
Sep 12th 2009, 17:33 |
unclezoot |
but if i had time, id try both and compare |
# |
Sep 12th 2009, 17:33 |
unclezoot |
my conclusion is the administrators can get stuffed and im not going to bother with any caching because i still have to finish the rest of this app first |
# |
Sep 12th 2009, 17:32 |
BlackIce |
unclezoot: and, what was your conclusion? |
# |
Sep 12th 2009, 17:32 |
thun_ |
I used useDbConfig and useTable but when I run it I get "Database table advantages for model Advantage was not found." the name of the model is Advantage but i called useTable users... how do I start debugging this? |
# |
Sep 12th 2009, 17:32 |
unclezoot |
BlackIce, i was debating which form of cache would be best, either creating a static file in httpdocs, or caching the model in /tmp |
# |
Sep 12th 2009, 17:23 |
renan_saddam |
~bin |
# |
Sep 12th 2009, 17:21 |
BlackIce |
oh model caching, just use cake's cache? |
# |
Sep 12th 2009, 17:21 |
unclezoot |
model caching you mean? |
# |
Sep 12th 2009, 17:20 |
BlackIce |
unclezoot: cache/? |
# |
Sep 12th 2009, 17:19 |
unclezoot |
now im wondering on the best generic httpdocs folder stucture for view caching an autosuggest :) |
# |
Sep 12th 2009, 17:17 |
unclezoot |
basically, there's a helper which calls remysharp's js, which uses async: false so you have to wait for the results to ajaxload before you can enter another letter in the input. this means you have to twiddle your thumbs (on my machine at least) whilst you wait for the server response |
# |
Sep 12th 2009, 17:16 |
unclezoot |
try this, http://github.com/josegonzalez/tagging/tree/master, savant forked the code (to make it php4 compatible), looks at section 2.3.b if you have the inclination |
# |
Sep 12th 2009, 17:15 |
skapism |
really.realise |
# |
Sep 12th 2009, 17:15 |
skapism |
I didn'T really there is a difference between all and first in the ordering naming convention |
# |
Sep 12th 2009, 17:15 |
skapism |
AD7six: ignore me, I was using order by and not order |
# |
Sep 12th 2009, 17:15 |
AD7six |
unclezoot: ic, I don't see where the ajax request goes |
# |
Sep 12th 2009, 17:14 |
AD7six |
skapism: what forced you to do what? |
# |
Sep 12th 2009, 17:13 |
unclezoot |
it's a tagging plugin which can perform an ajax update to suggest tags, atm that feature is a bit slow |
# |
Sep 12th 2009, 17:13 |
skapism |
I see |
# |
Sep 12th 2009, 17:13 |
xkunalx |
hi AD7six |