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...
1 answer
0 votes
$form->error wrapped inside div and p tags.
How to display an error message wrapped inside a p tag which is further wrapped inside a div ,using $form-error('field name',array('class'='msg msg-error'));
The corresponding html code is:
<div class="msg msg-error"
I'm an error message and I'm...
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...
0 answers
0 votes
App::import
I'm having trouble using App::import for vendor files on my remote server. Every time I try to import a vendor file I get this error:
Fatal error: Class 'classname' not found in /path/to/controller.php on line xx
It works on my local server, but...
1 answer
0 votes
cake doesn't display validation errors
For some reasons, when I press the button, validation errors are not shown... Could you please help me somehow?
here are my files:
users_controller.php
<?php
class UsersController extends AppController {
var $name = 'Users';
var $helpers =...
2 answers
0 votes
Cake equivalent to Joomla's enqueueMessage()
Howdy all, totally new to Cake, was wondering if Cake has an equivalent to Joomla's
JFactory::getApplication()->enqueueMessage( 'Error Message' , 'error' );
Or substitute with notice / info.
1 answer
0 votes
Calling function register with error
Hello,
i have got function with name register, that is used for get values from register form and insert into database.
function register()
{
if (!empty($this->data)) {
$this->User->create();
if ($this->User->saveAll($this->data))... 1 answer
0 votes
class "connectionmanager" not found
i newly installed cakephp vertion 1.3
and all config is ok
Fatal error: class "connectionmanager" not found ... when i create model controller from console.
>cake bake
d
m
v
...
>m
use <default/test>
[default]>
Fatal error: Class... 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:
2 answers
0 votes
Display form field specific validation errorsspecific
I can get the form validation errors to work with a form that validates against 1 model.
But now I have a mixed form and validate against multiple models.
The field specific errors don't show anymore, but luckily I can catch the field erros using...
2 answers
0 votes
Error message: "not a valid Mysql-link resource"
Hello everyone! I am new to CakePHP and am enjoying learning about its features. I am trying to run the Blog example but am getting the above error. Here are the details:
1. I downloaded CakePHP 1.3.0 and extracted it to a subdirectory inside...
1 answer
0 votes
Error sending confirmation email
Hi, I'm trying to send a confirmation email using the email component when a user signs up, but am getting the following error...
Fatal error: Call to undefined function set() in .../home/myappfolder/app/controllers/users_controller.php
Here is my...
2 answers
0 votes
Error: Controller could not be found.
Greetings All,
Thanks to the answer to my other question, I now have my app up and running. yay! Anyway, now I was moving on to replacing the default cake page and replacing it with a page more formatted to my site (assuming it to be in...
1 answer
0 votes
ErrorLogging in Cake1.3
my error.log has thousands of these entries each day:
2010-01-24 16:43:42 Warning: Warning (2):
htmlspecialchars() [<a href='function.htmlspecialchars'function.htmlspecialchars]: Invalid multibyte sequence in argument in [/.../cake/basics.php, line...
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...
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
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
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
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',... 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...