# |
Feb 26th 2018, 12:02 |
pedrorocha |
Ohh ok |
# |
Feb 26th 2018, 12:02 |
hmic |
you publish on packagist: https://packagist.org/ |
# |
Feb 26th 2018, 12:01 |
hmic |
exactyl like that |
# |
Feb 26th 2018, 12:01 |
pedrorocha |
I must publish somewhere or idk |
# |
Feb 26th 2018, 12:01 |
pedrorocha |
But how would others install my sdk via composer? |
# |
Feb 26th 2018, 12:01 |
hmic |
"composer create-project ...." |
# |
Feb 26th 2018, 12:00 |
hmic |
pedrorocha: https://book.cakephp.org/3.0/en/quickstart.html |
# |
Feb 26th 2018, 11:59 |
pedrorocha |
Hello guys, how are you? I need to develop a sdk that can be installed via composer, how do I start? Do you have a step by step on how to create the project or just point me to the right direction |
# |
Feb 26th 2018, 11:41 |
johnwayne |
Thx, elements is what I need |
# |
Feb 26th 2018, 11:39 |
juanito |
or element if you don't need logic |
# |
Feb 26th 2018, 11:38 |
hmic |
an element of course |
# |
Feb 26th 2018, 11:37 |
juanito |
you probably could use view cells ? |
# |
Feb 26th 2018, 11:36 |
johnwayne |
I have to use in 7 different views 7 tabs with same links, and each tab should redirect to different controller. What is the best place to save code for tabs (so that I do not have to copy paste 7 times code for each tab) |
# |
Feb 26th 2018, 11:12 |
turkles |
I am using a through association (like the Students Courses example in the book) but I am struggling to save associated data - anyone have any examples I can go through? |
# |
Feb 26th 2018, 11:07 |
dereuromark |
Never had the time to finish open sourcing my forum solution - thus no real life example in the sandbox here yet. Hopefully one day... |
# |
Feb 26th 2018, 11:06 |
dereuromark |
also makes it possible to validate if needed (using a behavior) |
# |
Feb 26th 2018, 11:06 |
dereuromark |
so it is actually a two way thing: parsing the type and ID out of the input (text) and storing it normalized. then on display it just needs to use the right templating code :slightly_smiling_face: |
# |
Feb 26th 2018, 11:06 |
juanito |
thank you for your answers ;) |
# |
Feb 26th 2018, 11:06 |
juanito |
perfect! |
# |
Feb 26th 2018, 11:05 |
dereuromark |
for me this is running in a cake forum board solution to parse from bbcode or plain urls into player code. |
# |
Feb 26th 2018, 11:04 |
dereuromark |
juanito: I use a helper that uses https://github.com/dereuromark/MediaEmbed wrapper |
# |
Feb 26th 2018, 11:01 |
turkles |
I would use a helper, you may not always need that full code |
# |
Feb 26th 2018, 10:56 |
juanito |
hi community ! i need to create a function that parse a db text field to replace youtube urls by html code (the player). i need to know where to put the logic. does a virtual field in entity make sense ? or an helper better ? |
# |
Feb 26th 2018, 09:31 |
turkles |
Ah, thanks |
# |
Feb 26th 2018, 09:24 |
neon1024 |
`$player = $results->firstMatch(['player_id' => 123]);` |
# |
Feb 26th 2018, 09:19 |
turkles |
Hi :slightly_smiling_face: if I have done a find()->contain('Players') how can I check if a player with id 123 was in the contained results |
# |
Feb 26th 2018, 09:14 |
neon1024 |
Morning all |
# |
Feb 26th 2018, 07:28 |
kitcat711_ |
Bonjour |
# |
Feb 25th 2018, 21:16 |
Sigfried84 |
okk |
# |
Feb 25th 2018, 21:15 |
savant |
dont remember, heading into the shower |
# |
Feb 25th 2018, 21:15 |
Sigfried84 |
in an Authorities Entity? |
# |
Feb 25th 2018, 21:14 |
Sigfried84 |
the example is not a join field...would it be like: $this->Authors->_properties['name'] ? |
# |
Feb 25th 2018, 21:12 |
Sigfried84 |
cool! thnx! bye! |
# |
Feb 25th 2018, 21:11 |
savant |
https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#customize-key-value-output <-- that |
# |
Feb 25th 2018, 21:10 |
Sigfried84 |
bye! |
# |
Feb 25th 2018, 21:10 |
Sigfried84 |
late ^_^! |
# |
Feb 25th 2018, 21:09 |
Sigfried84 |
if you're still here... |
# |
Feb 25th 2018, 21:09 |
Sigfried84 |
just one more thing...how do i concatenate them? |
# |
Feb 25th 2018, 21:08 |
savant |
no problem, night |
# |
Feb 25th 2018, 21:07 |
Sigfried84 |
Ok savant, I'll try to find out how tomorrow! Now I'm heading to bed! Thank you so much! |
# |
Feb 25th 2018, 21:05 |
savant |
good luck :slightly_smiling_face: |