Re: [Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-14 Thread John Andersen
Check your model names in the HABTM relationships. Looks like you have a mix of singular and plural. Enjoy, John On Monday, 14 March 2016 05:33:36 UTC+2, Steffen Reinig wrote: > > Hello Cakephp Fans, > > today i receive these error: > > Notice (8): Undefined index: Use

Re: Remove first from collections

2016-02-29 Thread John Andersen
I deletion is not possible, would the skip method work for you? *http://book.cakephp.org/3.0/en/core-libraries/collections.html#Cake\Collection\Collection::skip* Enjoy, John On Thursday, 25 February 2016 16:56:27 UTC+2, Rafael Santos wrote: > > Hi, > i'm using CakePHP's C

Re: $this->render('index');

2016-02-08 Thread John Andersen
Is that the whole search method in your controller? If yes, then the render call is inside the if statement at the beginning and will thus not be invoked due to the return statement just after the if statement. Enjoy, John On Saturday, 30 January 2016 06:32:22 UTC+2, Maxwell Ochieng wrote

Re: Error in Database Connection BUT dabase.php is correct

2016-02-08 Thread John Andersen
Check that your user "user" has permissions to use the databases. Enjoy, John On Sunday, 7 February 2016 18:48:33 UTC+2, Douglas Diniz Landim wrote: > > It was a site that was running on a host. > > This accommodation accidentally got deleted the domain for the site. > &

Re: CAKE PHP TUTORIAL FOR BEGINNERS

2016-02-08 Thread John Andersen
Hi Priyatam Saha Which version of CakePHP have you downloaded and installed? Which tutorial have you followed? Enjoy, John On Sunday, 7 February 2016 18:48:33 UTC+2, priyatam saha wrote: > > Dear sir, >I am a new commer to cakephp.I have download and installed cakephp.Now > I

Hash::get() & Hash::extract()

2016-01-29 Thread John Fernandes
Hi, I am a noob at CakePHP. I have the following array: $fooArray = Array ( [0] => Array ( [Foo] => Array ( [foo_id] => 100 [foo_role_id] => 10 ) ) ) I looked at the Hash::get() & Hash::extr

Re: CakehasM 3 hasMany -> always empty

2016-01-07 Thread John Andersen
Hi Bogdan Is the below correct? To me it does not seem correct :) $this->belongsTo('Contract', [ 'className' => 'Tranquillity.Contract', Enjoy, John On Thursday, 7 January 2016 13:01:30 UTC+2, Bogdan Soos wrote: > > Hi there, > >

Re: Route is overwriting routes of same controller

2016-01-03 Thread John Andersen
start with a real controllers' name. You could use other words instead of catalogs. Did the above help you solve your issue? Enjoy, John On Monday, 28 December 2015 11:31:33 UTC+2, Sven Mäurer wrote: > > Is it right that all other routes of the same controller are overwritten > i

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread John Andersen
As Matthew wrote, use the Neighbor function. See the CakePHP book in this page: http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#find-neighbors Enjoy, John On Tuesday, 29 December 2015 00:54:37 UTC+2, Clement Crownrise wrote: > > Thanks for your response, but please what

Re: Access development server from another (local) computer

2015-12-22 Thread John Andersen
localhost. Tell what you have tried and how far you got :) Enjoy, John On Tuesday, 22 December 2015 12:39:13 UTC+2, Ken Hargy wrote: > > I'm new to CakePHP so maybe I'm missing something obvious... I set > everything up as expected and I ran: > > bin/cake server > > e

Re: Adding a non incremental primary key

2015-11-20 Thread John Andersen
Does your product code contain meanings, ie. part of the product code symbolized something specific? If so, I would just go with a normal auto-incrementing primary key and just make the product code a unique column in the table. Enjoy, John On Friday, 20 November 2015 13:53:12 UTC+2, Jireh

Re: can you help me how to create highcharts in cakephp

2015-11-20 Thread John Andersen
What have you done yourself? How far have you gone? What errors are you having? Enjoy, John On Friday, 20 November 2015 13:53:41 UTC+2, Deepak Mishra wrote: > > can you help me how to create highcharts in cakephp plz help me > -- Like Us on FaceBook https://www.facebook.com/CakePHP F

Re: CakePHP is NOT able to connect to the database.

2015-11-20 Thread John Andersen
Have you verified your credentials? Do they work for connecting to the database outside of CakePHP? Is your database configuration setup correctly? Kindly enlighten us :) John On Friday, 20 November 2015 13:53:12 UTC+2, pavan ganvani wrote: > > > -- Like Us on FaceBook https://www.fac

