# |
Feb 9th 2018, 10:00 |
loginews |
great. thanks. I will try that. But can I sort of execute that afterr the user enters the name and the date, since this is how I build up FILENUM... ? |
# |
Feb 9th 2018, 09:58 |
k4t |
try: $this->Form->input('FILENUM',array( 'label' => 'Pt No.', 'value' => $yourValue)); |
# |
Feb 9th 2018, 09:57 |
loginews |
How do I populate FILENUM with a value I calculate ? |
# |
Feb 9th 2018, 09:56 |
loginews |
File uploaded https://cakesf.slack.com/files/U435V89H8/F9616BDSM/-.txt / https://slack-files.com/T053DPNCM-F9616BDSM-b460a77c5d |
# |
Feb 9th 2018, 09:56 |
loginews |
quick question: before I edit a field in edit.ctp I tried to populate it with some value, but I must be getting it wrong. Here is what I did: |
# |
Feb 9th 2018, 09:45 |
adithya |
Thank you @saeideng! :slightly_smiling_face: |
# |
Feb 9th 2018, 09:43 |
saeideng |
cake uses chronos |
# |
Feb 9th 2018, 09:42 |
saeideng |
https://book.cakephp.org/3.0/en/chronos.html |
# |
Feb 9th 2018, 09:38 |
adithya |
is there a date diff method in cakephp? |
# |
Feb 9th 2018, 09:37 |
adithya |
Before asking my question, thanks to all the people who are taking the time to reply to our queries! |
# |
Feb 9th 2018, 08:59 |
h.mavisakalian |
this one is on cakephp2 |
# |
Feb 9th 2018, 08:58 |
h.mavisakalian |
after another login it it won’t work. |
# |
Feb 9th 2018, 08:58 |
h.mavisakalian |
It works once when I clear the cache, and thats it. |
# |
Feb 9th 2018, 08:57 |
h.mavisakalian |
Also an odd thing. |
# |
Feb 9th 2018, 08:48 |
h.mavisakalian |
the second time the logout doesn’t work |
# |
Feb 9th 2018, 08:47 |
h.mavisakalian |
I meant after another sign in |
# |
Feb 9th 2018, 08:47 |
h.mavisakalian |
:) |
# |
Feb 9th 2018, 08:34 |
admad |
why would a logout function work again after you have been already logged out the first time? :slightly_smiling_face: |
# |
Feb 9th 2018, 08:26 |
h.mavisakalian |
Does anyone have an idea on what might have caused this? |
# |
Feb 9th 2018, 08:26 |
h.mavisakalian |
.htaccess is correct, the logout redirect also. |
# |
Feb 9th 2018, 08:25 |
h.mavisakalian |
It works the local server, the problem is on the live server. |
# |
Feb 9th 2018, 08:24 |
h.mavisakalian |
The second time I try to log out it just redirects to the index page and thats it. |
# |
Feb 9th 2018, 08:24 |
h.mavisakalian |
My logout function started not working after using it one time. |
# |
Feb 9th 2018, 08:23 |
h.mavisakalian |
I have an odd problem with one of my projects. May be someone can help |
# |
Feb 9th 2018, 08:23 |
h.mavisakalian |
Hi guys |
# |
Feb 9th 2018, 06:50 |
jameg83 |
Thanks. |
# |
Feb 9th 2018, 06:48 |
admad |
you sure can, maybe someone else can help if i am not around :slightly_smiling_face: |
# |
Feb 9th 2018, 06:48 |
jameg83 |
Admad, I haven’t got access at the minute. Can I post the full error message in a few hours? |
# |
Feb 9th 2018, 06:48 |
jkarlmen |
I'll take you advice @admad |
# |
Feb 9th 2018, 06:48 |
jkarlmen |
But I have learned something valuable so I do appreciate that |
# |
Feb 9th 2018, 06:47 |
jkarlmen |
I have about 3 weeks to build a relatively complex application |
# |
Feb 9th 2018, 06:46 |
jkarlmen |
I read up on general OOP but had to get started due to a time crunch ... I'll have to review that |
# |
Feb 9th 2018, 06:46 |
admad |
read up on PHP OOP basics to avoid such gotchas in future |
# |
Feb 9th 2018, 06:46 |
jkarlmen |
Thank you @ricksaccous... you have saved me from madness |
# |
Feb 9th 2018, 06:45 |
jkarlmen |
I am super new to MVC ... I'm suprised I got this far into this application before that bit of inheritance bit me |
# |
Feb 9th 2018, 06:45 |
admad |
@jameg83 can you show the full exact error message |
# |
Feb 9th 2018, 06:45 |
jameg83 |
It works fine from the command line admad. But not when executed via php. Any ideas? |
# |
Feb 9th 2018, 06:45 |
jkarlmen |
and it was one line of code |
# |
Feb 9th 2018, 06:45 |
jkarlmen |
wow ... 3 days I fought with this |
# |
Feb 9th 2018, 06:44 |
ricksaccous |
but you get the picture |
# |
Feb 9th 2018, 06:44 |
admad |
having to call parent::foo() is PHP 101. |