# |
May 30th 2016, 08:28 |
JohnWayne |
And what is your suggestion with conversation. I am now using nice()... Idknw is this good solution |
# |
May 30th 2016, 08:28 |
hmic |
you should only (need to) convert the timezone on output or from user input. |
# |
May 30th 2016, 08:27 |
hmic |
this is utc by default, which is a good default. |
# |
May 30th 2016, 08:27 |
hmic |
JohnWayne, nope. not yet at least. it is good practice to work in a single timezone throught the whole app! |
# |
May 30th 2016, 08:26 |
mohand |
public function __construct (){ |
# |
May 30th 2016, 08:26 |
alanderouen |
mohand : haa. I see. Ok. It should work |
# |
May 30th 2016, 08:26 |
mohand |
<?php class DATABASE_CONFIG { public $default = null; |
# |
May 30th 2016, 08:25 |
JohnWayne |
One question regarding date/time from DB. Is there "global" settings to save/update in DB date/time in UTC-0 and only read in UTC+2 |
# |
May 30th 2016, 08:25 |
mohand |
in database.php |
# |
May 30th 2016, 08:25 |
alanderouen |
mohand : i don't find any doc about that. do you mean in model ? |
# |
May 30th 2016, 08:23 |
alanderouen |
mohand : ok. Noted. Didn't know that. |
# |
May 30th 2016, 08:22 |
mohand |
if you are on Cake 2, you can also define a public var $this->default and in __construct() change $this->default dynamically if you are in cli |
# |
May 30th 2016, 08:21 |
alanderouen |
mohand : mmm... ok, let's try this |
# |
May 30th 2016, 08:21 |
mohand |
@alanderouen try to change the default datasource just to bake your fixtures |
# |
May 30th 2016, 08:20 |
mohand |
check in your Session Auth.redirect |
# |
May 30th 2016, 08:20 |
alanderouen |
mohand : doesn't change anything. I think it has something to do with datasource |
# |
May 30th 2016, 08:20 |
Eax |
spriz: Cool, thanks :) I'll try that out |
# |
May 30th 2016, 08:20 |
ionas |
what do I need to do? rebase on 3.next? |
# |
May 30th 2016, 08:20 |
ionas |
eh 3.next |
# |
May 30th 2016, 08:20 |
ionas |
I started off master and then had to retarget to 3.x |
# |
May 30th 2016, 08:20 |
ionas |
meh I screwed up git flow https://github.com/cakephp/cakephp/pull/8903/commits â?¦ |
# |
May 30th 2016, 08:19 |
spriz |
Nope, the redirectUrl is the one you want people to be redirected to |
# |
May 30th 2016, 08:19 |
Eax |
spriz: So if it's no longer the one set in AppController Auth Config, it'll read the "new" one? (Eg where the user left) |
# |
May 30th 2016, 08:18 |
spriz |
@eax it will read whatever is in the componentâ??s config :P |
# |
May 30th 2016, 08:17 |
alanderouen |
mohand trying right now |
# |
May 30th 2016, 08:17 |
alanderouen |
it doesn't find my table which is in another datasource than default |
# |
May 30th 2016, 08:17 |
Eax |
spriz: That'll read the one from AppController though, right? I need the current one :) |
# |
May 30th 2016, 08:17 |
mohand |
did yu try with -p yourpluginName |
# |
May 30th 2016, 08:17 |
spriz |
Eax: $this->Auth->config(â??redirectUrlâ??)? :P |
# |
May 30th 2016, 08:16 |
alanderouen |
tried Console/cake bake ***fixture*** ModelName --plugin PluginName but i get an error |
# |
May 30th 2016, 08:15 |
Eax |
^ In Cake3 :) |
# |
May 30th 2016, 08:15 |
Eax |
Good morning folks! Is it possible to read what the Auth RedirectURL is? |
# |
May 30th 2016, 08:15 |
alanderouen |
tried Console/cake bake Fixture ModelName --plugin PluginName but i get an error |
# |
May 30th 2016, 08:14 |
alanderouen |
mohand : and i'm a noob in unit testing, so please correct me if i'm saying something that doesn't make sense :) |
# |
May 30th 2016, 08:14 |
alanderouen |
mohand : it's cake 2 |
# |
May 30th 2016, 08:13 |
alanderouen |
mohand : fixtures. I'm creating tests. |
# |
May 30th 2016, 08:11 |
mohand |
fixtures or seeds? is it for tests or to have datas in your database |
# |
May 30th 2016, 08:10 |
alanderouen |
hey all, does anyone know how to bake fixture for a plugin ? I don't find it in documentation. :/ |
# |
May 30th 2016, 08:10 |
mohand |
echo â??Hello world!â??; |
# |
May 30th 2016, 08:10 |
mohand |
echo â??sorryâ??; |
# |
May 30th 2016, 08:06 |
JohnWayne |
echo "Hello world!"; |