I've recently updated my application to 3.1.2 from 3.1.1. I'm encountering
an exception:
Exception: Cannot convert value to bool in
[PATHTO\vendor\cakephp\cakephp\src\Database\Type\BoolType.php, line 47]
I'm using MySQL and SQLite for database.
This error didn't occur in 3.1.1
When I
hey guys, is there a way to filter associated results with 2 tags?
http://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#filtering-by-associated-data
The documentation only shows 1 tag to filter. I'm hoping to filter with 2
tags, like articles with Finance and Tips tag.
--
Hi,
I'm relatively new to Cake3.
I have a situation where I have a modelless form that submits data to
another server for validation. When I receive the validation errors from
the server, I need to be able to invalidate the Form Inputs based on the
feedback from the server.
How do I best
-setErrors([email = [_required = Your email is required]]);
Now, you can individually invalidate any form fields from the controller,
without a model and the validator class.
On Wednesday, 4 March 2015 17:24:48 UTC+8, ProFire wrote:
Hi,
I'm relatively new to Cake3.
I have a situation where I
I've resorted to using the following codes:
$routes-extensions(['json']);
$routes-connect('/api/:controller/:action/*', []);
That way, I can specify any name for the action in the controller. Is this
advisable as a way to do API?
On Saturday, 21 February 2015 17:26:55 UTC+8, ProFire wrote
Hi,
I have been reading up on the Cake Tutorial for
REST:http://book.cakephp.org/3.0/en/development/rest.html
It seems to be working great.
I have plans to implement more than the 6 available methods in
http://book.cakephp.org/3.0/en/development/routing.html#resource-routes
Such as:
I used to use the attached datasource, heavily modified from Cake1.3
In the config file, these are the settings
public $oracle = array(
'datasource' = 'Database/Oracle',
'driver' = 'oracle',
'connect' = 'oci_pconnect',
'persistent' = false,
'host' =
Hey Guys,
I was just testing out CakePHP 2.1 and I noticed a weird behaviour.
I copied the entire fresh CakePHP folder into a subfolder of my apache
webroot called cakephp 2.1 (with Space) and CakePHP threw me an
error.
Error: Cakephp%202.1Controller could not be found.
When I removed the
app needing the above, if it does not have them, it should
work fine.
Parts could be tuned for 2.1 eg blocks, events...
- S
On 17 Feb 2012 05:55, ProFire profir...@hotmail.com wrote:
Hey Guys,
I was just testing out CakePHP 2.1 and I noticed a weird behaviour.
I copied
much everyone!
On Apr 11, 11:07 am, Dr. Loboto drlob...@gmail.com wrote:
With debug 2 and cacheQueries = false nothing is saved and this
source of leaks is eliminated.
On Apr 9, 2:01 am, Ryan Schmidt google-2...@ryandesign.com wrote:
On Apr 8, 2011, at 07:18, ProFire wrote:
Well
Well, whether it's memory leaks or not, I'm experiencing a memory
exhaustion.
The code would look like this:
$memorySize = memory_get_usage();// X bytes
$this-model-save($this-data);
$memorySize = memory_get_usage();// X + 2000 bytes
$this-model-create();
$memorySize = memory_get_usage();// X +
Hello Fellow Bakers!
I have developed an application to generate a family tree.
In one of my models, I have attached Tree Behaviour.
However, during my development, I encountered a memory exhaustion.
I noticed that in some of my data sets, I have more than 1 million
population to generate.
The
Hi fellow cakephpers,
I've been a long time user of CakePHP and I've been satisfied since I
first tried it. In fact, there's no more turning back for me ever
since I started it. No framework matches CakePHP when it comes to ease
of development.
However, very recently, I've encountered a problem
I use a single http request.
On Feb 21, 11:32 pm, Maurits van der Schee maur...@vdschee.nl wrote:
Hi,
Do you use a single http request or multiple invoked by a javascript timer?
Regards,
Maurits
On 02/21/2011 02:49 PM, ProFire wrote:
Hi fellowcakephpers,
I've been a long time
You probably need to check your code.
Somewhere before PHP processes the redirect, there is an echo
somewhere.
If my guess is right, you have a debugging message before your
redirect.
Have a look at your Controller::beforeFilter() too in your controller
and AppController.
Even your model too if
Hi, I've been a cakephp user for a really long time and I really love
this framework.
Recently, my company wants a modification on a project that uses an
old framework. On top of that, there are other frameworks for a few
other different projects. It is only a matter of time these projects
need
I use winhttrack to download all book and the entire API.
However, before of the book when you download it. Try to exclude the
other language versions of the book and the mobile version as it will
increase the download volume by 23times...
http://www.httrack.com/
On Dec 3, 6:42 pm, Lorenzo
I'm gonna mirror the entire website for memories!!!
Damn! CakePHP is AWESOME! Even in Halloween!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
I'm experiencing the same problem.
I don't think it's a permission problem but PHP version problem.
The developer's machine is using PHP5 while the live machine uses
PHP4.
Could this be the problem?
Anybody have a solution to this?
On Feb 22, 5:42 am, jer2665 jeremyhalvor...@gmail.com wrote:
don't bother me yet.
I think I'm going to put a ticket for this.
On Mar 21, 11:25 pm, ProFire profir...@hotmail.com wrote:
I'm experiencing the same problem.
I don't think it's a permission problem but PHP version problem.
The developer's machine is using PHP5 while the live machine uses
PHP4
In my opinion,
Performance is no longer the biggest issue in programming.
Server cost no longer outweigh development cost.
Most companies don't have a huge budget to start a new project.
What my company does is, develop a full-fledge programme first.
Make the money!
If the project fails, FINE!
I am facing the same problem too...
I can't change the default or the selected fields.
Here's my code:
?php echo $form-input(SubjectAuthorization.expiry_date, array
(selected = strtotime(2008-01-02))); ?
--~--~-~--~~~---~--~~
You received this message because you
-input(SubjectAuthorization.expiry_date, array
(selected = strtotime(2008-01-02))); ?
On Jan 25, 6:46 pm, ProFire profir...@hotmail.com wrote:
I am facing the same problem too...
I can't change thedefaultor the selected fields.
Here's my code:
?php echo $form-input
, ProFire [EMAIL PROTECTED] wrote:
Awww
Nate!!!
You rock!
Get these features rolling!
I can't wait for those enhancements!
Can't believe I'm working on some minor enhancements when you are
working on it too, except on a grander scale.
Oh well, I'll just make do with modifying
Hi Bakers!
Been using CakePHP for some time already and I'm getting the hang of
it. I'm loving it too.
However, as CakePHP is still young, I noticed a few missing features.
More specifically, AjaxHelper! I have modified the core file,
ajax.php. So far it works fine for now.
I would like to
it's good enough to
be accepted!
On Feb 5, 1:22 pm, ProFire [EMAIL PROTECTED] wrote:
Hi Bakers!
Been using CakePHP for some time already and I'm getting the hang of
it. I'm loving it too.
However, as CakePHP is still young, I noticed a few missing features.
More
The thing about being in Beta is that, it is for testing.
In my opinion, whether it's for production or not, depends on whether
you favour Stability more or Features more.
Softwares in Beta tend to have unexpected results as it is not tested
extensively yet.
However, that's not to say it will
You can try out one workaround that I use for myself.
It works for me, not sure for you, so give it a try alright?
Create a model specifically for your HABTM table.
When you do that, you are going to need a primary key set for that
table.
So you will need to modify your database table.
When you
I agree!
Beef up your PHP knowledge, especially Array and Loops.
It's the primary method and the foundation of data interaction.
Start using 1.2 too. Stability is primarily for businesses, where they
cannot afford the risk.
Since you are pretty much a learner, go for 1.2
Plus, if you learn
of the model defined but without pointing
out that it is an array. The solution is the following one. You must
write in the model
var $validate = array ()
And it should work well
Greetings
On 8 ene, 12:11, ProFire [EMAIL PROTECTED] wrote:
Just an update the the problem I'm
Hi, you are not the only one experiencing this problem. ME TOO!!!
Here's my error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 36571 bytes) in D:\webserver\awa\cake\libs\debugger.php on
line 412
When I comment out the same thing, I get a valid error:
Just an update to my situation. I'm pretty sure this error is due to
my fault.
I was debugging to pin point the source of error in my codes and I
figured this:
$departmentAdminData = array(
DepartmentAdmin = array(
account_id = $account_id,
Hi CakePHP Team,
I'm a very satisfied Baker here. I've been using CakePHP for 2 months
already and I really enjoy it. Compared to my previous experience with
Spaghetti Framework, MVC Framework really rocks.
I just have a little question to the CakePHP Team regarding the
FormHelper. I'm not sure
for
this?
On Jan 23, 10:03 am, ProFire [EMAIL PROTECTED] wrote:
Hi CakePHP Team,
I'm a very satisfied Baker here. I've been using CakePHP for 2 months
already and I really enjoy it. Compared to my previous experience with
Spaghetti Framework, MVC Framework really rocks.
I just have
Just an update the the problem I'm encountering:
I have quite a number tables in my database. The only time I'm
encountering this error (So far) is when I use the formhelper on this
specific table called accounts. I have other tables like tasks and
I have used formhelper with it. No such error
Hi, I'm often getting this error whenever I use the FormHelper.
I'm using CakePHP v1.2.0.6311 beta.
Warning (2): array_key_exists() [function.array-key-exists]: The
second argument should be either an array or an object [CORE\cake\libs
\view\helper.php, line 344]
In my view, this is how I use
I have untar everything and I noticed that in the application folder,
a few things changed.
I was upgrading from 1.1.x.x to 1.2.x.x
I had to go through quite a number of changes as some functions were
deprecated.
--~--~-~--~~~---~--~~
You received this message
I think I agree with your point too!
I'm beginning to feel that I'm going to be a better baker from today.
Thanks for your 2 cents and on how you guys would debug your
programmes.
On Dec 29, 6:33 pm, AD7six [EMAIL PROTECTED] wrote:
On Dec 28, 5:01 pm, ProFire [EMAIL PROTECTED] wrote:
Yup
is TINYINT
It would be great way to debug our applications.
Well, what do you guys think?
On Dec 28, 4:39 pm, lucaspirola [EMAIL PROTECTED] wrote:
try using pr($this-data);
sometimes help...
On Dec 28, 1:11 am, ProFire [EMAIL PROTECTED] wrote:
True True!
It's still best to look
many other uses...
On Dec 28, 8:04 pm, car-television [EMAIL PROTECTED] wrote:
On Dec 28, 4:11 am, ProFire [EMAIL PROTECTED] wrote:
True True!
It's still best to look at the source code to find out the possible
errors.
Is there a way to detect and output errors when they occur
...
On Dec 28, 12:39 am, dr. Hannibal Lecter [EMAIL PROTECTED]
wrote:
Hi ProFire,
I get this feeling that asking that question is somewhat similar to
asking: Causes of my-car-won't-start, there are endless
possibilities. I guess the best way to find out yourself is to look at
the source code
Hi and welcome to CakePHP!
You should put your javascript files in app/webroot/js
After that, you can include all the javascript files in your views/
layouts/default.thtml. You may have to create this file if it does
not exist. Just do the standard script src=.../script. You may
wish to check
Hey rtgwork,
I believe you should use this syntax when naming fields:
name=[model]/[field]
That's how Cake captures the data and store it in $this-data
I would recommend using HTML helper using: $html-hidden(cpu/
primaryhd, array(value = $primaryhdAll))
If you really really prefer using your
ajax call still attempted to use the old
session id). To verify this, look into the /tmp folder (or the folder
you use for session save path) to see how the session files get
changed upon EACH request from browser.
On Dec 12, 6:28 pm, ProFire [EMAIL PROTECTED] wrote:
Ok! Maybe I should
Alright, the problem is solved!
For those who encounter the similar problem and reading this to get
the problem solved, here's what I did.
My initial settings was that my cake session security is set to HIGH.
What appears to me is that everytime the user browse around, a new
Session ID is
Ok! Maybe I should rephrase my questions.
What are the causes for an Expired session?
I know the standard ones are the Time Limit and the code
(session_destroy()).
Are there any other causes for it?
Is there a code in CakePHP that causes session to expire?
Ok! Maybe I should rephrase my questions.
What are the causes for an Expired session?
I know the standard ones are the Time Limit and the code
(session_destroy()).
Are there any other causes for it?
Is there a code in CakePHP that causes session to expire?
I have a problem with my session whenever I do an ajax call.
When I do single ajax calls, I do not have a problem at all. It works
perfectly fine.
Session will expire after 20mins. As per normal.
But when I do 2 simultanous ajax calls, my first ajax call will
succeed but my second reply is a
48 matches
Mail list logo