# |
Jun 25th 2018, 07:05 |
narendravaghela |
yes, you can do that. |
# |
Jun 25th 2018, 07:03 |
mohitprakashsharma555 |
i just want to do if user data is on that will use live site if they did't have connection it will use automatic downloaded html |
# |
Jun 25th 2018, 07:03 |
narendravaghela |
Here, the Service Workers come in picture, you can cache stuff on user's machine using them and serve it locally |
# |
Jun 25th 2018, 07:02 |
mohitprakashsharma555 |
yes @narendravaghela i just want to know can we do this type of functionality using cake With the help of cache or session. or download html |
# |
Jun 25th 2018, 06:59 |
narendravaghela |
YouTube offline video feature is available on mobile app only I think, there is nothing like that on web app. |
# |
Jun 25th 2018, 06:53 |
mohitprakashsharma555 |
oh in youtube there have a video offline feature you can use just download and see the video ofline |
# |
Jun 25th 2018, 06:53 |
saeideng |
with cake you can implement any site |
# |
Jun 25th 2018, 06:52 |
saeideng |
I did not see youtube ofline service :slightly_smiling_face: |
# |
Jun 25th 2018, 06:51 |
mohitprakashsharma555 |
@saeideng like youtube ofline feature |
# |
Jun 25th 2018, 06:39 |
bravo-kernel |
@saeideng I would guess he is talking about [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers) |
# |
Jun 25th 2018, 06:33 |
saeideng |
what mean of offline ? |
# |
Jun 25th 2018, 06:17 |
mohitprakashsharma555 |
hey guys i there have any way to access the site offline ? |
# |
Jun 25th 2018, 03:35 |
kortho |
Hello, someone speaks Spanish |
# |
Jun 25th 2018, 01:05 |
hippo |
@mikesmoniker thanks, looks like it might work, will let you kno! |
# |
Jun 25th 2018, 00:55 |
mikesmoniker |
Something like that sounds close. |
# |
Jun 25th 2018, 00:54 |
mikesmoniker |
Wouldn’t something like `'approx_price_paid' => $query->newExpr()->add('approximate count(pricepaid)')` in your ORM query `select()` work? |
# |
Jun 25th 2018, 00:40 |
hippo |
looking at how `DISTINCT` is done makes me think there is no easy way |
# |
Jun 25th 2018, 00:28 |
hippo |
Anyone know how to easily add the approximate here to a query (using the query builder, I don't want to do custom SQL): `select approximate count(pricepaid) from sales;` |
# |
Jun 24th 2018, 17:21 |
saeideng |
https://book.cakephp.org/3.0/en/orm/query-builder.html |
# |
Jun 24th 2018, 17:21 |
saeideng |
$query = $articles->find(); $query->select(['count' => $query->func()->count('*')]); |
# |
Jun 24th 2018, 17:15 |
D-rex |
I have a table thats setup with user_id,tweet_id column. im grouping them based on the tweet_id. $this->LikedTweets->find()->group(['LikedTweets.tweet_id']); How can I count the grouped results for a like counter? |
# |
Jun 24th 2018, 17:11 |
mub |
ok,thank you @slackbot4 |
# |
Jun 24th 2018, 17:06 |
saeideng |
also if you didn't see this result in console , use `composer install` for complete install |
# |
Jun 24th 2018, 17:05 |
saeideng |
and it make `tmp` `log` writeable for you |
# |
Jun 24th 2018, 17:04 |
saeideng |
when you trying to install with composer |
# |
Jun 24th 2018, 17:04 |
saeideng |
cake have a shell to change this value |
# |
Jun 24th 2018, 17:02 |
mub |
refering cakephp 3.x documentation |
# |
Jun 24th 2018, 17:02 |
mub |
i installed using composer @slackbot4 |
# |
Jun 24th 2018, 17:01 |
saeideng |
notice is clear |
# |
Jun 24th 2018, 17:01 |
saeideng |
`composer create-project --prefer-dist cakephp/app my_app_name` |
# |
Jun 24th 2018, 17:00 |
saeideng |
install with composer |
# |
Jun 24th 2018, 17:00 |
mub |
but, now showing notice "Notice (1024): Please change the value of 'Security.salt' in ROOT/config/app.php to a salt value specific to your application. [CORE/src/Error/Debugger.php, line 963]" |
# |
Jun 24th 2018, 16:59 |
saeideng |
worked ? |
# |
Jun 24th 2018, 16:59 |
mub |
thank you, @hmic |
# |
Jun 24th 2018, 16:59 |
saeideng |
for test |
# |
Jun 24th 2018, 16:57 |
saeideng |
see user of `/opt/lampp/htdocs` |
# |
Jun 24th 2018, 16:55 |
hmic |
s/chmopd/chmod/ |
# |
Jun 24th 2018, 16:55 |
hmic |
chmod 777 tmp/ -R; chmopd 777 logs/ -R |
# |
Jun 24th 2018, 16:54 |
mub |
how can i resolve this issue? |
# |
Jun 24th 2018, 16:46 |
saeideng |
I guess your user for php/apache and dir is not same |
# |
Jun 24th 2018, 16:42 |
hmic |
and logs dir too, like the other error on that page suggests |