# |
Apr 27th 2017, 09:56 |
clementcrownrise |
can anyone please help me on this issue? |
# |
Apr 27th 2017, 09:44 |
clementcrownrise |
I dont now why this page doesnt load, http://www.wacscoac.org/edms/users/login but it works perfecly on my localhost, but it deoesnt load after uploading |
# |
Apr 27th 2017, 09:43 |
clementcrownrise |
Hi |
# |
Apr 27th 2017, 09:15 |
julez |
'mime' => ['rule' => ['mimeType', ['application/pdf', 'application/octet-stream', 'application/x-unknown']]] |
# |
Apr 27th 2017, 09:14 |
julez |
the validation rule i use is exact the same as in another part of my application |
# |
Apr 27th 2017, 09:14 |
julez |
anyone can help me with this error when validating a file upload? "Can not determine the mimetype." |
# |
Apr 27th 2017, 08:38 |
kaliel |
thx @admad |
# |
Apr 27th 2017, 08:33 |
admad |
It is |
# |
Apr 27th 2017, 08:09 |
kaliel |
Hey guys, i have to send a letter to all my members (7000) with a unique string required for online registration, is Text::uuid() appropriate for this ? |
# |
Apr 27th 2017, 04:54 |
metoyoko |
im sorry. I will never do that again |
# |
Apr 27th 2017, 04:29 |
rchavik |
~tell metoyoko about ruleone |
# |
Apr 27th 2017, 04:29 |
rchavik |
also |
# |
Apr 27th 2017, 04:29 |
rchavik |
gist some code |
# |
Apr 27th 2017, 04:28 |
rchavik |
then what the docs say should work |
# |
Apr 27th 2017, 04:27 |
metoyoko |
@rchavik settable already was already right and configured properly like this $this->setTable('myTableNameInDB') |
# |
Apr 27th 2017, 04:24 |
metoyoko |
@rchavik thanks I will try |
# |
Apr 27th 2017, 04:10 |
rchavik |
metoyoko, you should configure the physical table names using setTable() |
# |
Apr 27th 2017, 03:01 |
metoyoko |
yes, but my tables in db are not possible to rename for cake naming convention standard. so I just use aliases by declaring className in model. but when I try to insert the good and cleaned data to primary table and secondary table its just inserted to primary not secondary without error. It's been 3 days but until now I can't solve. |
# |
Apr 27th 2017, 02:54 |
rchavik |
have you seen https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-associations ? |
# |
Apr 27th 2017, 02:51 |
metoyoko |
May I know the working sample for CakePhp 3 that save in multiple tables like: personsTable personDetailsTable, when I add new in personsTable it will also add to personDetailsTable with association. Thanks. |
# |
Apr 27th 2017, 02:49 |
metoyoko |
Good Day! |
# |
Apr 27th 2017, 01:22 |
joshuaso91 |
Nevermind guys, I've figured it out :-) ~ $loggedInUsername = ' '; if($this->request->session()->read('Auth.User')) { $loggedInUsername = $this->Auth->user('user_name'); $this->set('users_username', $loggedInUsername); } ~ |
# |
Apr 27th 2017, 01:11 |
joshuaso91 |
anyone can help me pls? :-) |
# |
Apr 27th 2017, 01:11 |
joshuaso91 |
so basically when i sign in a user i want to show the username as he is logged into the system |
# |
Apr 27th 2017, 00:59 |
rrueco |
I think the problem is applying another validation in the controller. I'l try to apply all my validation in Model, and in separate Form validation (if modelless) |
# |
Apr 27th 2017, 00:55 |
joshuaso91 |
Hey guys this is the CakePHP 2.x way of getting values from the database for example, li>Welcome, <?php echo $user_username; ?></li. How do I write in CakePHP3.x way?? |
# |
Apr 27th 2017, 00:51 |
rrueco |
I have a form with modelless field (with separate validation). When modelless field contains invalid input, all form fields goes empty. How can I retain form field values when validation fails? |
# |
Apr 27th 2017, 00:41 |
tippexs91 |
this is not working, currently |
# |
Apr 27th 2017, 00:40 |
tippexs91 |
try { $PIC->savePic($hash, $pin, $album_id, $extension, $filesize, $memberid); } catch (Exception $exception) { echo 'error while saving data to database'; }; |
# |
Apr 27th 2017, 00:40 |
tippexs91 |
how can i catch a Exception ... |
# |
Apr 27th 2017, 00:40 |
tippexs91 |
Hey folks |
# |
Apr 26th 2017, 21:27 |
btx |
does anyone know of any Filters for `FriendsOfCake/Search` that do .. progressive, weighted searches? For example someone searching for `msk resource cd` will get no results, but `msk resource` would return results (ie adding `cd` makes it too specific). So if it searched for `msk or (msk AND resource) or (msk AND resource AND cd)` and then sorted them by number of keywords matched |
# |
Apr 26th 2017, 17:08 |
spriz |
@doug__ that would be impossible to know without knowing the context of ->paginator |
# |
Apr 26th 2017, 16:38 |
chris-andre |
A gist of my action: https://gist.github.com/chris-andre/2104948e2dfef7b66c45d65b8f854828, It is straight forward. |
# |
Apr 26th 2017, 16:36 |
chris-andre |
I'm getting data from my table (charset: UTF-8), and are using CsvView to download csv-file (UTF-8 as well). When I open the csv-file in excel, characters like `Æ, Ø, Å` is converted to some "strange" characters. If I enable bom, they show as expected. If I create a data-array with utf8_decode('ÆØÅ'), it shows as I want in the CSV-file. Any ideas? |
# |
Apr 26th 2017, 16:19 |
doug__ |
maybe you are on drugs yourself and are projecting? |
# |
Apr 26th 2017, 16:19 |
slackebot1 |
Action: bravo-kernel respecting the ops wishes |
# |
Apr 26th 2017, 16:18 |
doug__ |
not cool |
# |
Apr 26th 2017, 16:18 |
doug__ |
but glad to see you are jumping to accusing me of being on drugs |
# |
Apr 26th 2017, 16:18 |
slackebot1 |
Action: bravo-kernel respecting the ops wishes |
# |
Apr 26th 2017, 16:17 |
doug__ |
I asked where I could find docs on the options for ->paginator. You could not do so, and are getting frustrated that I did not find logic in your answer. |