# |
Jun 11th 2018, 09:55 |
saeideng |
i'm not sure you able to see it |
# |
Jun 11th 2018, 09:54 |
saeideng |
for view `$this->paginator->current('Contents')` |
# |
Jun 11th 2018, 09:53 |
neon1024 |
Using the query works, just DebugKit being a bit misleading |
# |
Jun 11th 2018, 09:53 |
neon1024 |
Controller |
# |
Jun 11th 2018, 09:51 |
saeideng |
do you need it in view or controller .? |
# |
Jun 11th 2018, 09:49 |
saeideng |
`getQuery('page')` |
# |
Jun 11th 2018, 09:48 |
neon1024 |
:thinking_face: |
# |
Jun 11th 2018, 09:48 |
neon1024 |
So DebugKit shows the `paging` param in the Request tab, but if you dump the Request instance, it’s not there |
# |
Jun 11th 2018, 09:46 |
neon1024 |
Strangely, just `var_dump($this->getRequest()->getParam('paging'));` also returns `false` |
# |
Jun 11th 2018, 09:46 |
mukesh |
Yes |
# |
Jun 11th 2018, 09:45 |
neon1024 |
Not sure what I’m doing wrong, but this is returning false on page 2, `var_dump($this->getRequest()->getParam('paging.Contents.page'));` |
# |
Jun 11th 2018, 09:44 |
edoreld |
I read the documentation but I can't make heads or tails of it |
# |
Jun 11th 2018, 09:43 |
edoreld |
But it says 'undefined variable entity'. I am not sure what I am supposed to put there. |
# |
Jun 11th 2018, 09:43 |
edoreld |
echo $this->Form->create($entity, ['type' => 'file']); |
# |
Jun 11th 2018, 09:42 |
edoreld |
Er, rather this one |
# |
Jun 11th 2018, 09:42 |
edoreld |
echo $this->Form->create($teams, ['type' => 'file']); |
# |
Jun 11th 2018, 09:42 |
edoreld |
I create a file_upload template in which I added this line as per the Proffer configuration guide |
# |
Jun 11th 2018, 09:42 |
edoreld |
Hi there. I've installed the Proffer plugin to do file uploads. I have added all the defaults from the guide but I have found an issue. |
# |
Jun 11th 2018, 09:38 |
tim |
Set it to Asia/Kolkata and try that. I'm assuming you're located in India. |
# |
Jun 11th 2018, 09:37 |
mukesh |
I have made changes in core.php date_default_timezone_set('UTC'); |
# |
Jun 11th 2018, 09:36 |
dereuromark |
As I mentioned in the ticket this usually states "the fact that the fixture couldnt be loaded and no such table could be created" - so the error message should be first of all made more clear here IMO. |
# |
Jun 11th 2018, 09:31 |
neon1024 |
devolt, Would you mind detailing your scenario on the issue please? https://github.com/cakephp/cakephp/issues/10953 |
# |
Jun 11th 2018, 09:30 |
devolt |
Hi, I have an error called "cannot describe x. it has 0 columns". Just moved cakephp files from one folder to another. Changed nothing in database. Raw acces via PHP is possible. Any ideas? Any help would be appreciated. |
# |
Jun 11th 2018, 09:30 |
tim |
The date that is saved in the database is UTC, I'm assuming you need a different one that adds 5 hours based on your location. Which means you need to change it in core.php |
# |
Jun 11th 2018, 09:30 |
loginews |
@neon1024 thanks a lot. I had designed my tables well before coming to cakephp. So I have to work without conventions. |
# |
Jun 11th 2018, 09:28 |
mukesh |
@tim |
# |
Jun 11th 2018, 09:28 |
neon1024 |
@loginews Yes, if you want to use something different to the convention you can configure the options used in the association. Do remember that if you do that, it will effect every query using that association. |
# |
Jun 11th 2018, 09:28 |
mukesh |
I have set default time zone is UTC in core.php |
# |
Jun 11th 2018, 09:27 |
tim |
@mukesh If the time has to be 5 hours extra, then I'm guessing you don't need UTC but a different timezone |
# |
Jun 11th 2018, 09:27 |
loginews |
ok I guess I will have to define my own association using an array |
# |
Jun 11th 2018, 09:27 |
neon1024 |
@loginews The type of association will usually define the type of join required |
# |
Jun 11th 2018, 09:26 |
neon1024 |
@loginews There is an association class which uses convention or configuration to know the foreign keys to use in the join. |
# |
Jun 11th 2018, 09:26 |
mukesh |
I have set date_default_timezone_set('UTC'); |
# |
Jun 11th 2018, 09:26 |
tim |
Timezone |
# |
Jun 11th 2018, 09:26 |
mukesh |
crdt time change at less 5:30 minutes( 11 Jun,2018 09:17 as response but it should be 11 Jun,2018 14:17) |
# |
Jun 11th 2018, 09:24 |
mukesh |
Any one know When i call rest API in Cakephp project it time change |
# |
Jun 11th 2018, 09:23 |
loginews |
when cakephp sees $this->belongsTo('Authors') how does it work out how the two tables are to be linked? |
# |
Jun 11th 2018, 09:18 |
saeideng |
so ask again :+1: |
# |
Jun 11th 2018, 09:18 |
saeideng |
it is good to ask and answer yourself |
# |
Jun 11th 2018, 09:17 |
saeideng |
:v: |
# |
Jun 11th 2018, 09:17 |
neon1024 |
:grimacing: |