0 answers
0 votes
SQL Syntax Error using delete function
Hello,
I am having a problem trying to delete a user from my application.
This is the error message I receive when trying to delete a user:
Warning (512): SQL Error: 1064: You have an error in your SQL syntax near 'ON (Permission`.`aro_id` = 103 AND...
1 answer
0 votes
Fatal error: Call to a member function trigger()
Когда пытаюсь проверить данные в контроллере с помощью
$this->User->validates()
получаю Fatal error:
Fatal error: Call to a member function trigger() on a non-object in /usr/local/apache2/htdocs/cakephp/cake/libs/model/model.php on line 2456
В...
1 answer
0 votes
custom cakephp error messages not showing
I have created a custom page for error messages in my web application.
I have created these two files in the views/errors/ directory named 'missing_action.ctp' and 'missing_controller.ctp'.
On server the error message is shown as follows:
0 answers
0 votes
Export CSV doesn't export data
Hi,
I am using the Export CSV helper located in the bakery:
http://bakery.cakephp.org/articles/view/csv-helper-php5
It creates a CSV but it doesn't output the database data but the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0... 1 answer
0 votes
Explain missing database table error during Bake all pls.
Hi,
I am new to CakePHP and trying to bake the models, controller and views based on some
tables I have created in a MySQL database. I have followed CakePHP's
table naming conventions, ie named the tables in their plural form.
However when I try bake...
1 answer
0 votes
Has Many issue...
Ok. I have a table called People and a table called clumps. Basically they are clumps of people that are on mailing lists. So I have many people to any one mailing list, so I have this in the top of my Person.php model:
var $name =... 1 answer
0 votes
Getting an error - Cannot add or update a child row
i have modeled my database in mysql benchmark and when i baked it.. i am getting the following error
SQL Error: 1452: Cannot add or update a child row: a foreign key constraint fails (waterfall/areas`, CONSTRAINT `fk_areas_zones1` FOREIGN KEY...
0 answers
0 votes
form helper dont display latin characters
hi bakers, I had some trouble trying to echo some special characters in one view check the code:
$gender = array('G'=>'Género', 'F'=>'Femenino', 'M'=>'Masculino');
echo $form->input('gender', array('options'=>$gender, 'default'=>'G',... 2 answers
0 votes
"Error: schema.php could not be loaded"
Hello,
I am tying to set up the Acl according to the tutorial, but keep getting the above error. No satisfying answers on the web.
I am on ubuntu 10.4 .
My app name is cakeAcl and I am in /var/www/cakeAcl/app$ ...
Anybody? I am stuck and cannot...
0 answers
0 votes
Problem migrating from 1.2.7 to 1.3.0 - Creating a folder
Hi,
I'm experiencing a problem in migrating my app from 1.2.7 to 1.3.0.
In version 1.2.7, I was creating folders using the mkdir() function.
In version 1.3.0, the method was deprecated so I need to use Folder::create().
The problem is that I tried it...
0 answers
0 votes
Using Controller tests to find warnings
I'm doing some refactoring that affect all controllers and wanted to make sure I covered everything by looking at my controller tests and watching for errors and warnings raised with trigger_error. The problem comes that when I run a test that is...
1 answer
0 votes
A simple question on app_controller.php
First of all thank you for taking time to read my problem.
I've created a class /app/app_controller.php and an error page at /app/views/errors/maintenance.ctp.
The problem is the cakeError does not seem to work. Does anyone here know something to...
1 answer
0 votes
Fatal error: Class 'I18n' not found
我使用shell 'cake bake' 创建项目时,提示我,"Fatal error: Class 'I18n' not found in /usr/share/cake/cake/basics.php on line 629"
i use shell 'cake bake' to create new project,then tell me 'Fatal error: Class 'I18n' not found in /usr/share/cake/cake/basics.php...
0 answers
0 votes
Strange behavior when cakePHP 1.2 render error pages
On development environment I have instaled zend community server.
CakePHP working perfectly except error pages.
Every "error404" page is appended with:
<h1>Not Found</h1>
<p>The requested URL /app/webroot/index.php was not found on this... 1 answer
0 votes
Localization from cmd line win in cake 1.3, really working solutions.
Hello, I would like to ask, how can I Localize my app (only form texts, etc..) in cake 1.3 from windows cmd line?
I tried many tutorials, but everything are writed for older version of cake.
And so I looking for any really working solution for cake...
1 answer
0 votes
Missing Method/Controller errors returned in XML? Possible?
I am implementing a web service as part of an app I am building and would like all errors returned in XML when the initial request is XML
I found this...
0 answers
0 votes
Random error: Call to undefined method File::exists()
I get a really strange error, when I'm testing on my localhost. At times when I refresh a page I get:
Fatal error: Call to undefined method File::exists() in /Users/karlragnar/Sites/gasrundan/cake/libs/file.php on line 102
And I don't see the...
1 answer
0 votes
How to access sessions?
First of all thank you for reading.
Q. How do I access session on the errorHandler?
All I want to do Is retrieve the username via session.
I've tried importing session and still no luck.
Your help is much appreciated. Thank you and best regards.
See...
1 answer
0 votes
My ErrorHandler controller can't loadModel.
I'm customizing my missingController on AppError and can't seem to be able to access the data model for other controllers. So I tried to loadModel but I get an error. Please help? How can ErrorHandler access model data for other controllers?
On...
1 answer
0 votes
Internal Server Error using XAMPP - Am I missing something ?
Hello,
I have searched online, the articles and questions on this website and I am sure this might be a common problem.
I wanted to try out cakePHP with great enthousiasm, but I quickly got discouraged.
I have a Mac and I use XAMPP to run my...