Log message #4108790

# At Username Text
# Jan 13th 2018, 19:52 greenjam94 ahh this is much simpler than what I was trying with a custom finder method, ty
# Jan 13th 2018, 19:49 maymeow ``` public function index() { $query = $this->Articles->find('popular')->where(['author_id' => 1]); $this->set('articles', $this->paginate($query)); } ```
# Jan 13th 2018, 19:49 maymeow yes :slightly_smiling_face: https://book.cakephp.org/3.0/en/controllers/components/pagination.html
# Jan 13th 2018, 19:47 greenjam94 Hey, is it possible to filter a paginator's results? for example, a documents model and index view with baked paginator table. If the docs have a type field, can I say only documents with type == notes
# Jan 13th 2018, 19:37 maymeow @@
# Jan 13th 2018, 19:12 tephysalazar how i can get the view from a HABTM association? cake bake generate the files to use a single primary key, but should have been a compound key.
# Jan 13th 2018, 18:52 hmic crud does not care about auth IMHO
# Jan 13th 2018, 18:49 birdy247 is this possible?
# Jan 13th 2018, 18:49 birdy247 I am trying to get the Auth'd userid from CRUD
# Jan 13th 2018, 18:21 birdy247 is CRUD still well supported?
# Jan 13th 2018, 18:05 dereuromark for some reason it doesnt fall back to core ones
# Jan 13th 2018, 18:05 dereuromark unfortunately, you have too, yeah
# Jan 13th 2018, 17:15 cgtag I have error views in a plugin, but have to copy it to my `Template/Error` folder for it to be used. Is this correct?
# Jan 13th 2018, 17:12 cgtag does cake render error views from plugins?
# Jan 13th 2018, 17:08 maymeow https://github.com/MayMeow/sandbox Trying to use VueJS with CakePHP. First example is there (more will come). Maybe for someone can be usefull.
# Jan 13th 2018, 16:08 birdy247 Hey
# Jan 13th 2018, 15:18 kitcat711 i am using through
# Jan 13th 2018, 15:11 hmic if you are not using through, there is none.
# Jan 13th 2018, 15:08 kitcat711 hmic : oh ok, I was trying the relation to get to it
# Jan 13th 2018, 15:07 hmic by loading the table from the regisry i suppose
# Jan 13th 2018, 15:06 kitcat711 how do I call a method located in the join table model from the StudentsController ?
# Jan 13th 2018, 15:05 kitcat711 when usign the trhough option in a relation like here : https://book.cakephp.org/3.0/en/orm/associations.html#using-the-through-option
# Jan 13th 2018, 14:09 dinosaur done. Was vhost config
# Jan 13th 2018, 13:56 dinosaur Untampered .htaccess webroot = drwxr-xr-x webroot/css = drwxrwxrwx no error messages
# Jan 13th 2018, 13:53 admad assuming you have the default rule in .htaccess could be file/folder permissions issue
# Jan 13th 2018, 13:50 dinosaur Trying to figuring out why it is not
# Jan 13th 2018, 13:46 admad webroot/css/foo.css should be callable as domain.com/css/foo.css
# Jan 13th 2018, 13:42 dinosaur @admad The old application call resources like "/css/name.css". Its only working if I change then to "/webroot/old/css". Even if I move the css dir to /webroot/css I cannot call directly "/css/name.css". There are a way to avoid change every each file?
# Jan 13th 2018, 13:14 dinosaur trying! :slightly_smiling_face:
# Jan 13th 2018, 13:12 dinosaur hmm The shared session would be needed anyway
# Jan 13th 2018, 13:12 dinosaur This or maybe cakephp auth+menu and point the menu calling to each one of the old files...
# Jan 13th 2018, 13:11 admad so share session between the 2 apps and redirect to cake login page is not authticated
# Jan 13th 2018, 13:10 dinosaur @admad I did. But it is a protected content, so I wish to auth into cake and only then allow access to that old files/structure...
# Jan 13th 2018, 13:03 admad @dinosaur if you put the old site inside webroot it will be directly accessible like domain.com/oldfoo.php
# Jan 13th 2018, 12:57 technofection Hi, I am trying to create a resource map like this 'map' => [ '/search/:page/:records/*' => [ 'action' => 'index', 'method' => 'GET' ], .... .... I want to set regular expression for the URL parameters... What is the syntax?
# Jan 13th 2018, 12:52 dinosaur I have an old site using raw PHP with no MVC. For several reasons, I wish to put it "inside" a CakePHP. I've found this https://www.endpoint.com/blog/2009/12/03/iterative-migration-of-legacy (exactly what I want) but it is too old and I could not replicate the generic idea to CakePHP3. Does anyone maded similar thing? Can you point me to idea to try? Rebuild it from scratch is not an option.
# Jan 13th 2018, 12:48 ghoritrilochan i have use https://github.com/paypal/PayPal-PHP-SDK this plugin but not understand which place in insert "first .php" file
# Jan 13th 2018, 12:13 info356 ah great! thanks
# Jan 13th 2018, 12:13 admad https://api.cakephp.org/3.5/class-Cake.Collection.CollectionInterface.html#_combine
# Jan 13th 2018, 12:13 admad @info356 ->all()->combine()
# Jan 13th 2018, 12:12 ghoritrilochan any have paypal payment getway demo. i not understand how to implement so...