# |
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) |
# |
Dec 6th 2017, 21:54 |
angelxmoreno |
greetings bakers! I found this https://github.com/rochamarcelo/cake-pimple-di how have I survived without it? Are there alternatives? |
# |
Dec 6th 2017, 21:30 |
phantomwatson |
Yep, no error in the latest PHPStorm. Disregard that. |
# |
Dec 6th 2017, 21:20 |
phantomwatson |
I was using PHPStorm 2017.2.4. I'll check with PHPStorm 2017.3 to confirm... |
# |
Dec 6th 2017, 21:19 |
dereuromark |
Someone could do that PR for 3.6 |
# |
Dec 6th 2017, 21:19 |
dereuromark |
then method_exists smell can also get removed |
# |
Dec 6th 2017, 21:19 |
dereuromark |
IMO it would be cleaner to use an interface approach here though ;) Controller implements IsAuthorizedInterface etc |
# |
Dec 6th 2017, 21:18 |
dereuromark |
but it also doesnt hurt to have here it seems |
# |
Dec 6th 2017, 21:18 |
dereuromark |
that doc block line isnt really necessary other than auto-generating the method stub + `parent::isAuthorized($user); // TODO: Change the autogenerated stub` etc |
# |
Dec 6th 2017, 21:17 |
dereuromark |
@phantomwatson support |
# |
Dec 6th 2017, 20:59 |
saeideng |
? |
# |
Dec 6th 2017, 20:59 |
saeideng |
has any one worked by http1 2 |
# |
Dec 6th 2017, 20:06 |
slackebot |
default, or even throw a "FooController must not have `isAuthorized()` defined" exception. |
# |
Dec 6th 2017, 20:06 |
phantomwatson |
I've been getting IDE class hierarchy errors for `FooController::isAuthorized()` because is expected to be checked against a `Controller::isAuthorized()` method for compatibility, and there's a `@method bool isAuthorized($user)` doc comment for the `Controller` class, but no actual `isAuthorized()` method. Anyone care to weigh in on whether that's something that should be corrected? `Controller::isAuthorized()` could return false by |
# |
Dec 6th 2017, 19:17 |
inoas |
if you fetch just say the first image - or all of them - it will work, however sorting and filtering will get difficult |