# |
Apr 27th 2017, 11:10 |
inoas |
basically when you enter a domain and I have to real link objects I want to redirect to a nice slug "in your language" |
# |
Apr 27th 2017, 11:10 |
inoas |
dereuromark that's the reason I want case sensitivity... probably ascii_ci will work ok but meh |
# |
Apr 27th 2017, 11:09 |
inoas |
forgot the gist |
# |
Apr 27th 2017, 11:09 |
inoas |
https://gist.github.com/inoas/e127826d9c9be368757169bbb370f2e0 |
# |
Apr 27th 2017, 11:07 |
inoas |
lorenzo is there a sane way to convert this sql expression into a query, I have to loop through a list of locales and fill in the AND/OR and the ORDER BY CASE statements |
# |
Apr 27th 2017, 11:04 |
clementcrownrise |
@paul_83uk, and clackebot1, have you helped me to try it? |
# |
Apr 27th 2017, 10:51 |
clementcrownrise |
please let me know if anyone can login with the details above, thanks |
# |
Apr 27th 2017, 10:51 |
clementcrownrise |
ok, please, let me send you a username and password , let me know if you are able to login, username:clementcrownrise@gmail.com , password: password |
# |
Apr 27th 2017, 10:45 |
chris-andre |
No error or notification. The page shows a login form like @paul_83uk mentioned. |
# |
Apr 27th 2017, 10:31 |
clementcrownrise |
@slackebot1 please does the page show any notification or error? |
# |
Apr 27th 2017, 10:29 |
paul_83uk |
shows a login form |
# |
Apr 27th 2017, 10:29 |
paul_83uk |
@clementcrownrise that page loads for me make sure you have cleared your cache in your browser |
# |
Apr 27th 2017, 10:28 |
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 , this is a cakephp 2.x application |
# |
Apr 27th 2017, 10:28 |
paul_83uk |
guessing by the fact theres a ::clear() it is stored. Just wondering the overhead differences I've always assigned to a variable but Cakes own code doesn't seem to bother |
# |
Apr 27th 2017, 10:25 |
paul_83uk |
Hi All, does TableRegistry::get(alias) cache the result? As in if I'm looping through an array should I assign the get to a variable or does cake cache it so I don't need to worry? |
# |
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?? |