Re: [Cakephp 3.2.5] Cannot match provided foreignKey

2016-03-25 Thread Gaurav Kumar
Hello Manuel, In your tables there is no PRIMARY KEY defined. So, your tables should look like this CREATE TABLE `articles` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `user_id` bigint(20) unsigned NOT NULL, PRIMARY KEY

Re: How to set a variable and use everywhere?

2016-03-19 Thread Gaurav Kumar
1. If you need to use that variable in controllers then you can set it in the beforeFilter and if you need to access the variable in views then beforeRender both you have to do in AppController. 2. Please follow this http://book.cakephp.org/3.0/en/views.html On Thursday, March 17, 2016 at

Re: Srange behaviour with find('list')

2016-02-18 Thread Gaurav Kumar
Hello michael, Check your displayField in the respective table file. If it is different from what you are trying to fetch then just add your field in the displayField just above the find query. On Thursday, February 18, 2016 at 1:48:22 AM UTC+5:30, Michael Kornatzki wrote: > > Hi, > > i am

Re: NewBie

2015-08-07 Thread Gaurav Kumar
$this refers the class in which you are currently working. On Thursday, June 4, 2015 at 2:11:31 AM UTC+5:30, Kingston Abraham wrote: what is the difference between $this-request and $request- do both convey same information -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: Cakephp Login form with different database tables

2015-08-07 Thread Gaurav Kumar
Your distributors login submit looking for a 'distributor_login' method and that is missing 'DistributorsController'. On Friday, July 31, 2015 at 4:54:16 PM UTC+5:30, Asmat Quadeer wrote: I am trying to create a login form for different types of users like `Suppliers`, `Distributors`,

Re: Upgrade sage pay protocol v3 in cakephp 1.3

2015-06-23 Thread Gaurav Kumar
UTC+5:30, Colin Rainsforth wrote: I need to update a site too - but from SagePay v2.2 to v3.0. SagePay v2.2 seems to have had fewer madatory fields than v2.3. Can you advise on this? Thanks in advance Colin On Friday, 19 June 2015 04:07:27 UTC+1, Gaurav Kumar wrote: I have used

Re: Upgrade sage pay protocol v3 in cakephp 1.3

2015-06-23 Thread Gaurav Kumar
UTC+1, Gaurav Kumar wrote: I have used that in CakePHP 2.6, implemented sage pay for buy online. There is nothing that you have to change just changes the version and in the response you will get some additional data from sage pay so if you are saving them then you can check

Re: Date format