Re: belongsToMany issue

2015-10-26 Thread John Andersen
Is your Achievements class an extension of the Table class? I did not see that in your original post. Enjoy, John On Monday, 26 October 2015 19:39:21 UTC+2, lorenzoshake wrote: > > > > Il giorno lunedì 26 ottobre 2015 18:19:01 UTC+1, John Andersen ha scritto: >> >> Check

Re: belongsToMany issue

2015-10-26 Thread John Andersen
Check your model associations - is any of them relying on CakePHP identifying the keys? Check your queries - is any of them specifying the offending column? Enjoy, John On Monday, 26 October 2015 18:44:29 UTC+2, lorenzoshake wrote: > > i 've a strange assoc problem: > > c

Re: Cakephp Inline Editing

2015-10-23 Thread John Andersen
In your code you are already using $stop as an array: $this->set('stop',$stop['Leave']['event_stop_time']); so when you try to calculate the $hours, then you have an array - a value :) Try and fix that! Enjoy, John On Friday, 23 October 2015 12:4

Re: Inserting different data into each row using Hash (or some other way to do what I need!) [CakePHP 2.7.X]

2015-10-12 Thread John Andersen
You are welcome MarkB And thank you for reporting back :) John On Monday, 12 October 2015 17:49:43 UTC+3, MarkB wrote: > > And that is exactly the information I needed - I WAS going about it the > wrong way, and that 'multiple relations' link you provided set me straight.

Re: CakePHP 3 Auth with two tables (models)

2015-10-07 Thread John Andersen
in another roles table, in case you in the future will have other kind of users. Having one table with users, you may later be able to implement some ACL features. See the CakePHP book for that. Hope this helps you on the way, enjoy, John On Wednesday, 7 October 2015 05:31:25 UTC+3, Hagler

Re: Inserting different data into each row using Hash (or some other way to do what I need!) [CakePHP 2.7.X]

2015-10-06 Thread John Andersen
(User). Check also the use of Containable in your models. It will make your life easier in my opinion. http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html Enjoy, John On Tuesday, 6 October 2015 17:13:59 UTC+3, MarkB wrote: > > Hi, > > Over the past year I have

Re: Query showing all data

2015-10-02 Thread John Andersen
Do you still have this issue? What have you tried to do to solve it? - try the SQL statement in phpMyAdmin directly using a know value for "eireceiver"! - try replacing '$matriid' with a known value, ie. that you know is in the database! Kindly inform us of the resul

Re: CakePHP 3.1: Login with Username or Email?

2015-09-25 Thread John Andersen
Goodle it: http://stackoverflow.com/questions/30648852/login-with-username-or-email-with-cakephp-3 On Friday, 25 September 2015 22:07:19 UTC+3, Salines wrote: > > Can any of the core CakePHP developers explain to us in what manner we can > perform user authentication with username or email plus p

Re: Não estou conseguindo usar o plugin CakePtbr para pluralização

2015-09-23 Thread John Andersen
Check the name of the plugin everywhere!! CakePrbr or CakePtbr or ??? Enjoy, John On Wednesday, 23 September 2015 14:06:20 UTC+3, Andre Luis Sa wrote: > > Estou usando o cakephp 3.0 e venho tentando utilizar o plugin CakePtbr > para corrigir a pluralização e fazer a tradução. &g

Re: get Data from db in index.php

2015-09-22 Thread John Andersen
Hi Lakshmana What version of CakePHP are you using? Have you looked in the CakePHP book? Kind regards John On Tuesday, 22 September 2015 10:23:50 UTC+3, Lakshmana Katragadda wrote: > > hi guys > > i am new to CakePHP.how to get data from db to select box in index.php . > an

Re: Check user status fails

2015-08-24 Thread John Andersen
Did you find a solution to your status problem? If not, please provide more information - like when are you testing for the status value? During login or? Are you testing with a user that you know has the expected status in the database? Does the website show the same value? Enjoy, John On

