# |
Dec 7th 2017, 09:43 |
skor |
i keep forgetting, how do i write a custom function? i need to do this in the db: ‘JSON_SEARCH(PropertyValues.value, “all”, “’ . $value . ‘“) is not’ => null, |
# |
Dec 7th 2017, 09:42 |
ono-t |
good morning |
# |
Dec 7th 2017, 09:42 |
skor |
hey all! |
# |
Dec 7th 2017, 09:37 |
neon1024 |
Morning everyone |
# |
Dec 7th 2017, 08:17 |
saeideng |
then you can setup 2 config for it on table/behavior |
# |
Dec 7th 2017, 08:17 |
saeideng |
image1 and image 2 |
# |
Dec 7th 2017, 08:16 |
saeideng |
@ra7bi for uploading file use 2 name |
# |
Dec 7th 2017, 06:55 |
jkpatel291289 |
one problem here is password not being hashed. |
# |
Dec 7th 2017, 06:54 |
jkpatel291289 |
this code is working is this right way? |
# |
Dec 7th 2017, 06:54 |
slackebot |
$table->insert($data)->save(); $data = [ [ 'user_name'=>'jay', 'email'=>'jay@vct.com', 'password'=>'jay', 'company_id'=>1, ], ]; $table = $this->table('users'); $table->insert($data)->save(); |
# |
Dec 7th 2017, 06:54 |
slackebot |
'current_financial_year' => '2016-2017', 'organization_start_date' => '2017-12-06', 'currency_name' => 'Rs', 'currency_symbol' => 'rs', 'currency_subname' => 'rs', 'symbol_of_partition' => ',', 'symbol_to_print' => 'rs', 'multi_currency_management' => '0', ], ]; $table = $this->table('companies'); |
# |
Dec 7th 2017, 06:54 |
jkpatel291289 |
$data = [ [ 'id' => '1', 'name' => 'V C transport', 'print_name' => 'VC transport', 'address_line1' => '12, umargaun gidc', 'address_line2' => '3rd phase', 'city' => 'umaergaon', 'state' => 'gujarat', 'country' => 'india', 'pincode' => '396195', |
# |
Dec 7th 2017, 06:53 |
admad |
yes |
# |
Dec 7th 2017, 06:52 |
jkpatel291289 |
ok. so i have to create them one by one manually? |
# |
Dec 7th 2017, 06:50 |
admad |
phinx seed files don't use cake's orm |
# |
Dec 7th 2017, 06:34 |
jkpatel291289 |
comapany has many user ( association) |
# |
Dec 7th 2017, 06:34 |
jkpatel291289 |
why this is not working? |
# |
Dec 7th 2017, 06:33 |
jkpatel291289 |
In my seed file i want to create comapany with user. |
# |
Dec 7th 2017, 06:33 |
slackebot |
'password'=>'jay' ] ], ]; $table = $this->table('companies'); $table->insert($data)->save(['Contains'=>'Users']); |
# |
Dec 7th 2017, 06:33 |
slackebot |
'current_financial_year' => '2016-2017', 'organization_start_date' => '2017-12-06', 'currency_name' => 'Rs', 'currency_symbol' => 'rs', 'currency_subname' => 'rs', 'symbol_of_partition' => ',', 'symbol_to_print' => 'rs', 'multi_currency_management' => '0', 'users'=>[ 'user_name'=>'jay', 'email'=>'jay@vct.com', |
# |
Dec 7th 2017, 06:33 |
jkpatel291289 |
$data = [ [ 'id' => '1', 'name' => 'V C transport', 'print_name' => 'VC transport', 'address_line1' => '12, umargaun gidc', 'address_line2' => '3rd phase', 'city' => 'umaergaon', 'state' => 'gujarat', 'country' => 'india', 'pincode' => '396195', |
# |
Dec 7th 2017, 06:13 |
ra7bi |
will try thanks for help |
# |
Dec 7th 2017, 06:11 |
admad |
then google "how to install simplexml on <os/distro>" |
# |
Dec 7th 2017, 06:10 |
ra7bi |
i read it and i try to install that package but not able |
# |
Dec 7th 2017, 06:10 |
admad |
if you carefully read the error you can solve it yourself. It tells you exactly what the problem is |
# |
Dec 7th 2017, 06:09 |
admad |
@ra7bi http://www.sabi.co.uk/Notes/linuxHelpAsk.html#anyone |
# |
Dec 7th 2017, 06:09 |
ra7bi |
:sleuth_or_spy: hh if you solved can you please tell me how to solve it |
# |
Dec 7th 2017, 06:08 |
admad |
maybe |
# |
Dec 7th 2017, 06:06 |
ra7bi |
anyone faced this problem `squizlabs/php_codesniffer 3.1.1 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system ` |
# |
Dec 7th 2017, 06:05 |
admad |
@birdy247 the bake issue with custom theme is resolved. Run `composer update cakephp/bake --with-dependencies` |
# |
Dec 7th 2017, 04:56 |
ra7bi |
this is my form ``` echo $this->Form->input('photo[]', ['type' => 'file']); echo $this->Form->input('photo[]', ['type' => 'file']); ``` |
# |
Dec 7th 2017, 04:56 |
ra7bi |
it upload only one file |
# |
Dec 7th 2017, 04:56 |
ra7bi |
how to allow http://cakephp-upload.readthedocs.io/en/latest/index.html to upload multiple files ? |
# |
Dec 7th 2017, 04:31 |
voycey |
Is there any way of seeing these? |
# |
Dec 7th 2017, 04:30 |
voycey |
File uploaded https://cakesf.slack.com/files/U1F0J3623/F8C1QHTFZ/pasted_image_at_2017_12_07_03_28_pm.png / https://slack-files.com/T053DPNCM-F8C1QHTFZ-ed3eb76917 - So I have a question, is there any way to determine how to access these variables if there is no documentation? It seems that I cant access this one by ```$pa-andgt;data``` but instead it has some magic method that means ```$pa['platformApplicationArn'] ``` is instead populated? |
# |
Dec 7th 2017, 03:45 |
admad |
obi1: cakephp 3 needs to be installed through composer. So follow the steps shown on installation guide |
# |
Dec 7th 2017, 03:19 |
obi1 |
Hi, I am trying to download cakephp from the website. When I click "get cakephp", it just takes me to the installation doc. Any link to download? |
# |
Dec 7th 2017, 01:24 |
HippoCritical |
Hello Everyone! |
# |
Dec 7th 2017, 00:40 |
dereuromark |
PluginName.HelperName as always |
# |
Dec 7th 2017, 00:10 |
meder |
is there a specific way of loading a custom helper (from a vendor/namespace) in a controller? |
# |
Dec 6th 2017, 22:09 |
d-fens |
hi, whats the best way to expand a "add" action to add multiple entities with for a selected date range (where the model has the date as a field) |