2015-06-22 Thread Gaurav Kumar
Try with this: echo $this-Form-input( 'birthdate', array ( 'label'= false, 'dateFormat' = 'DD-MM-', 'minYear' = date('Y') - 100, 'maxYear' =

Re: Upgrade sage pay protocol v3 in cakephp 1.3

2015-06-18 Thread Gaurav Kumar
I have used that in CakePHP 2.6, implemented sage pay for buy online. There is nothing that you have to change just changes the version and in the response you will get some additional data from sage pay so if you are saving them then you can check it. On Thursday, June 18, 2015 at 11:13:39 PM

Re: Create plugin and run it my browser

2015-06-18 Thread Gaurav Kumar
The plugin name in the url should be snake case http://localhost/cakephp/contact_manager/Contacts http://localhost/cakephp/ContactManager/Contacts On Tuesday, June 16, 2015 at 3:12:56 AM UTC+5:30, Scyllar wrote: http://book.cakephp.org/2.0/en/plugins/how-to-create-plugins.html i don't know

Re: Create plugin and run it my browser

2015-06-18 Thread Gaurav Kumar
Try to access this location http://localhost/cakephp/ http://localhost/cakephp/ContactManager/Contacts you will get your plugins index view. Because you have added route for plugin's index method on '/' that's why you can access your index method directly on the given location. On Tuesday,

Re: Unusual Table name/ Convention Naming issue

2015-06-01 Thread Gaurav Kumar
Please look after your controller's class name. If you changed your controller's name to MyCallDatas1sController then you also have to change the class name in the controller same as the file name. I think that should work. On Monday, June 1, 2015 at 3:09:13 AM UTC+5:30, Troy White wrote:

Re: Login/Registration

2015-06-01 Thread Gaurav Kumar
I think you have to read the CakePHP docs then you will definitely get all the answers. On Monday, June 1, 2015 at 3:09:15 AM UTC+5:30, sakshi bhalla wrote: All, I am new to Cake PHP. I am developing a website and struggling to complete the initial login/registration page. Not sure, how

Re: Schema migration in CakePHP-3

2015-03-10 Thread Gaurav Kumar
Thank you. On Monday, March 9, 2015 at 10:33:28 AM UTC+5:30, Dakota wrote: How do you delete the table? If you simply run DROP TABLE too; then the migration won't run again since Phinx still believes that the migration has run. To undo a migration you need to run bin/cake migrations

Re: Input field returning Array

2015-03-09 Thread Gaurav Kumar
, March 9, 2015 at 10:54:34 AM UTC+5:30, Gaurav Kumar wrote: I have created a form in CakePHP-3 and in that there is an input type file field. In previously getting the proper values(name, type, tmp_name, error) of that input field. But now just updated the cakePHP and after doing patchEntity

Input field returning Array

2015-03-08 Thread Gaurav Kumar
I have created a form in CakePHP-3 and in that there is an input type file field. In previously getting the proper values(name, type, tmp_name, error) of that input field. But now just updated the cakePHP and after doing patchEntity the input field returning just Array. -- Like Us on FaceBook

Re: Schema migration in CakePHP-3

2015-03-08 Thread Gaurav Kumar
migration file to see if it is being read? On Thursday, March 5, 2015 at 11:47:30 AM UTC+1, Gaurav Kumar wrote: Hello Everyone, I am trying to create a custom plugin for CakePHP-3.0 where I want to include schema migrations [database sql queries] so that when plugin gets installed

Schema migration in CakePHP-3

2015-03-05 Thread Gaurav Kumar
Hello Everyone, I am trying to create a custom plugin for CakePHP-3.0 where I want to include schema migrations [database sql queries] so that when plugin gets installed eventually migrations for the same plugin will run and tables required by the plugin will get created in users database.

Re: CakePHP-3 Plugins form validation messages and field values

2015-02-23 Thread Gaurav Kumar
, José Lorenzo wrote: Can you show the code you are using? Use gist.github.com to show your table class, controller and form code. On Thursday, February 19, 2015 at 7:19:22 AM UTC+1, Gaurav Kumar wrote: I have just created a CommentManager plugin. Created the comment form in post's

CakePHP-3 Plugins form validation messages and field values

2015-02-19 Thread Gaurav Kumar
I have just created a CommentManager plugin. Created the comment form in post's view.ctp file and able to add the comments. But when the values of the comment form are wrong(email format is not proper or empty) then i am not getting the validation message in front of the respected fields and

Re: CakePHP 3 Plugin not working (controller file not found)

2015-02-19 Thread Gaurav Kumar
Hey HVan, Change you autoload in composer.json with this autoload: { psr-4: { App\\: src, ContactManager\\: ./plugins/ContactManager/src, ContactManager\\Test\\: ./plugins/ContactManager/tests } }, On Sunday, February 8, 2015 at 9:28:58

Re: Some talk about complex Applications with CakePHP

2013-11-10 Thread Gaurav Matta
Check this http://itfeast.blogspot.in/2013/10/cakephp-query-and-cache-optimization.html?m=1 On 10-Nov-2013 8:21 PM, Ighor Martins ighor.mart...@gmail.com wrote: Hi there!. I'm a web developer from Portugal for like 8 years. I have been using CakePHP for about 1 year and a half right now, and

Re: Error 500 only in Controllers

2013-10-19 Thread Gaurav Matta
Try /index.php/controller/action If it works ccheck yr .htaccess file On 18-Oct-2013 3:17 PM, Damian Kulon dam...@180creative.pl wrote: Hi When I move my app to another serwer and open in controller see error 500. Adress / works fine and another serwer works all links. I think that is

Re: noobie- help with cake blog tutorial - Error PostsController could not be found

2013-10-06 Thread Gaurav Matta
You seem to miss php tags in your controller...How comfortable are you with Php On Fri, Oct 4, 2013 at 3:19 AM, Frank Thomson frankt2...@gmail.com wrote: I am running WAMP server on my windows 8 laptop. I have cake installed and the test screen shows up as OK. There is more detail on that on

Re: App::build in CakePHP3

2013-10-06 Thread Gaurav Matta
@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards Gaurav Matta Blog: http://itfeast.blogspot.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: Bake doesn't work

2013-10-06 Thread Gaurav Matta
to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards Gaurav Matta Blog: http://itfeast.blogspot.com -- Like Us on FaceBook https

Re: Duplicate records in database

2013-10-06 Thread Gaurav Matta
@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards Gaurav Matta Blog: http://itfeast.blogspot.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: noobie problem with the cake blog tutorial

2013-10-06 Thread Gaurav Matta
@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks and Regards Gaurav Matta Blog: http://itfeast.blogspot.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Cascading (Dependent) Drop Down list.

2013-09-27 Thread Gaurav Matta
Yes..it's a is helper On 27-Sep-2013 10:51 AM, Raks kaur@gmail.com wrote: Where to use this? In view file. On Thursday, September 26, 2013 9:38:48 PM UTC-7, gaurav wrote: If you see in example in given link the code changed for you will be ?php echo $this-Js-get('#**parentdropdownid

Cakephp not able to save associated model

2013-09-26 Thread Gaurav Kumar
(X-posting from SOhttp://stackoverflow.com/questions/19017839/cakephp-not-able-to-save-associated-model ) I've a model `CloudApp` which has HABTM relationship with `Policy` model e.g: class CloudApp extends AppModel { public $displayField = 'name'; public

Re: Cascading (Dependent) Drop Down list.

2013-09-26 Thread Gaurav Matta
a lot looking at various different examples. Nothing works. On Wednesday, September 25, 2013 8:02:35 PM UTC-7, gaurav wrote: You will need.to.use js helper here I suppose you are using cake 2.0 see this link http://itfeast.blogspot.in/**2013/06/cakephp-20-create-** 0bserve-field.html?m=1http

Re: Cascading (Dependent) Drop Down list.

2013-09-25 Thread Gaurav Matta
You will need.to.use js helper here I suppose you are using cake 2.0 see this link http://itfeast.blogspot.in/2013/06/cakephp-20-create-0bserve-field.html?m=1 On 26-Sep-2013 5:33 AM, Raks kaur@gmail.com wrote: Hi, I have a sql table having columns id, parent_id and title. All items with

Re: Ajax request

2013-09-25 Thread Gaurav Matta
You will need to rewrite the autocomplete code on page you are requesting on the fly for search. If I am correct your search is also Ajax based... On 25-Sep-2013 6:47 PM, webgaert...@gmail.com wrote: Hello, I have a problem with a search field on my site and I hope you can help me. I got a

Re: Ajax request

2013-09-25 Thread Gaurav Matta
For better solution do not refresh the button but only the search result. On 25-Sep-2013 6:47 PM, webgaert...@gmail.com wrote: Hello, I have a problem with a search field on my site and I hope you can help me. I got a table called Clients with some information like firstname, lastname, adress

Re: Sending videos via CakeResponse::file()

2013-09-25 Thread Gaurav Matta
It's better to convert video to flv format before buffering which is universally acceptable.you can use php ffmpeg module to perform the same to convert.check here http://itfeast.blogspot.in/2013/08/best-flv-conversion-parameters-from.html?m=1 On 24-Sep-2013 10:49 PM, Tobias Welz

Re: How to retrieve indivisal field

2013-09-19 Thread Gaurav Matta
$this-model-Id=ID; $this-model-field('fieldname'); On 19-Sep-2013 1:00 PM, Sudhir Pandey promatics.sud...@gmail.com wrote: Hello, I am new user of cake php , plz tell -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: How to Add external Javascript and CSS for CakePhp

2013-08-18 Thread Gaurav Matta
Though they are added in template or view depends on need for example a framework like jQuery can be added to template and it's widgets to respective views.. I would recommend you to go through.a simple blog tutorial which is the first.example in.cookbook before you move ahead.. On 19-Aug-2013

Re: Mile Johnson Uploader Question

2013-07-20 Thread Gaurav Matta
Once scaling is done use unlink to delete original file On 18-Jul-2013 11:47 PM, Advantage+ movepix...@gmail.com wrote: I have the plugin working and it's very great. ** ** Only question I have is currently I am trying to upload an image and scale that image to a fixed width, and create

Re: CakePHP - Empty $this-request-data array after Ajax POST

2013-07-02 Thread Gaurav Matta
http://itfeast.blogspot.in/2013/06/cakephp-send-multiple-elements-in-ajax.html?m=1 Follow above link might help you or see jshelper for this version of cake On 02-Jul-2013 7:56 PM, Juraj Vlk jua...@gmail.com wrote: I'm trying to save data which comes from Ajax POST request in JSON but There is

installing vamcart in existing cake php

2013-06-27 Thread gaurav thakur
Hello I was working on a site of Cake php which was successfully delivered.But recently Client again asked me to put the online shop module in it.I installed vamcart eCommerce plugin in webroot folder of main site .Now issue arising with session and log in ,admin had to log in again in

Re: Issues upgrading component from 1.x to 2.x

2013-06-22 Thread Gaurav Matta
Check component class it should extend. Component and not object On 22-Jun-2013 10:03 PM, Michael Gaiser mjgai...@gmail.com wrote: So I found this compoenent that I want to use as a base for some ideas I want to try, but unfortuanatly it seems to be setup for cake 1.2. I am getting errors

Re: Call function in form before save

2013-06-21 Thread Gaurav Matta
From what i can suggest from short desc.. Declare function In table model and call in beforesave() in model On 20-Jun-2013 9:39 PM, Renato Bigliazzi rebiglia...@gmail.com wrote: I have a form with some field. However there is a field that needs to be used as argument to a function to return a

Re: Error: Mysql requires a database connection

2013-06-18 Thread Gaurav Matta
Faced same error while migration of project from 1.2 to 2.x. Try clearing cache /App/temp/cache You will find some folders...like model,view etc..dont delete those but delete all files in them.. On 18-Jun-2013 6:54 PM, Raxit rajpandya1...@gmail.com wrote: *Hi, * *I am facing this problem

Re: How to edit a view in Cake php

2013-06-17 Thread Gaurav Matta
If you only want name of customers then you can add public $uses= array('product','customer'); as a datamember in your controller class And you can use $this-customer-find('all') in ur action Let me know if this helps On 17-Jun-2013 11:08 PM, Raks kaur@gmail.com wrote: Have added a new

Re: TreeView

2013-06-12 Thread Gaurav Matta
You can use self join in this case Table struct can be Id Catname Parent_cat Created Modified On 12-Jun-2013 4:28 PM, raj kumar Pustela pustela...@gmail.com wrote: Hi to all, i am struggle one thing, how to create treeview in cakephp and jquery to store the data in databse.

Re: Cannot access empty property in View.php on line 854

2013-06-12 Thread Gaurav Matta
Try if(!(empty())) On 13-Jun-2013 8:49 AM, alfredo davila davilaassadalfr...@gmail.com wrote: ok, this is my View call add.ctp h2Create an Account/h2 ?php echo $this-$form-create('User', array('action' = 'add')); echo $this-$form-input('username'); echo $this-$form-input('password',

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
Try Router::connect('/image/:action',array('controller'='photo')) On 10-Jun-2013 6:17 PM, Nikunj Amipara nikamipar...@gmail.com wrote: hi all, i have doubt regarding routing... i want to replace url : /photo/* with /image/* everywhere basically i want name of controller to be

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
In routes.php On 10-Jun-2013 6:17 PM, Nikunj Amipara nikamipar...@gmail.com wrote: hi all, i have doubt regarding routing... i want to replace url : /photo/* with /image/* everywhere basically i want name of controller to be replaced.. in addition /photo url should no longer

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
Can you provide a sample of urls which are not converting... i did that already it seems to work too but only at some places...i want photo/:action to be blocked completely On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta gauravgroup...@gmail.comwrote: In routes.php On 10-Jun-2013 6:17 PM

Re: Can somebody link an example of using Amazon S3?

2013-06-10 Thread Gaurav Matta
Follow and comment if you like http://itfeast.blogspot.in/2013/05/upload-files-to-amazon-s3simple-storage.html?m=1 Hell there! I'm new to Cake, and I'm working on a download site. I have it in my mind to use Amazon S3. Can any of you link me to fairly clear examples of implementing this? I'm sure

Please help!!! migration of user database from cakephp to core php

2013-05-08 Thread Gaurav Rajan
affected? 3. Will the users get to know about there accounts being shifted ? Will there be any loss of information? 4. Give me some idea about the cost that it might call for Thanks, Gaurav -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Re: Output to PDF with elements and styles

2013-01-24 Thread Gaurav Matta
Try mpdf On Jan 22, 2013 10:46 PM, Jeremy Burns jeremybu...@classoutfit.com wrote: I have an existing view that I want to output to PDF. I've looked at Ceeram's plugin and dompdf but they don't hit the mark for me. The existing view is built using elements which are not pulled in and there is

Re: help with layout error message

2008-07-19 Thread Gaurav Sharma
Yes, I actually had 3 forms on the page. 2 of them nested with JS for submit. I have now removed the forms and things look fine so far. On Sat, Jul 19, 2008 at 5:45 PM, . [EMAIL PROTECTED] wrote: Do you have more than 2 forms on a single page? I believe this was what caused this issue for me.

Re: I want gData

2007-11-06 Thread Gaurav Sharma
I second that. I think having wrappers for gData API will help spread cake as well. On Nov 6, 2007 7:11 PM, Mr-Yellow [EMAIL PROTECTED] wrote: https://trac.cakephp.org/ticket/723 I don't think it matters that gData is proprietry as it is now becoming a foundation for more open standards

RequiresPost method

2007-06-19 Thread Gaurav
Hi, I am new to Cake and to PHP as well. I haev a question about reuiresPost() method which supposedly takes list of actions which can only be triggered by a POST request. The way Cake bakes the code it uses same edit and add methods to do 2 things: 1.) present form to user to add or edit (if