Re: CakePHP 1.3 Shell can't find AppModel class

2015-07-29 Thread John Andersen
This was solved in Stack Overflow. -- 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 from this group and stop receiving emails from

Re: Check tax code (fiscal code) when insert a user

2015-07-13 Thread John Andersen
If you are storing the fiscal code in a database, make the column unique and then the database will inform you if you are trying to insert a fiscal code that already exists. Enjoy, John On Tuesday, 30 June 2015 21:27:38 UTC+3, Andrea Manca wrote: > > Hi all, > > i'm new to

Re: XML output

2015-07-13 Thread John Andersen
Take a look in the CakePHP book 2.x at this location http://book.cakephp.org/2.0/en/views/json-and-xml-views.html#using-a-data-view-with-view-files The solution is written in the "class XmlView" section :) Enjoy, John On Tuesday, 30 June 2015 16:43:25 UTC+3, Juan Ezquerro LLanes wrot

Re: Assets via IP working but not with domain

2015-07-13 Thread John Andersen
Hi Sven Have you fixed your issue? In case you have, what was the solution? In the case you haven't - when you access it via IP how exactly are you doing that? http://-ip address- or something else? How are you trying to access it using the URL? Enjoy, John On Tuesday, 30 June 2015 12:

Re: One Webroot Multiple Apps

2015-05-21 Thread John Andersen
/she will have access to and can either redirect directly in the case of only one site, or provide a list of sites for the customer/administrator to choose from. Would that help you? Enjoy, John On Wednesday, 20 May 2015 22:15:09 UTC+3, April DeRossett wrote: > > Yes, they are identified

Re: One Webroot Multiple Apps

2015-05-20 Thread John Andersen
Are the customers and administrators being identified before they can access their respective sites? Are there any other actors that may access the sites without being identified? Enjoy, John On Wednesday, 20 May 2015 19:23:09 UTC+3, April DeRossett wrote: > > I have found many discussi

Re: Iimplement ACL plugin in cakephp 3

2015-05-04 Thread John Andersen
Please provide more information on what you have tried and what are the issues you are facing! Do you understand about creating a plugin in CakePHP 3? Have you an understanding of ACL? How far are you with the plugin and where are you stuck? Enjoy, John On Monday, 4 May 2015 10:58:46 UTC+3

Re: Cakephp 3.x Validation Error issue

2015-04-23 Thread John Andersen
and whatever else that may help us understand your problem. Kind regards John Aage Andersen On Wednesday, 22 April 2015 01:30:20 UTC+3, Cake Developer wrote: > > Hi, > > I am facing issue on form input validations errors. my input fields are > following > > $this->Form-&

Re: $uses load just the first parameter

2015-04-19 Thread John Andersen
Please provide more information on what you are doing and which CakePHP version you are using. How are you reading the data from the models? Show us the code. Have you studied the CakePHP book for advice? Read up on how the retrieve data from the model. Enjoy, John On Friday, 17 April 2015

Re: [Cake 2.6.3] Cake's FileUpload Validation not working; what is wrong?

2015-04-13 Thread John Andersen
The validation in your model points to a field named "image", but the view you have points to a field named "submittedFile" :) Which is the correct one? Enjoy, John On Monday, 13 April 2015 11:17:13 UTC+3, Willem wrote: > > I have a model "Attachment" whi

Re: Export CSV with CakePHP

2015-04-08 Thread John Andersen
This looks suspicious to me url:webroot('leads/Leads/export'), Should it not be only /leads/export in order to reach your controller method? Enjoy, John On Monday, 6 April 2015 21:08:10 UTC+3, michel martins wrote: > > Hi people! > > Well, recently I started working wit

Re: Retrieving data from different models on passing different parameters in cakephp for advance search feature

2015-04-04 Thread John Andersen
, John On Friday, 3 April 2015 20:14:29 UTC+3, Apoorva Purohit wrote: > > I have made code with all data through different models but data based on > ids is not relevant. > What to do? > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twit

Re: How can run cakephp inside a cakephp

