# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
Ah |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
If I use an actual entity is does render |
# |
Jan 3rd 2020, 17:26 |
dereuromark |
$user - the entity |
# |
Jan 3rd 2020, 17:25 |
daniel.upshaw |
I wonder if this is from a change in Cake4 |
# |
Jan 3rd 2020, 17:25 |
daniel.upshaw |
```<?= $this->Form->create('User') ?>``` |
# |
Jan 3rd 2020, 17:25 |
slackebot |
<daniel.upshaw> |
# |
Jan 3rd 2020, 15:02 |
rudy1976s |
is there a way to close the connection once result has been retrieved? |
# |
Jan 3rd 2020, 15:02 |
slackebot |
<rudy1976s> |
# |
Jan 3rd 2020, 15:01 |
rudy1976s |
I am currently connecting to SQLserver using a tablke connection like the following |
# |
Jan 3rd 2020, 15:01 |
rudy1976s |
Good 2020 to all!!! |
# |
Jan 3rd 2020, 12:51 |
javier.villanueva |
In your CustomerTable you should have a hasMany relation with Inboxes |
# |
Jan 3rd 2020, 12:50 |
javier.villanueva |
$this->Customers->Inboxes->find('all')->order(['Inboxe.created' => 'DESC') |
# |
Jan 3rd 2020, 12:50 |
javier.villanueva |
I think that is better find inboxes directly, |
# |
Jan 3rd 2020, 12:48 |
javier.villanueva |
do you want 50 customers or 50 inboxes? |
# |
Jan 3rd 2020, 08:15 |
rk.thedigifrog |
@jotpe inner join required |
# |
Jan 3rd 2020, 08:05 |
rk.thedigifrog |
yes |
# |
Jan 3rd 2020, 07:56 |
jotpe |
Not sure @rk.thedigifrog but do you need the innerJoinWith? Why don't you stick to conventions and associate CustomersTable with the InboxTable (inbox_id in Customers or customer_id in Inboxes)? |
# |
Jan 3rd 2020, 07:50 |
jotpe |
Morning, people! |
# |
Jan 3rd 2020, 06:40 |
rk.thedigifrog |
Please have a look on table structure screenshot : I want to get all customers group by customer_id and latest inbox record created `$this->Customers->find('all',['contain' => ['Inboxes']])->innerJoinWith('Inboxes')->order(['Inboxes.created'=> 'DESC' ])->group('Customers.id')->limit(50)->toArray();` |
# |
Jan 3rd 2020, 06:22 |
rk.thedigifrog |
Want to get record group by foreign key and created DESC |
# |
Jan 2nd 2020, 19:55 |
ricksaccous |
it depends how much time you are willing to put in so just research it though |
# |
Jan 2nd 2020, 19:51 |
luizcmarin |
"it's worth it to venture out of your comfort zone a bit and learn how to create an e-commerce store with just cake" :+1: |
# |
Jan 2nd 2020, 19:50 |
ricksaccous |
shopify |
# |
Jan 2nd 2020, 19:49 |
ricksaccous |
there are some other ones |
# |
Jan 2nd 2020, 19:49 |
ricksaccous |
what is that other one that's popular |
# |
Jan 2nd 2020, 19:49 |
ricksaccous |
@luizcmarin in my opinion it's worth it to venture out of your comfort zone a bit and learn how to create an e-commerce store with just cake but there are solutions built around ecommerce (Magento, Drupal Commerce, some WP solution) out there. Either way it's going to be a lot of reading to customize anything. I don't have experience with squarespace but that's more of a package deal where the work is done for you I think. |
# |
Jan 2nd 2020, 19:46 |
niel45 |
@luizcmarin seriously consider using something like SquareSpace if you just need something simple. |
# |
Jan 2nd 2020, 19:45 |
luizcmarin |
if there's nothing in cake, look for something else ... joomla, for example. I don't know ... I never had to do that. My 'world' was desktop (clipper, delphi, clarion, ... cobol!) |
# |
Jan 2nd 2020, 19:43 |
ricksaccous |
there's just more to it than you might initially think |
# |
Jan 2nd 2020, 19:43 |
ricksaccous |
i don't think it's that hard |
# |
Jan 2nd 2020, 19:43 |
ricksaccous |
not trying to scare you at all |
# |
Jan 2nd 2020, 19:43 |
luizcmarin |
Don't scare me ... a friend wants to make prints and put on the internet. Simple thing, you may not even use paypal and others. Maybe you only work with bank transfer and send the voucher by email. But I look for the methodology (or skeleton) to get started. |
# |
Jan 2nd 2020, 19:40 |
ricksaccous |
as far as a whole project i doubt you'll find one out there |
# |
Jan 2nd 2020, 19:39 |
ricksaccous |
there are plugins to aid you |
# |
Jan 2nd 2020, 19:39 |
ricksaccous |
there's a lot to keep in mind when creating e-commerce in Cake though |
# |
Jan 2nd 2020, 19:39 |
ricksaccous |
if it's available as an e-commerce option in Brazil I'd suggest that, it's just an API |
# |
Jan 2nd 2020, 19:39 |
ricksaccous |
generally stripe is not that hard to use |
# |
Jan 2nd 2020, 19:38 |
ricksaccous |
you'll have to research what payment methods you have that are available in your country |
# |
Jan 2nd 2020, 19:36 |
luizcmarin |
Does anyone know an example of e-commerce made with cakephp in github (open source)? |
# |
Jan 2nd 2020, 18:56 |
brian.french |
it's catching about 95% of my annotations. the 5% are in my templates mainly, which just means I need to update the typehints in my controllers. thats awesome! |
# |
Jan 2nd 2020, 18:52 |
brian.french |
lol |