# |
Oct 3rd 2016, 08:47 |
Neon1024 |
The code you just wrote will work |
# |
Oct 3rd 2016, 08:43 |
flangofas |
you probably need sprintf() |
# |
Oct 3rd 2016, 08:42 |
birdy247 |
If it didnt, it should read, "hello, how are you today" |
# |
Oct 3rd 2016, 08:42 |
birdy247 |
So if $aaron existed, $template would == "hello arron, how are you today" |
# |
Oct 3rd 2016, 08:42 |
birdy247 |
$world = "aaron" |
# |
Oct 3rd 2016, 08:41 |
birdy247 |
i.e. $template = "hello {$world}, how are you today" |
# |
Oct 3rd 2016, 08:41 |
birdy247 |
Is there a simple way in PHP to insert a variable inside a string |
# |
Oct 3rd 2016, 08:39 |
unorthodox |
Morning1271 |
# |
Oct 3rd 2016, 08:33 |
Neon1024 |
Morning247 |
# |
Oct 3rd 2016, 08:33 |
birdy247 |
Morning1024 |
# |
Oct 3rd 2016, 08:29 |
Neon1024 |
You should be able to achieve this, itâ??s not hard. |
# |
Oct 3rd 2016, 08:29 |
Neon1024 |
Not sure what else to say without being mean |
# |
Oct 3rd 2016, 08:27 |
ksandeep_ |
<Neon1024> Please provide more details. What i am doing is in login adding a function which insert log info (like email, IP, time etc) |
# |
Oct 3rd 2016, 08:23 |
Neon1024 |
If it was me ksandeep_ Iâ??d just add a new method to the UsersTable class, and call that from my login method in UsersController::login |
# |
Oct 3rd 2016, 08:21 |
ksandeep_ |
Hi Friends, I want to log user login attempt in logs table. I am using Cake 3.x and it only entering one record for username, what kind of changes i have to do to fix this issue. In query i found that it checking for username exist or not but how to disable this check when entering log |
# |
Oct 3rd 2016, 08:11 |
Neon1024 |
Morning all |
# |
Oct 3rd 2016, 07:28 |
keith |
morning |
# |
Oct 3rd 2016, 07:27 |
birdy247 |
Morning all |
# |
Oct 3rd 2016, 04:51 |
cpierce |
back to the view |
# |
Oct 3rd 2016, 04:51 |
cpierce |
how do you set data back into an AppForm inside `execute` |
# |
Oct 3rd 2016, 01:03 |
aro |
hey - is there a way to validate that at least one of three fields is 'checked'? |
# |
Oct 3rd 2016, 00:51 |
ra7bi |
``` LEFT JOIN `events` `Events` ON `Events`.`id` = (`Participants`.`event_id`) WHERE ( `Events`.`start_date` > 'Ù£â?/Ù¡Ù â?/٢٠١٦ ١٢:٤٤ ص' AND `Participants`.`id` = 1 ) ٫٫٫ Look at the Date and Time , it's in Arabic |
# |
Oct 3rd 2016, 00:50 |
ra7bi |
how i can get it in English |
# |
Oct 3rd 2016, 00:49 |
ra7bi |
The output of Time::now(), is written in ARABIC |
# |
Oct 3rd 2016, 00:49 |
ra7bi |
i have a problem with DateTime |
# |
Oct 3rd 2016, 00:49 |
ra7bi |
hi |
# |
Oct 2nd 2016, 23:11 |
moose517 |
yer darn straight :P |
# |
Oct 2nd 2016, 22:45 |
shealyw2 |
lazy |
# |
Oct 2nd 2016, 21:24 |
moose517 |
the only thing i've done today is hang some VFR flight maps up on my wall as decoration, and drink beer |
# |
Oct 2nd 2016, 21:24 |
moose517 |
LMAO |
# |
Oct 2nd 2016, 21:23 |
moose517 |
my goodness i'm sooo bored. but nothing at all sounds entertaining at all XD |
# |
Oct 2nd 2016, 20:13 |
moose517 |
*brrrrup* |
# |
Oct 2nd 2016, 17:32 |
hmic |
welcome! |
# |
Oct 2nd 2016, 17:07 |
michaelze |
hmic: Seems to work pretty well! Thanks again for the hint! |
# |
Oct 2nd 2016, 16:55 |
michaelze |
hmic: I'll give it a shot, thank you very much :) |
# |
Oct 2nd 2016, 16:55 |
hmic |
hope it helps. |
# |
Oct 2nd 2016, 16:54 |
hmic |
it's *meant* for things like that ;-) |
# |
Oct 2nd 2016, 16:54 |
hmic |
so your beforeFind event can easily decide on which query to do what |
# |
Oct 2nd 2016, 16:54 |
michaelze |
hmic: That's actually a very good idea... didn't think about using the $options array for that purpose... |
# |
Oct 2nd 2016, 16:53 |
hmic |
you can access this $options array from the query all the time... |
# |
Oct 2nd 2016, 16:53 |
hmic |
just do: $this->Table->find('all', ['optOut' => true]); |