2015-03-03 Thread John Andersen
Why would you like to do that? What is the purpose? Place them as: root + Cake1 + Cake2 + App1 using Cake1 + App2 using Cake1 + App3 using Cake2 ... etc. That at least is how I would have them installed if I had two CakePHP versions to use. Any other having different ideas? Enjoy, John On

Re: OnChange event wont work in cakephp

2015-02-27 Thread John Andersen
The onChange event is happening in the browser, so is not really related to CakePHP. Please show the how code for the page, when it has been rendered in the browser. This may help us and you to understand what may have gone wrong with your code. Enjoy, John On Friday, 27 February 2015 16:06

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-02-11 Thread John Andersen
who logs in. Yes, password should be 40 characters long when using that password hasher. Please correct your users table and see if it now solves your issue. Please also inform back here so other having the same issue may know. Thanks and enjoy, John On Wednesday, 11 February 2015 10:06:16 UTC

Re: How to default my site to cakephp app

2015-02-10 Thread John Andersen
Pointer - check the Routes section of the CakePHP book - that should help you on the way to find a solution: http://book.cakephp.org/2.0/en/getting-started.html#routes Enjoy, John On Tuesday, 10 February 2015 03:23:36 UTC+2, alfons...@hotmail.com wrote: > > Hello, > I am starting wit

Re: empty controller/component directory

2015-02-09 Thread John Andersen
Check your CakePHP 2.x for the BlowfishPasswordHasher. It should be located in the path: /lib/Cake/Controller/Component/Auth At least that is where I found it in CakePHP 2.6. Enjoy, John On Sunday, 8 February 2015 21:21:59 UTC+2, vampke wrote: > > Hi, > > I just started with th

Re: Correct model associations

2015-02-09 Thread John Andersen
to the books table and user_id is a reference to the users table. Enjoy, John On Friday, 6 February 2015 22:46:08 UTC+2, gt0p wrote: > > I am trying to bind 3 tables and I am having problems with proper > relations. > Table users (pk id), books (pk id), users_books (user

Re: CakePHP 2.6 Controllers with New Folder Structure

2015-02-05 Thread John Andersen
roducts' . DS))); and so on. That should set it up with the full path as the book says it needs. Please try and report back :) Enjoy, John On 5 February 2015 at 21:15, Shiv Modi > wrote: Hi John, I tried that one as well but not getting desired results. Regards, Shiv On Thursday, 5

Re: CakePHP 2.6 Controllers with New Folder Structure

2015-02-05 Thread John Andersen
27;, '/Model/Products/'), Do the same for Controller and View entries. Enjoy, John On Thursday, 5 February 2015 12:24:41 UTC+2, Shiv Modi wrote: > > Hi, > > I am using CakePHP 2.6 and want to make two sub-folders, Products and > Customers in app/Controller , Model an

Re: Cakephp 3.0 upgrade from 1.3 where to begin??

2015-02-04 Thread John Andersen
://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html Anyone else have some other suggestions? Enjoy, John On Wednesday, 4 February 2015 05:09:12 UTC+2, Robert Gravel wrote: > > Hi all, > I want to migrate my application currently in cakephp 1.3 to 3.0 . I just > do not know wh

Re: How to validate if associated Model exists when saving

2015-01-27 Thread John Andersen
In addition - should the UI not ensure that you choose a Customer or has a customer already chosen before you start an Order? Enjoy, John On Tuesday, 27 January 2015 06:05:26 UTC+2, JP wrote: > > Suppose I have an 'Order' model associated with the 'Customer' model.

Re: How to validate if associated Model exists when saving

2015-01-27 Thread John Andersen
In my opinion, that should be caught by the database, so CakePHP just need to catch that and inform you back. Is that actually implemented in CakePHP? Which version of CakePHP are you running? Enjoy, John On Tuesday, 27 January 2015 06:05:26 UTC+2, JP wrote: > > Suppose I have an

Re: cant send email with this provider

