Hi there,
I have a controller in my app which I want to get the Auth-allowed actions from other controllers.
So i.e. if I have a PagesController:
{{{
class pagesController extends AppController {
[...]
function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow( array('index', 'view', 'search'));
}
[...]
}
}}}
Whether I have other allowed Au...
I have a form which I've set to go to the carts controller and the add action. I did not specifically tell it to send to the admin route at all. But instead of an action of /carts/add, I'm getting /admin/carts/add. This seems to be a common problem across the site in a number of different facets: admin routes being arbitrarily added to links even when I don't want them. Login/out links are one ...
hi,
I'm trying to make a model for a table named 'series' my file is called
serie.php file:
{{{
}}}
if I trie to bake a controller it says: 'You must have a model for this class to build basic methods. Please try again.'
if I bake a model it creates a model called series.php:
{{{
}}}
but, from what I learned, I seem to remember models should be named like their table -s ....
hi,
I'm making my first CakePHP project (apart from all the tutorials I did...).
I'm making a site for trainers and athletes in the athletics sport.
now in my database I have a user table with fields: id, username, firstname, lastname, email, password, ...
then I have 2 other tables with the fields:
trainers: id, type_id(sprint, distance, throwing, ...), user_id
athletes: id, type_i...
I have a db with the following tables
{{{
user(id, name....)
restaurant(id, name...)
module (id, name )
status_messages(id, pid, message, module_id, ModuleID)
}}}
Module Refers to either Users or Restaurant.
Both Users and Restaurants can have status_messages.
When a user (id=21) sets a status message
{{{
(1, 1, 'Message', 1, 21)
}}}
When a Restaurant (id=3) sets ...
i have a User Module where users can set their status message (tweet) from the profile page.
http://variable3.com/files/screenshots/2010-10-14_1320.png
When some one clicks Share it should go to an action and save the status message. I am not sure how to do this in CakePHP.
I would wnna use jQuery. If you can point me to the right document. it would be of great help
I am a new to Ajax.
We had cake php installed in the directory of the folder, we moved it to the subdirectory so we could install another site to the server, and since then it is giving us a 500 error.
Since then we cleared the cache, set the debug mode to 2. No fix for this, then we ensure that you've changed your cake core include path in webroot/index to point to the correct location and this didn't work. .h...
Good evening,
I think it is not the right place to ask that but I don't find where to ask how to submit a translation.
Can someone answer ?
Many thanks
fmm
I have a script which works fine on my Apache/XAMPP for Windows until I put Apache behind Nginx, most controllers works fine except those on plugins folder. I ask Nginx to serve static content only (CSS,JS,etc) and pass request to Apache for dynamic content (PHP).
This is the part of Nginx.Conf file content:
--------------------------------------------
location / {
root /nginxport/proj...
Hi,
Good Day!
I cannot seem to find a good reference on how to connect and retrieve data from a firebird database. I have a firebird database file (*.gdb) and I want to load the data inside it to my web page using CakePHP.
Appreciate the help.
Thanks so much!