I have uploaded a working Cakephp web application to Mosso Cloud Sites hosting. The application is working fine except that emails are no longer being delivered. The site is an exact copy from my previous host, where sending email was working correctly. The app uses the built in Cakephp email component. I have searched Mosso's knowledgeb...
Can a model have multiple tables in CakePHP?
...
I'm using CakePHP to produce a Facebook application (though the problem is not Facebook specific). As usual, I'm struggling to get the reverse routing to work properly. Previously I've abandoned the routing functionality, but this time I'd really like to make it work.
The problem is basically that Cake produces URLs relative to the base...
In the past, I've always edited all my sites live; wasn't too concerned about my 2 visitors seeing an error message.
However, there may come a day when I get more than 2 visitors. What would be the best approach to testing my changes and then making all the changes go live simultaneously?
Should I copy and paste ever single file into a...
I am doing an application like Form builder in Cakephp.
I've created the module for Designing the forms. Is it a good way to create a separate table for each forms in the case of form building?
...
In CakePHP,
Is it possible to insert into another table with the other model not related to it.
For eg,
i m having a model Post .is it possible for me to use
$this->Post->query('insert into tablename(col1) values (' . "$formname" . ')');
Suggest me the answer......
...
I'm just beginning the process of exploring i18n in CakePHP and I can't seem to find the right combination of files and functions that will allow me to use multiple po files. If I want to use a single po file (default.po) for every bit of translatable text, that works fine, but I see that becoming an unmaintainable hairball very, very qu...
I have the following array, named $usergrouppermissions:
Array
(
[0] => Array
(
[UserGroupPermission] => Array
(
[group_id] => 1
[permission_id] => 4
)
)
[1] => Array
(
[UserGroupPermission] => Array
...
I'm pretty new to OOP/OOD, and I realize I have a lot to learn, so I'd like to ask the SO community for their input.
Basically, I'm using CakePHP's MVC framework, and the online store I'm building is just using 2 models, Category and Product, described by the following CREATE statements:
CREATE TABLE `categories` (
`id` int(11) uns...
hi
in my cakephp forms_controller
var $uses=array('Form','Field');
i m using two models(Form,Field)
While using
$this->set('retrived',$this->Field->find("all",array('conditions'=>array('Field.formname'=>$formname,))));
in the forms_controller
and in the view
<?php endforeach; ?>
...
Hi gurus,
We're using CakePHP for a new application, and we use Mercurial as the source control tool. (Mercurial uses one .hgignore file in the root directory, unlike (for example) CVS that uses .cvsignore in any directory.)
I'd like to exclude the content of the app/tmp/ directory from the source control (since they change all the tim...
Hello,
I've recently started work on a project which involves creating a web-based reporting interface for a fairly old software responsible for managing some access control hardware like electronic door locks for example.
I have chosen CakePHP for the task and all it involves is querying the database for the log records and displaying ...
I've got xampp installed on my laptop runing XP, and it's been running without any problems for ages.
I've just tried installing cakephp, and have altered the database config and enabled mod_rewrite.
But now I get the following on the welcome page:
Your tmp directory is writable.
The FileEngine is being used for
caching. To ...
I'm using cakePHP and I want to add a First and Last name column to the Users table, but when I pass through the field values firstname & lastname the columns are always left null, while the default fields are populate fine.
Is it possible to do this or do I need to have a second table to store these values?
Update code:
Registration ...
I'm slowly learning how to apply CakePHP's Translate Behavior and I think I've grasped the basics, but I'm working on an existing project with existing data. It's great that Cake will insert new records for me, but I need to manually (I assume) insert a few translations for some existing data. My first question:
Do I have to have a rec...
How can I password protect my website during development with htaccess in Cakephp?
which htaccess file do I have to change?
what do I have to write in the htaccess
where do I put the .htpasswd?
I searched google for that but couldn't find anything useful, I hope you could help me!
Thanks Till that helped me solve the problem!
For...
I was reading through the source code for MeioUpload to make sure I understand what it's doing, and for the most part the code is pretty easy to understand. However, I came upon a section of code which I just can't seem to figure out, and so I'm trying to determine if it's a mistake on the author's part or if I'm just missing something.
...
I'm trying to enable SSL for only certain actions on my CakePHP based website. I'm doing this using requireSecure() and redirecting to https://url in the corresponding blackHoleCallback().
To keep the server load down, I'd like to redirect back to http://whatever_url once the user is done with the action that requires SSL.
How do I do ...
I read a lot about tagging in CakePHP but I can't find a "clean" way to save a Post and the Tags to this post. I have all which is necessary the Post Table, Model and Controller, the Tag table, Model and Controller and the posts_tags table. I created the HABTM Associations in the Post and the Tag Model.
If I want to save a new post, I w...
I'm writing a Cake component and it seems to make sense that I use it for saving data rather than doing so in a controller. In the manual it says using models in a component is discouraged, but the other way of doing it would mean I'd be repeating code in the controller.
The component basically analyses a load of data from various sourc...