# |
Oct 3rd 2016, 08:53 |
Neon1024 |
No idea |
# |
Oct 3rd 2016, 08:53 |
birdy247 |
Neon1024 is there any advantage over the compared to sprintf |
# |
Oct 3rd 2016, 08:53 |
Neon1024 |
Although youâ??ll probably want to pass the request to the table method |
# |
Oct 3rd 2016, 08:53 |
Neon1024 |
I donâ??t think adding $this->Users->addLog() to your login() method is hard |
# |
Oct 3rd 2016, 08:52 |
Neon1024 |
Iâ??m not going to write your code for you |
# |
Oct 3rd 2016, 08:52 |
Neon1024 |
What? In IRC? |
# |
Oct 3rd 2016, 08:52 |
freenode |
i am not sure what wrong i am doing here? |
# |
Oct 3rd 2016, 08:51 |
ksandeep_ |
<Neon1024> can you please share the link where i can paste my code |
# |
Oct 3rd 2016, 08:50 |
unorthodox |
:) |
# |
Oct 3rd 2016, 08:49 |
Neon1024 |
unorthodox, Do you mean â??it $will throwâ? ? ;) |
# |
Oct 3rd 2016, 08:49 |
Neon1024 |
But yeah, unorthodox is right |
# |
Oct 3rd 2016, 08:49 |
Neon1024 |
and look in the â??Stingâ?? section under single and double quotes |
# |
Oct 3rd 2016, 08:48 |
Neon1024 |
http://www.phptherightway.com/pages/The-Basics.html |
# |
Oct 3rd 2016, 08:48 |
unorthodox |
Yeah but it will throw an undefined variable if not found though |
# |
Oct 3rd 2016, 08:47 |
Neon1024 |
$and = â??This $will notâ??; |
# |
Oct 3rd 2016, 08:47 |
Neon1024 |
$so = â??This $will workâ?; |
# |
Oct 3rd 2016, 08:47 |
Neon1024 |
Any variable inside double quotes can be output |
# |
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 |