2015-01-26 Thread John Andersen
Please ensure that you are using the settings that applies to your mail provider. Enjoy, John On Monday, 26 January 2015 16:01:46 UTC+2, ajt wrote: > > Hi, > > My email code for cakephp worked fine when I used gmail but not for this > provider below. > I am not sure what to do

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-15 Thread John Andersen
ry to login only once and check your database to see whether or not the password has changed value to something If the password in the table has changed, then comment out the above code and try to login again using password 123. Enjoy, John On Thursday, 15 January 2015 16:37:37 UTC+2, tech_

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-14 Thread John Andersen
Use the password hasher to hash your password, then save it instead of "123" and it should work. See the CakePHP book at this location for the password hasher: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords Enjoy, John On Sunday, 11 Ja

Re: Can't seem to get simple HABTM to save...

2015-01-11 Thread John Andersen
Hi Jake Does your events_posts table have a primary key, that is a column named id used for the primary key? If not, then please add such and try again :) Enjoy, John On Sunday, 11 January 2015 16:45:30 UTC+2, Jake Newsom wrote: > > So I have 2 models, Posts and Events. > > Mo

Re: belongsTo custom condition not working

2015-01-08 Thread John Andersen
Before starting thinking on how CakePHP should work, make sure you have designed your database models for the situations you wish it to cover. Do you have the option to redesign your database on the above? Enjoy, John -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twit

Re: belongsTo custom condition not working

2015-01-08 Thread John Andersen
, John -- 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 from this group and stop receiving emails from it, send an email t

Re: belongsTo custom condition not working

2015-01-08 Thread John Andersen
els. Try it out and keep us informed of the result :) Enjoy, John Just need the On Thursday, 8 January 2015 01:35:14 UTC+2, Matt Myers wrote: > > John, > > I have another similar challenge I’m working on and I thought you may be > able to help. > > Here’s my stackoverflow: &g

Re: CakePHP routes always pointing to same action

2015-01-07 Thread John Andersen
Amendment! If you really have a slug in the second URL, then please amend the routing to: Router::connect('/article/slug-post/:slug', ... rest of your definition...); Enjoy, John On Wednesday, 7 January 2015 21:13:12 UTC+2, John Andersen wrote: > > Both your route configuration

Re: CakePHP routes always pointing to same action

2015-01-07 Thread John Andersen
7;, ...rest of your definition...); Kindly inform us whether or not that solved your problem :) Enjoy, John On Wednesday, 7 January 2015 03:34:43 UTC+2, Lợi Nguyễn Đình wrote: > > I am facing some problems in routing under cakephp > there are two actions in my controller > they are as b

Re: cakephp-3.0.0-beta3 Fatal error: Class 'Locale' not found in \cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php on line 229

2015-01-02 Thread John Andersen
I see you got the answer in another thread, so ignore my previous post :) Enjoy, John -- 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"

Re: cakephp-3.0.0-beta3 Fatal error: Class 'Locale' not found in \cakephp-3.0.0-beta3\vendor\cakephp\cakephp\src\I18n\I18n.php on line 229

2015-01-02 Thread John Andersen
-beta3 and followed the quick guide, installed it successfully, then pointed my webservers documentroot at the webroot folder and voila, it just worked. Enjoy, John On Friday, 2 January 2015 02:37:01 UTC+2, Lorne Dudley wrote: > > I am a novice cakephp user who just downloaded the 3.0.0

Re: 1.3 Migration Question re:NULL and Defaults

2014-12-30 Thread John Andersen
You could probably use the BeforeSave method to modify the values, so as to replace 'NULL' with null or remove the field entirely in the array. Enjoy, John [snip] -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You rec

Re: 1.3 Migration Question re:NULL and Defaults

2014-12-30 Thread John Andersen
statement look like? What fields are in the data array that you try to save? Enjoy, John On Tuesday, 30 December 2014 22:50:11 UTC+2, MikeK wrote: > > I also ran the legacy code with some SQL log dumping and it seems to me > the old code did NOT attempt an INSERT with the values of the uns

Re: 1.3 Migration Question re:NULL and Defaults

