Pass a variable to a model construct

2015-10-14 Thread Michael Houghton
My experience of this is only with Cake 2, so I don't know if it is possible in Cake 3, but if it is, please point me in the right direction. I find myself writing model files which pass the same parameters to my methods! For example My "Settings" model might have: public function

Cakephp 3 How to update multiple row data in a single query

2015-10-14 Thread Karthik Keyan
Hi all, I have multiple rows in database. I need to collect all the rows based on certain condition and change the value of particular column by removing a word from the column's value. How it could be done with with cakePHP 3? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find

Re: How can i load a model method in view file in cakephp 3

2015-10-14 Thread Marcelo Andrade
On Wed, Oct 14, 2015 at 9:23 AM, Zahidur Rahman wrote: > Hi Guys, > How can i load a model method in view file in cakephp 3. CakePHP is a MVC framework. So you can't do this. Pass the model data to the view via controller. Regards. -- MARCELO F ANDRADE | Belem,

How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread heavyKevy
I have gone through the documentation, which is a bit too vague, and tried many things, but I still am getting an error that the template file is missing. I had this working sending back a json response in 3.0 using ext='json', yet after updating to 3.1 it is broken. I checked the migration

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread Anthony GRASSIOT
Did you correctly specify the data type json in your ajax call ? Le 14 oct. 2015 09:02, "heavyKevy" a écrit : > I have gone through the documentation, which is a bit too vague, and tried > many things, but I still am getting an error that the template file is > missing. >

How Can I Call Own Helper Function in External PHP File

2015-10-14 Thread Lakshmana Katragadda
External PHP file was in Web-root. i created one own helper class .now i want call that function from PHP file Code: $ReviewCount=$this->Search->getReviewsCount(); echo $ReviewCount it was working view file but its showing error in External php file Fatal error: Using $this when not in

Controller Flash component error

2015-10-14 Thread Sathish Sukumar
Hi When I use this method - $this->Flash->success(__('Your post has been saved.')); in the tutorial the following error is encountered "Call to a member function setFlash() on a non-object " Please help me out. Thanks, Sathish -- Like Us on FaceBook https://www.facebook.com/CakePHP Find

Use Bake with another PHP version

2015-10-14 Thread Sebastian S
Hi all I have trouble using bin/bake, because of my server setup (dedicated), I think. It uses PHP as CGI and in default the terminal uses PHP 4. (13:38:26) [webfiles] bin/cake bake all users X-Powered-By: PHP/4.4.9 Content-type: text/html Warning: Unexpected character in input: '\'

File upload Issue after upgrading cakephp from 2.3.9 to to 2.7.5

2015-10-14 Thread Nicklas
I have fixed most issues after the upgrade but one I just can't seem to solve. I hope someone can help me. I created a few years ago this upload form/functionality in the admin section to give the admin user the possibility to upload images for a property in a region. The admin user select

Looking for a CakePHP Tutor with some help with MVC project

2015-10-14 Thread LSRX4EVER
Hello, I am currently working on an internship web application that is utilizing CakePHP. Currently I have a very large mysql database schema and have been working slowly on developing and learning CakePHP. I am interested in finding a developer who is willing to freely devote some of their

Pesquisa de Frameworks PHP

2015-10-14 Thread cassiane silva
Oi gente, sou Cassiane estou fazendo meu TCC sobre frameworks PHP em visão de fazer o meu próprio para Trabalho de Conclusão em Analise e Desenvolvimento de Sistema Demora apenas 5 minutos e preciso muito que ao menos 10 respondam pois voces já utilizam o cake e provavelmente já usaram outro

dateFormat doesn't work anymore in cakephp 3.0

2015-10-14 Thread Filippo Giordano
Somebody knows how to format $this->Form->input in 'DMY'? The option dateFormat doesn't work anymore in cakephp 3.0. Thanks in advance. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

New plugin ACL cakephp3

2015-10-14 Thread Rafael Abreu
Hello, I developed a plugin for acl cakephp3. Am new to the cakephp, it is three weeks I started to use it. As I saw that the community still needs a plugin acl decided to develop. The tutorial is in Portuguese, if anyone can translate it I thank you. Reviews and collaborations are welcome!

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread Kevin Arnett
code that generated the URL: $url = $this->Url->build(['controller' => 'Purchases', 'action' => 'get_sales_people_select_list','_ext'=>'json']); $url = $url . '/47'; The generated URL: /purchases/get-sales-people-select-list.json/47 Is this not correct? On Wed, Oct 14, 2015 at 4:40 PM, Anthony

How can i load a model method in view file in cakephp 3

2015-10-14 Thread Zahidur Rahman
Hi Guys, How can i load a model method in view file in cakephp 3. Thanks Zahid -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread heavyKevy
I discovered a bug in the Route.php file. the reg expression used for finding extensions only works if no parameters are passed in the URL. I have temporarily modified my Routes.php file to find the extension anywhere in the string and used str_replace to remove the .json from the url and I no