# |
Nov 6th 2019, 13:40 |
pidlo |
i would like search something about setDefaultConnection and i get nothing.. |
# |
Nov 6th 2019, 13:38 |
admad |
http://google.com |
# |
Nov 6th 2019, 13:38 |
amanfulgence |
please give me link where i coul obtain |
# |
Nov 6th 2019, 13:37 |
admad |
you want link to google? |
# |
Nov 6th 2019, 13:37 |
amanfulgence |
please give me a link |
# |
Nov 6th 2019, 13:37 |
admad |
then ask google |
# |
Nov 6th 2019, 13:37 |
amanfulgence |
for hotel |
# |
Nov 6th 2019, 13:36 |
admad |
AdminLTE |
# |
Nov 6th 2019, 13:36 |
amanfulgence |
i need a well boostrap 4 template |
# |
Nov 6th 2019, 13:27 |
pidlo |
hello all in version 3 i use TableRegistry::get($m)->getConnection()->config()['name'] to get connection name which i set in model in static function setDefaultConnection now i get only Default.. |
# |
Nov 6th 2019, 13:25 |
nayakvradhit |
In cakephp 2.1 even there is a file called geocoded php in the app/model/behavior folder inside which is having class Geocoded behavior extends ModelBehavior blah blah But when I migrate it to cakephp 2.10 I placed the same geocoded.php file into app/model/behavior folder but I am getting missing GeocodedBehavior class can you please help me with this why I am getting this in cakephp 2.10.13 |
# |
Nov 6th 2019, 13:22 |
dereuromark |
but resend email with generated token and accepting action should be fairly simple to implement. |
# |
Nov 6th 2019, 13:22 |
dereuromark |
I dont have any public ones. and the sandbox doesnt provider register demo :slightly_smiling_face: sry |
# |
Nov 6th 2019, 13:19 |
rudy1976s |
@dereuromark could you please give me url of your app case ? |
# |
Nov 6th 2019, 13:13 |
nike90 |
Hi guys, I have a problem with require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';, I moved my system from a dev server to a live server, access is just with ip/cakephp, I copied also my .htaccess file from the dev server, any ideas? |
# |
Nov 6th 2019, 13:10 |
dereuromark |
I have re-send confirmation link feature here in my apps/cases. maybe you need to code that yourself or sth. |
# |
Nov 6th 2019, 13:09 |
rudy1976s |
because validation of the register fails |
# |
Nov 6th 2019, 13:09 |
rudy1976s |
I have user registrated which did not click registration confirmation link, and now the token has expired. Since the user is already in the table , set as active = 0 , the user is unable to register again |
# |
Nov 6th 2019, 13:08 |
rochasmarcelo |
@rudy1976s You can ask your question |
# |
Nov 6th 2019, 13:02 |
dereuromark |
aha ok |
# |
Nov 6th 2019, 12:56 |
val |
It looks like a dummy query is passed to `beforeFind` method instead of the main one. "For associations that use joins, a dummy query will be provided." - https://book.cakephp.org/3/en/orm/table-objects.html#beforefind So the mapper is not attached to the main query. |
# |
Nov 6th 2019, 12:52 |
dereuromark |
Thats why there is bool $primary param. If that is relevant to know, but for most behaviors it shold behave the same. |
# |
Nov 6th 2019, 12:51 |
dereuromark |
really? but then maybe there is some bug somewhere. as this is supposed to work from the model callback strategy. |
# |
Nov 6th 2019, 12:32 |
val |
That does not really work. F.ex. https://github.com/dereuromark/cakephp-tools/blob/master/src/Model/Behavior/BitmaskedBehavior.php - it works well when the model that uses Bitmasked is queried directly but if the associated model has Bitmasked then bitmasks are not converted to real values. |
# |
Nov 6th 2019, 12:14 |
rudy1976s |
I would need someone who is experienced with using of CakeDC Users plugin |
# |
Nov 6th 2019, 11:14 |
jotpe |
https://github.com/cakephp/app/blob/master/webroot/.htaccess |
# |
Nov 6th 2019, 11:14 |
jotpe |
https://github.com/cakephp/app/blob/master/.htaccess |
# |
Nov 6th 2019, 11:13 |
jotpe |
nike90: To which folder does your domain point to? `app/webroot`? Is the content of you` app/.htaccess` and your `app/webroot/.htaccess` like in the cakephp skeleton? |
# |
Nov 6th 2019, 11:10 |
jotpe |
@challgren No pdf generated, if I create from php o.O |
# |
Nov 6th 2019, 11:10 |
jotpe |
In fact I don't request the pdf (file download). I generate it for a email attachment like described over here: https://github.com/FriendsOfCake/CakePdf#2-create-pdf-for-email-attachment-file-storage-etc |
# |
Nov 6th 2019, 11:09 |
jotpe |
@javier.villanueva Thanks, I use a Theme for my FE and my BE, and tried remove it...but the same error. |
# |
Nov 6th 2019, 11:05 |
nike90 |
hi guys, I know that someone can help me, I moved my application from the develop server to the live system, now I have the problem with "require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';", I know that this is something with the .htaccess, but I set all files like in documentation |
# |
Nov 6th 2019, 10:59 |
challgren |
Does it generate a pdf? Have you tried opening it with text editor? |
# |
Nov 6th 2019, 10:59 |
javier.villanueva |
I dont know if you use any theme... |
# |
Nov 6th 2019, 10:59 |
javier.villanueva |
´´´ if(!in_array($this->request->getParam('_ext'),['json','csv','pdf'])) { $this->viewBuilder()->setTheme('AdminLTE'); $this->viewBuilder()->setClassName('AdminLTE.AdminLTE'); } ´´´ |
# |
Nov 6th 2019, 10:58 |
javier.villanueva |
I had this problem too, works from cli but not rendering html in layout. My problem was that I use a theme (admintle) in this cases I need use theme only in common extension |
# |
Nov 6th 2019, 10:56 |
challgren |
Weird |
# |
Nov 6th 2019, 10:56 |
jotpe |
So no Helpers or Anything involved |
# |
Nov 6th 2019, 10:56 |
jotpe |
This is really strange: I rendered the the view into a html file and converted this by cli with `wkhtmltopdf test.html test.pdf` <--- Works. If I use the rendered html file as layout with proper urls <---Breaks |
# |
Nov 6th 2019, 10:43 |
challgren |
Ok cause I had an issue where it was missing a helper and was in a loop. @jotpe for debuging the best I found was to get the html that would be sent to wkhtmltopdf and then manually inspect it/process it |
# |
Nov 6th 2019, 10:42 |
javier.villanueva |
find it in your bootstrap.php |