# |
Jun 19th 2019, 20:58 |
rightscoreanalysis |
the div is closed and the numbers are rendered outside of the div |
# |
Jun 19th 2019, 20:58 |
rightscoreanalysis |
<div class="pagination"> <?= $this->Paginator->options();?> </div> |
# |
Jun 19th 2019, 20:58 |
rightscoreanalysis |
for example this doe snot work |
# |
Jun 19th 2019, 20:58 |
rightscoreanalysis |
anyone know how I can wrap my paginated number list in a div |
# |
Jun 19th 2019, 19:29 |
chris-andre |
@challgren Thanks :slightly_smiling_face: @steinkel I will have I read. Was looking for some article earlier. |
# |
Jun 19th 2019, 19:22 |
challgren |
O_o thats new to me! |
# |
Jun 19th 2019, 19:21 |
steinkel |
@chris-andre @challgren check https://transloadit.com/ for a piece of the cake they do it for you, allowing you to upload the file directly to the cloud |
# |
Jun 19th 2019, 19:21 |
challgren |
The 2 plugins I posted are great |
# |
Jun 19th 2019, 19:20 |
challgren |
Yep |
# |
Jun 19th 2019, 19:20 |
chris-andre |
I will probably go for local storage for this app, but basicly 1. Upload image 2. Queue processes image 3. Queue update image paths |
# |
Jun 19th 2019, 19:18 |
challgren |
https://github.com/FriendsOfCake/cakephp-upload |
# |
Jun 19th 2019, 19:16 |
challgren |
And once the image is uploaded I then create another queue job set for 10 minutes in the future to delete the original image off the local server. That way if anyone has cached locations they can still use the image |
# |
Jun 19th 2019, 19:15 |
challgren |
User -> Server -> AWS |
# |
Jun 19th 2019, 19:14 |
challgren |
So how I have my app configured is the user uploads their image and a job is created. The user sees the image once its uploaded in its original format, then in the background the queue is handling the resize and uploading to AWS. Once thats done it updates the entity with the updated (AWS) location. and then if a user retrieves that entity the new info is provided and the image is updated |
# |
Jun 19th 2019, 19:12 |
challgren |
So every 20 seconds or however you config it, the queue process will look for jobs to do. |
# |
Jun 19th 2019, 19:12 |
challgren |
https://github.com/dereuromark/cakephp-queue runs as a background process on your host |
# |
Jun 19th 2019, 19:09 |
chris-andre |
Right, good point. Thanks. But, I don't know/understand, how can an image be uploaded after user "has left"? I mean, somehow the image must be available for the application. |
# |
Jun 19th 2019, 19:05 |
challgren |
Plus for the user with a big picture and slow internet, they aren’t getting timeouts due to processing the image |
# |
Jun 19th 2019, 19:04 |
challgren |
For example resizing/rotating gifs will take a while due to having to work on each frame individually so you don’t want that slowing down the user |
# |
Jun 19th 2019, 19:03 |
challgren |
then the CakePHP-Queue runner comes along grabs the file checks the exif data and then rotates and then resizes and then uploads |
# |
Jun 19th 2019, 19:02 |
challgren |
Yes, so I use CakePHP-upload and in the background I fix the exif rotation and then resize and then upload all in the background. When the user first uploads its stored locally |
# |
Jun 19th 2019, 19:01 |
chris-andre |
@challgren thats a valid alternative. The one you would go with? |
# |
Jun 19th 2019, 19:01 |
kiwi_17 |
https://ipfinder.io/ |
# |
Jun 19th 2019, 19:01 |
kiwi_17 |
and thank you so much |
# |
Jun 19th 2019, 19:01 |
kiwi_17 |
i want to start a project with phpcake for my company |
# |
Jun 19th 2019, 19:00 |
kiwi_17 |
hI guys |
# |
Jun 19th 2019, 19:00 |
challgren |
3. Orientate image in background queue |
# |
Jun 19th 2019, 18:48 |
chris-andre |
Image upload - image oriantation - Does anyone have a tip/thought about which option is the best? 1. Orientate image in storing process, or 2. Orientate image on print/echo |
# |
Jun 19th 2019, 18:37 |
admad |
$import is only for importing schema, not records |
# |
Jun 19th 2019, 18:37 |
admad |
@kailas https://book.cakephp.org/3.0/en/development/testing.html#importing-table-information |
# |
Jun 19th 2019, 18:18 |
kailas |
I’m trying to import both the schema AND the data from my test database, into my fixture. I’ve heard that its possible, but doesn’t seem to be working. Is that the case (that you can import data from datasource, not just the structure)? In my fixture i have: public $import = [‘table’ => ‘actions’, ‘records’ => true, ‘connection’ => ‘test_orderdb_aws’]; |
# |
Jun 19th 2019, 17:42 |
ricksaccous |
@olanowsubomi https://book.cakephp.org/3.0/en/installation.html#development-server |
# |
Jun 19th 2019, 17:26 |
olanowsubomi |
hello anybody with knowledge of cakephp usage with netbean |
# |
Jun 19th 2019, 17:16 |
olanowsubomi |
hello do you have experience with netbean? |
# |
Jun 19th 2019, 17:14 |
olanowsubomi |
but istill have some question to ask concerning the net bean you suggested |
# |
Jun 19th 2019, 17:13 |
olanowsubomi |
hi, have been resolving issues based on your information |
# |
Jun 19th 2019, 16:31 |
jeremyharris |
also, PHPStorm does have some support for javascript, including jQuery, it’s just a PHP IDE first. I think there were a few other IDE suggestions that you can try out if you find PHPStorm’s javascript support not good enough |
# |
Jun 19th 2019, 16:28 |
jeremyharris |
all modern frameworks use composer to install them nowadays, so I think it is worth investing time learning how to make composer work with your setup first. Like many people mentioned, cakebox will help with setting up a virtual server that is all ready to go. Otherwise, if you’re using XAMMP you will need to do that configuration yourself, regardless of the framework you choose |
# |
Jun 19th 2019, 16:23 |
olanowsubomi |
and find another framework |
# |
Jun 19th 2019, 16:22 |
olanowsubomi |
if not that i have invested a lot of time learning it i would have abandon it |
# |
Jun 19th 2019, 16:21 |
olanowsubomi |
i dont understand how a big organization like cakephp would not make there application easy to download for the first time, i have never experience this kind of difficulty downloading an app before |