Bug in 3.1.2?

2015-10-20 Thread ProFire
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

Filtering by multiple associated data

2015-05-26 Thread ProFire
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. --

Invalidating a form field in cake3 manually

2015-03-04 Thread ProFire
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

Re: Invalidating a form field in cake3 manually

2015-03-04 Thread ProFire
-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

Re: Multiple Rest Methods in Cake3

2015-02-21 Thread ProFire
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

Multiple Rest Methods in Cake3

2015-02-21 Thread ProFire
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:

Re: Cake 2.5 connecting to Oracle

2014-10-26 Thread ProFire
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' =

Strange Routing Behaviour in CakePHP 2.1 Beta

2012-02-16 Thread ProFire
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

Re: Strange Routing Behaviour in CakePHP 2.1 Beta

2012-02-16 Thread ProFire
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

Re: Memory Leak in Model::Save()

2011-04-20 Thread ProFire
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

Re: Memory Leak in Model::Save()

2011-04-08 Thread ProFire
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 +

Memory Leak in Model::Save()

2011-04-04 Thread ProFire
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

Possible Memory Leak

2011-02-21 Thread ProFire
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

Re: Possible Memory Leak

2011-02-21 Thread ProFire
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

Re: action redirect not working

2010-11-17 Thread ProFire
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

automagic for other frameworks

2010-09-14 Thread ProFire
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

Re: download API documentation and book

2009-12-07 Thread ProFire
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

Re: What the heck? CakePHP is dead?

2009-10-29 Thread ProFire
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

Re: Debug Helper problems on my server

2009-03-21 Thread ProFire
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:

Re: Debug Helper problems on my server

2009-03-21 Thread ProFire
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

Re: Are we using the slowest PHP framework there is?

2009-01-26 Thread ProFire
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!

Re: How to change default value of Date input instead of current date

2009-01-25 Thread ProFire
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

Re: How to change default value of Date input instead of current date

2009-01-25 Thread ProFire
-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

Re: Expanding Core Helpers. Tips anyone?

2008-02-06 Thread ProFire
, 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

Expanding Core Helpers. Tips anyone?

2008-02-05 Thread ProFire
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

Re: Expanding Core Helpers. Tips anyone?

2008-02-05 Thread ProFire
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

Re: Version 1.2 mostly-ready or not?

2008-02-04 Thread ProFire
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

Re: How to prepare table for HABTM and an extra field?

2008-01-28 Thread ProFire
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

Re: Am I ready to learn the cake framework?

2008-01-26 Thread ProFire
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

Re: Formhelper error

2008-01-25 Thread ProFire
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

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-24 Thread ProFire
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:

Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-24 Thread ProFire
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,

Auto-Magic in Formhelper

2008-01-23 Thread ProFire
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

Re: Auto-Magic in Formhelper

2008-01-23 Thread ProFire
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

Re: Formhelper error

2008-01-08 Thread ProFire
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

Formhelper error

2008-01-06 Thread ProFire
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

Re: upgrading procedure?

2008-01-06 Thread ProFire
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

Re: Causes of Model::Save() Fail

2007-12-29 Thread ProFire
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

Re: Causes of Model::Save() Fail

2007-12-28 Thread ProFire
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

Re: Causes of Model::Save() Fail

2007-12-28 Thread ProFire
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

Re: Causes of Model::Save() Fail

2007-12-27 Thread ProFire
... 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

Re: Integration of Ext js in cakephp

2007-12-26 Thread ProFire
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

Re: ajax not working

2007-12-26 Thread ProFire
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

Re: Session Sudden Expire during Ajax call

2007-12-13 Thread ProFire
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

Re: Session Sudden Expire during Ajax call

2007-12-13 Thread ProFire
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

Re: Session Sudden Expire during Ajax call

2007-12-12 Thread ProFire
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?

Re: Session Sudden Expire during Ajax call

2007-12-12 Thread ProFire
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?

Session Sudden Expire during Ajax call

2007-12-11 Thread ProFire
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