2014-12-30 Thread John Andersen
value to the default one. Enjoy, John On Tuesday, 30 December 2014 20:18:03 UTC+2, MikeK wrote: > > I am porting a 1.2.0.5875 app to 1.3 in preparation for moving to 2.X. I > have several fields (tax, amount, fee) in an order record all with NULL set > to "No", each is a d

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-29 Thread John Andersen
It does work in MySQL though, so it should work in CakePHP also :) Enjoy, John On Monday, 29 December 2014 14:42:38 UTC+2, John Andersen wrote: > > Assuming I understand it correctly, then you want to query your posts, so > that any event_date having a month = 12 and a day = 29, not ta

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-29 Thread John Andersen
;conditions' => array( 'MONTH(Post.event_date)' => 12, 'DAY(Post.event_date)' => 29 ))); Would that work for you? Haven't tested it as I do not have a 2.x version running. Enjoy, John On Monday, 29 December 2014 11:15:46 UTC+2, Salines wrote: > > $th

Re: cant send email

2014-12-28 Thread John Andersen
Remove 'Email' from your components list and try again. Kindly inform us of the result. Enjoy, John On Monday, 29 December 2014 09:27:35 UTC+2, ajt wrote: > > > > I cant send an email as I get a generic error > *Error: * An Internal Error Has Occurred. > > In con

Re: CakePHP 2.5.*- Find all posts by current month and day (m-d)

2014-12-28 Thread John Andersen
Please provide more information. What does your find statement look like? What is the definition (column definition in the table) of the datetime/date field that you are querying against? Enjoy, John On Monday, 29 December 2014 00:23:10 UTC+2, Salines wrote: > > I need to select all the

Re: cake events

2014-12-28 Thread John Andersen
Thanks mark Looks interesting, will certainly see what else can be done with push. Hope anyway that our previous text helped with finding a solution. Enjoy, John On Saturday, 27 December 2014 22:06:15 UTC+2, euromark wrote: > > For a small community application I also still ajax PULL e

Re: cake events

2014-12-27 Thread John Andersen
That would not be possible as A's and B's sessions knows nothing of each other and only are running when a request is processed. What you could do is to have a small ajax script pulling the unread count every so often. Enjoy, John On Saturday, 27 December 2014 10:01:27 UTC+2, . . wro

Re: Cakephp: 1 core 1 app many webroot?

2014-12-24 Thread John Andersen
#sharing-cakephp-libraries-with-multiple-applications Enjoy, John On Wednesday, 24 December 2014 04:51:56 UTC+2, Banny Muth wrote: > > Hi I'm a new born programmer trying to build a system that user can > register then get a free prebuild system( sample webroot) that i make. > The pr

Re: Is there any proper guide to move cakephp from server to another.

2014-12-23 Thread John Andersen
What version of CakePHP do you have on the server? What kind of database, if any, are your site using? Enjoy, John On Tuesday, 23 December 2014 16:56:55 UTC+2, Bhargav Mehta wrote: > > Hi, > I am new to cakephp and want to move my site from one server to another. > How can this be do

Re: How to associate 3 models (or structure a search) to achieve the following structure (Cake 2.x)

2014-12-22 Thread John Andersen
interest, then it will be easier for us to help you :) Enjoy, John On Sunday, 21 December 2014 01:33:43 UTC+2, Chris wrote: > > Hi all! > > I'm quite new to Cake and this is my first project. > > I'm working on a customer database. For larger business customers the

Re: Routing to 2 controllers?

2014-12-21 Thread John Andersen
s and logging them in" which contains a code example of the login method for your usage. As Andrew wrote, it should then be simple for you to implement an IF statement (or other) and redirect the user to the correct URL of your appilcation. Enjoy, John On Sunday, 21 December 2014 12:5

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2014-12-18 Thread John Andersen
add one user, so that CakePHP has something to work with. Enjoy, John On Wednesday, 17 December 2014 14:14:43 UTC+2, tech_me wrote: > > I posted to SO several days ago, but no expected replies. > http://stackoverflow.com/q/27403391 > > I am now using PHPTAL <http://phptal.or

Re: Not allowed use mod_rewrite... Trying to get pretty urls to work... No css or js

2014-12-18 Thread John Andersen
Check the DocumentRoot statement - you have a "t" too much "mydomaint" should "mydomain" The same in your > Thinking... I wanted to add the following info: > > > ServerName mydomain > ServerAlias mydomain.tld > DocumentRoot "E:/mydomaint/app/webroot" > > Options Indexes

Re: Save not escape only field CakePHP 2

