# |
Aug 22nd 2019, 09:08 |
neon1024 |
https://php.ug/slackinvite |
# |
Aug 22nd 2019, 09:08 |
neon1024 |
I would ask in the phpug slack |
# |
Aug 22nd 2019, 09:06 |
slackebot2 |
xdebug.remote_port="9009" xdebug.remote_autostart=1 xdebug.remote_log="/Users/sebastiankoller/Sites/logs/xdebug.log" xdebug.idekey="PHPSTORM" xdebug.remote_host="localhost" xdebug.profiler_enable=0 xdebug.collect_assignments=1 xdebug.collect_params=4 xdebug.var_display_max_data=-1 Maybe anyone has an idea? |
# |
Aug 22nd 2019, 09:06 |
koeller |
Good morning, I have a new machine and setup my development envrionment from scratch. Now when I'm running xdebug 2.7.3 through PHPStorm I won't see the content of an entity object at a given breakpoint in variables section anymore. I always have to use the the evaluator to get the actual value of an entity object. Thats a bit annoying. Here is my xdebug config: [xdebug] zend_extension="xdebug.so" xdebug.remote_enable=1 |
# |
Aug 22nd 2019, 08:41 |
neon1024 |
@mehov It’s not a rule, but as @challgren said, this channel is linked to the IRC channel, and that doesn’t support threads, so you’re excluding all the IRC people who might help you |
# |
Aug 22nd 2019, 08:06 |
spriz |
I guess it is pretty much what you want @mehov |
# |
Aug 22nd 2019, 08:06 |
spriz |
I have this code working at least: `'summed_price' => $expenseLineData->func()->sum('ExpenseLines.buying_price * ExpenseLines.quantity'),` |
# |
Aug 22nd 2019, 08:06 |
spriz |
`'avgPrice' => $query->func()->avg('Table.salesTotal / Table.salesQuantity')` rather actually |
# |
Aug 22nd 2019, 08:04 |
spriz |
@mehov did you try `$query->newExpr('Table.salesTotal / Table.salesQuantity'),` ? |
# |
Aug 22nd 2019, 08:01 |
jiri.sejhar |
my english is so bad :slightly_smiling_face: i need read js file ES6 class layout(){ const layout_one = {} const layoutt_wo = {} } can i read this in php file like $js _object=es6parse('../layout.js') foreach ($js_object as $obj){ ..... } |
# |
Aug 22nd 2019, 07:34 |
mehov |
Got it, I will no longer use Replies here if that's the rule |
# |
Aug 22nd 2019, 07:29 |
conehead |
Not a window, but a "window" ;) |
# |
Aug 22nd 2019, 07:08 |
mehov |
This is what it looks like to me. No windows to go to, just another sidebar. Thought it's more clean, organised and convenient, but I guess your experience differs. Okay got it. |
# |
Aug 22nd 2019, 06:58 |
challgren |
I know you’d think it would be like comments on FB |
# |
Aug 22nd 2019, 06:58 |
admad |
i annoying to have to go to another "windows" to see the thread msgs |
# |
Aug 22nd 2019, 06:58 |
challgren |
But nah it messes with the IRC peeps |
# |
Aug 22nd 2019, 06:57 |
challgren |
@admad = anti-thread |
# |
Aug 22nd 2019, 06:57 |
admad |
ah the quantity various per row. plz stop using those stupid threads |
# |
Aug 22nd 2019, 06:56 |
mehov |
@admad Yep, it's not accurate, unfortunately ``` 'salesTotal' => (float) 67.032, 'salesQuantity' => (float) 21, 'avgPrice' => (float) 5.15630769, ``` `avgPrice` is ~5.15, while the value I'm looking for is 3.192 (=67.032/21) |
# |
Aug 22nd 2019, 06:47 |
mehov |
Wow, I missed that one, actually. Still, the more I think about it, I feel like in some cases that may be inaccurate. For example, if in some rows quantity is 4. Those will be counted as one row, but in fact had to be counted as (and the total divided by) 4 |
# |
Aug 22nd 2019, 06:39 |
mehov |
You baked a template, and got a .ctp file. Okay. The part about Javascript file doesn't make any sense though. Please edit; formatting and punctuation may help |
# |
Aug 22nd 2019, 06:37 |
mehov |
This is hard to read, and therefore hard to understand |
# |
Aug 22nd 2019, 06:29 |
jiri.sejhar |
i have some javascript object etc some layout in js file i can read this and in console case in which layout can i render new db table.. |
# |
Aug 22nd 2019, 06:27 |
jiri.sejhar |
hello i have bake template which generate ctp file .. can i in bake console read some javascript file on filesystem |
# |
Aug 22nd 2019, 06:21 |
admad |
`'avgPrice' => $query->func()->avg('total')` in cake |
# |
Aug 22nd 2019, 06:20 |
admad |
wouldn't you get want you want by just using `AVG(total)` ? |
# |
Aug 22nd 2019, 06:14 |
slackebot2 |
$query->newExpr('salesTotal/salesQuantity'), ]); ``` I'm getting `Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'salesTotal' in 'field list'`. Is there any way to reuse the two virtual (or how do I call them?) columns? Previously I'd try `'avgPrice' => $query->newExpr($query->func()->sum('Table.total').'/'.$query->func()->sum('Table.quantity'))` but that doesn't seem right |
# |
Aug 22nd 2019, 06:14 |
mehov |
Hi guys, Trying to figure out how do I `SELECT` two virtual columns and have them divided too. Here's what I have: ``` $query->select([ 'salesTotal' => $query->func()->sum('Table.total'), 'salesQuantity' => $query->func()->sum('Table.quantity'), ]); ``` Here's what I'm trying ``` $query->select([ 'salesTotal' => $query->func()->sum('Table.total'), 'salesQuantity' => $query->func()->sum('Table.quantity'), 'avgPrice' => |
# |
Aug 22nd 2019, 04:44 |
challgren |
@rgabasa.mynimo have you read RFC 1738? http://www.faqs.org/rfcs/rfc1738.html |
# |
Aug 22nd 2019, 02:03 |
slackebot2 |
with no problem but the problem is I need to create another logic so I don't want to do it like that.. May I know if how can I fix my problem? By the way this is my code in the routes.php Router::connect( '/:peña', array('controller' => 'controllername', 'action' => 'functionname', 'section' => 'peña' ), array('peña' => '(?i:peña)') ); |
# |
Aug 22nd 2019, 02:03 |
rgabasa.mynimo |
Hello Everyone, I already open up this concern of mine on August 20 but unfortunately I still encounter the same problem. I hope you can help me with this, thanks in advance. My problem : I tried to use a special character on my url like this www.domain.com/peña but unforunately it didn't now even though my server supports UTF8 , I don't know why it didn't work but when I try to do it like this www.domain.com?url=peña it will work |
# |
Aug 22nd 2019, 00:32 |
cnizzardini |
I understand within the where operation I could probably cast to date with something like DATE(table_name.created) but is there another way to accomplish this? I'd like to avoid updating so much code. |
# |
Aug 22nd 2019, 00:22 |
cnizzardini |
How do you tell the Cake ORM to treat a date/time field as a date field when doing like things like table_name.created = '2019-08-01' |
# |
Aug 21st 2019, 22:07 |
khalid |
does someone knows what is it about? |
# |
Aug 21st 2019, 22:06 |
khalid |
Hi everyone, on updating my ES documents I am getting this 'Param _version does not exist' |
# |
Aug 21st 2019, 17:19 |
marek.sebera |
@admad neat, still required usage of Entity to get fields that are created through assoc is avoided using configuration array of the entity behavior, would it be possible to get those fields/categories/origins directly at cake-core ? |
# |
Aug 21st 2019, 16:40 |
admad |
@btx https://github.com/ADmad/cakephp-i18n/blob/master/composer.json#L26 |
# |
Aug 21st 2019, 16:34 |
btx |
i think i’ll just go the route of loading the plugin in a blank app like @ricksaccous confirmed. |
# |
Aug 21st 2019, 16:33 |
btx |
@admad i knew the first thing you’d say was to look at other plugins :P so i did. the issue I was having is how to test stuff that requires the cake core to be loaded |
# |
Aug 21st 2019, 16:16 |
admad |
np |
# |
Aug 21st 2019, 16:15 |
daniel.upshaw |
Well, at any rate, I appreciate your time |