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
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
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
$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
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`,
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
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
Try with this:
echo $this-Form-input(
'birthdate',
array (
'label'= false,
'dateFormat' = 'DD-MM-',
'minYear' = date('Y') - 100,
'maxYear' =
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
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
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,
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:
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
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
, 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
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
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
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.
, 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
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
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
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
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
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
@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
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
@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
@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
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
(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
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
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
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
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
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
$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
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
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
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
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
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
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
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
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
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.
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',
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
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
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
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
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
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
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.
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
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
55 matches
Mail list logo