2014-12-16 Thread John Andersen
/source-class-DboSource.html#974-1021 Enjoy, John On Tuesday, 16 December 2014 16:56:58 UTC+2, euromark wrote: > > Actually, the save() etc don't modify your data. > They simply store it the same way you give it to them. > It might only be displayed this way in your sql backend. >

Re: Save not escape only field CakePHP 2

2014-12-15 Thread John Andersen
CakePHP book: http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-query Why do you need the content to be non-escaped in the database? Enjoy, John On Monday, 15 December 2014 15:11:50 UTC+2, Rafael Queiroz wrote: > > Hi guys, > > I mockup this data for save: > >

Re: moving cakephp to a new server

2014-12-11 Thread John Andersen
Hi Enrique Is your webserver setup so that the root of your site points to the \app\webroot folder? You have to give us more information on how your setup is; what CakePHP version you are using; etc. :) Enjoy, John On Wednesday, 10 December 2014 07:15:25 UTC+2, Enrique Martinez wrote

Re: Auth infinite redirect

2014-12-11 Thread John Andersen
Hi Felipe Turn on debugging and tell us what this $this->Auth->redirectUrl() returns in your login method. Enjoy, John On Thursday, 11 December 2014 19:36:30 UTC+2, Felipe Silveira wrote: > > Hello everybody, > > I have a problem with Auth which is well known, researched e

Re: CakePHP 1.3 Multiple checkbox setting div to false not working

2014-12-05 Thread John Andersen
The CakePHP book states: Disabling div output: Form->input('User.name', array('div' => false));?> Please try the above, enjoy, John [snip] -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Re: how to let the options arrays to be horizontal?

2014-12-05 Thread John Andersen
Use CSS to style your radio buttons into a horizontal layout. Enjoy, John On Friday, 5 December 2014 08:05:33 UTC+2, zhoh...@gmail.com wrote: > > > <https://lh5.googleusercontent.com/-QQqZW6Cmd_U/VIEu-I8fV9I/AAM/T9Qi-pDXXEw/s1600/84F56212-5D30-47CC-9243-3FD4061CE582.png>

Re: blog tutorial errors

2014-11-28 Thread John Andersen
screenshots if possible. Thanks in advance Enjoy, John On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote: > > Hello ! > > I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn > by tutorial. > > The blog tutorial at > http://book.cakephp.

Re: hasMany and find()

2014-11-22 Thread John Andersen
Congratulations Kento :) [snip] -- 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 from this group and stop receiving emails from it,

Re: hasMany and find()

2014-11-17 Thread John Andersen
in the child table, then uses that SQL statement as a condition for finding all parent records with the id not being found by the previous SQL statement. Hope that helps you out :) Enjoy, John On Monday, 17 November 2014 06:05:48 UTC+2, Kento Furui wrote: > > Thank you John. > >

Re: Looking for a "is form dirty" plugin

2014-11-14 Thread John Andersen
Take a look for a client side check for form data has changed. Google it and you will find a lot of options. Enjoy, John On Friday, 7 November 2014 19:27:24 UTC+2, glk wrote: > > Hello everyone, > > I'm looking for some type of plugin that will let me find out in the > contr

Re: hasMany and find()

2014-11-14 Thread John Andersen
Assuming you are using CakePHP 2.x, then please take a look at the counterCache feature. http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#countercache-cache-your-count Implement it and then you can use a condition where the counterCache count = 0. Enjoy, John On

Re: validation criteria at least 3 fileds are not empty

