# |
Aug 9th 2008, 05:19 |
Howard`` |
well I want to be able to hold the associative records for users |
# |
Aug 9th 2008, 05:19 |
AD7six |
for emails - what benefit do you expect putting them in athe db. |
# |
Aug 9th 2008, 05:19 |
Howard`` |
is MySQL a good system to shard with or would you reccomend a different database? |
# |
Aug 9th 2008, 05:18 |
Howard`` |
I'm sort of wondering whether I should store the contents etc in the database or on the filesystem |
# |
Aug 9th 2008, 05:18 |
Howard`` |
Thanks AD7six, I'm building up the idea with cakephp .. it's going to be a heavy e-mail system |
# |
Aug 9th 2008, 05:17 |
AD7six |
Howard``: look up sharding |
# |
Aug 9th 2008, 05:17 |
Howard`` |
say I wanted to store millions of rows, how could I do that efficiently |
# |
Aug 9th 2008, 05:16 |
Howard`` |
I'm not sure how the whole load balancing thing works out |
# |
Aug 9th 2008, 05:16 |
Howard`` |
Does anyone know anything about spanning one database table across several servers? |
# |
Aug 9th 2008, 05:01 |
pgcd_away |
(cake1.2 and SWFU 2.1) |
# |
Aug 9th 2008, 05:01 |
pgcd_away |
quick question: i was under the impression that SWFUpload would "hijack" the file field defined in the form and do its thing, but it looks like it doesn't. Am i supposed to add a button and a div for the files list myself? |
# |
Aug 9th 2008, 04:51 |
darki |
i have three models: "Booking HASONE BookingInvoice" and "BankAccount HASMANY BookingInvoice" - how can i display data from BankAccount in my Booking-View? I tried everything but i come only till BookingInvoice |
# |
Aug 9th 2008, 04:45 |
kalileo |
ah ok, nevermind, bye |
# |
Aug 9th 2008, 04:45 |
kalileo |
ichsan: $this->Xobile->get_current_stock() would be another way, if you create the Xobile Model |
# |
Aug 9th 2008, 04:44 |
ichsan |
bye |
# |
Aug 9th 2008, 04:44 |
ichsan |
bya |
# |
Aug 9th 2008, 04:44 |
ichsan |
kalileo: thanks for your patient answering my question |
# |
Aug 9th 2008, 04:43 |
ichsan |
Ok, I that's fine. So that's how the CakePHP handle the second line. |
# |
Aug 9th 2008, 04:42 |
kalileo |
ichsan: $this->Medicine->get_current_stock('xobile'); |
# |
Aug 9th 2008, 04:42 |
ichsan |
Because, I already working on this instance of medicine, not that one |
# |
Aug 9th 2008, 04:42 |
ichsan |
kalileo: That gives me advantage because I hate to care about id. |
# |
Aug 9th 2008, 04:41 |
ichsan |
So, there is no way to implement the second line of my code snippet above other than using $this->Medicine->get_current_stock(4) ? |
# |
Aug 9th 2008, 04:41 |
kalileo |
ichsan: I just don't see why that would give you any advantage |
# |
Aug 9th 2008, 04:40 |
kalileo |
but that would be bypassing the cake functionality |
# |
Aug 9th 2008, 04:39 |
kalileo |
as you said at the beginning, you can instantaite a class using $xobile = new med... |
# |
Aug 9th 2008, 04:39 |
ichsan |
CakePHP can handle the first line by doing $this->Medicine->find(4) |
# |
Aug 9th 2008, 04:38 |
ichsan |
But how about the second one? |
# |
Aug 9th 2008, 04:38 |
ichsan |
I know CakePHP can do the first line |
# |
Aug 9th 2008, 04:38 |
ichsan |
$xobile->get_current_stock(); |
# |
Aug 9th 2008, 04:38 |
ichsan |
$xobile = Medicine->find_by_id(4); |
# |
Aug 9th 2008, 04:37 |
ichsan |
Is there any specific technique in CakePHP in handling Class method and an instance of a Class method? Like here in basic PHP |
# |
Aug 9th 2008, 04:36 |
ddeerrrick |
I bet this gets asked a lot, but I'm having a bit of a time trying to get cake functioning as my document root on my mediatemple gs server. I've tried to find a solution online but nothing has worked yet. If anyone has some insight it'd be appreciated |
# |
Aug 9th 2008, 04:35 |
kalileo |
ichsan: yeah, lol, I think I still don't know hwat you're after |
# |
Aug 9th 2008, 04:35 |
ichsan |
No no no, you don't get what I mean |
# |
Aug 9th 2008, 04:34 |
ichsan |
that's how CakePHP handles concept of Class |
# |
Aug 9th 2008, 04:34 |
kalileo |
if you wanna write code specific for just one medicine, you could always create a Xobile Model, and have that extend the medicine model |
# |
Aug 9th 2008, 04:33 |
ichsan |
it resembles class of Medicine |
# |
Aug 9th 2008, 04:33 |
ichsan |
kalileo: I know $this->Medicine is actually an instance. But it is in PHP not as programming concept |
# |
Aug 9th 2008, 04:32 |
kalileo |
but not in this case |
# |
Aug 9th 2008, 04:32 |
kalileo |
there are class methods used in cake too, such as App::import |
# |
Aug 9th 2008, 04:31 |
kalileo |
ichsan: it is an instance already, and you access it using $this->Medicine |