2014-10-26 Thread John Andersen
you find a solution in the end. Enjoy, John On Thursday, 23 October 2014 12:12:11 UTC+3, Radharadhya Dasa wrote: > > I checked to cookbook and find out that validation handles singe fields. > So I used beforeSave for this. > > public function beforeSave(Event $event, Entity $enti

Re: Unable to retrieve data in browser from the *.ctp files

2014-10-19 Thread John Andersen
Please clarify how you are trying to reach the Posts index view in your browser. I assume that you are reaching it by using an URL similar to this: "http://localhost/posts/index"; Enjoy, John On Saturday, 18 October 2014 01:24:30 UTC+3, shesar wrote: > > I have added the model

Re: validation criteria at least 3 fileds are not empty

2014-10-18 Thread John Andersen
Assuming you are still using CakePHP 3.0 I have not seen any built-in rules for this kind of validation, so my best guess is to roll your own. See section "Custom Validation Rules" under "Validation" in the CakePHP 3.0 book. That should help you on the way. Enjoy, John On

Re: Problem with creating triggers using query() and rawQuery()

2014-10-16 Thread John Andersen
Please verify that your code will work directly in a console against the database. For examply by using phpMyAdmin and run the code in there. Kindly inform us of the result Enjoy, John On Tuesday, 14 October 2014 13:57:28 UTC+3, Prashant wrote: > > Hi, > > I am writing a inst

Re: belongsTo custom condition not working

2014-10-15 Thread John Andersen
444 ) [LinkedinRecommendation] => Array ( [0] => Array ( [id] => 8 [content] => Recommendation 8 [linkedin_id] => 444

Re: Web service login function to check authenticate user in cakephp

2014-10-14 Thread John Andersen
The error message clearly states that the issue is with the missing Posts controller. But you states that the method is in the Users controller. Check your code. Enjoy, John On Saturday, 11 October 2014 00:33:54 UTC+3, Sam wrote: > > I am writing a web service to authenticate whether

Re: belongsTo custom condition not working

2014-10-14 Thread John Andersen
I hear mean the purpose of the column? What version of CakePHP are you using? Kind regards John On Monday, 13 October 2014 22:09:11 UTC+3, Matt Myers wrote: > > // in LinkedinPerson > public $hasMany = array( > 'LinkedinRecommendation' => array( > 

Directories in tmp directory deleted

2014-10-14 Thread John Tadros
deleted. Any ideas? Regards John -- 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 from this group and stop receiving e

Re: report dispaly

2014-10-03 Thread John Andersen
Please clarify what you want to do with CakePHP. Are you considering developing a survey site? Enjoy, John On Wednesday, 1 October 2014 12:13:26 UTC+3, Nizeyimana Eugene wrote: > > Am using cakephp to display my report and i want to display without > repetiton (for instance survey may

Re: Acl check not logged in user accessable url

2014-10-03 Thread John Andersen
Please rephrase your question or show us an example of what you can get and describe what you cannot get :) Enjoy, John On Monday, 29 September 2014 06:54:57 UTC+3, kani wrote: > > i can get current controller allowed actions but how get all allowed > actions from any controller. >

Re: The (bad) perception and image of CakePHP in the public

2014-10-02 Thread John
I've met a guy two years ago that insisted CakePHP's documentation is crap. Turns out he was looking at the API. The API is the first link when you click on the documentation link, contains sublinks for all versions and even worse "book" can be mistaken for something like a paper book instead o

Re: The (bad) perception and image of CakePHP in the public

2014-10-01 Thread John Sposato
I think it's interesting that some people say the docs are terrible and others list documentation as a reason why it's cool or productive. If you're build a blog application that will only do simple relationships and not a lot of complex things, the documentation is great. However, we typicall

Re: Paginate Sort on columns from related tables

2014-09-03 Thread John Sposato
']; > > Then in your Paginator options you can add: > > $this->Paginator->settings['link'] = ['Patient' => ['CareGiver']]; > > This will probably help you getting the models in the same query so you > can sort by them. > > On Thur

Re: Paginate Sort on columns from related tables

2014-09-02 Thread John Sposato
Any ideas? On Thursday, August 28, 2014 9:54:01 AM UTC-4, John Sposato wrote: > > We are having some issues getting this to work, is it possible? > > For example, > > We have a Patient model with a HABTM relationship to CareGiver. And a > PatientCase model that belong

Re: Why CakePHP ?

2014-09-02 Thread John Sposato
When you say JAVA, I assume you mean a JAVA framework (Spring, Grails, etc.) since I don't believe you can write a web application is straight JAVA (I may be wrong). CakePHP is a framework, which follows the Model/View/Controller pattern. The developers of the framework have abstracted away a

Paginate Sort on columns from related tables

2014-08-28 Thread John Sposato
We are having some issues getting this to work, is it possible? For example, We have a Patient model with a HABTM relationship to CareGiver. And a PatientCase model that belongs to Patient with the hasMany to it from Patient. Both HABTM relationships are setup and are correct. On the patie

  1   2   3   4   5   6   7   8   9   10   >