Hi,
I've a new question :)
I'll briefly explain what I'm trying to achieve. Right now I have an url that looks like this.
/products/index/brand:figleaves
I want this to look like this
/brand/figleaves
By writing the following route rule I get what I want.
Router::connect('/brand/:brand/*', array('controller' => 'products', 'actio...
Hello,
I have developed a application in CakePHP, and setup a cron Job with Shell. I have hosted the application in our development server, bluehost and setup the cron Job and its working fine.
The cron Job Command was,
/home4/enventur/public_html/pennystock/cake/console/cake -app "/home4/enventur/public_html/pennystock/app" message_...
Hey guys, is there a way to tell cake that values like 2,50 (instead of 2.50) are valid numeric values?
Thanks, EL
...
Hi,
I want to do something like www.mydomain.com/page-slug point to www.mydomain.com/custom-pages/view/page-slug, something like Wordpress. How can I do this in CakePHP.
...
Hi,
what's the best way in cakephp to get a list of private messages for a user considering my messages table is something like:
id: row id
left:sender id
right: receiver id
subject and text
with a find all i'll get the results with the user id but i want to display the username, ofcourse i could use a query with a join but probably...
Hi folks,
I'm trying to join a model through a hasmany association and then count the number of records. Basically I have users and projects. I want to display the number of associated projects on the user index action.
var $hasMany = array('Project' =>
array('className' => 'Project',
...
I'm looking for an elegant way to make a bit of jquery aware of the filename and path of the ctp file containing a given dom selection. I'm using simple_html_dom to write changes to template flies via an ajax call. I need to provide the filename and path of the view or element template ctp file that contains the dom element I've selected...
Is there a way that one can cause CakePHP to dump its SQL log on demand? I'd like to execute code up until a point in my controller and see what SQL has been run.
...
I find my edit actions in CakePHP controllers get messy pretty quickly, and I'd like to pull most of that crap into the Model. Let me give you a scenario.
I have an users/edit action in my Users controller. I want to let users reset a password (or not reset the password) in my form. If they provide a new password then I pass the three p...
Hi
I'm following the Auth tutorial and in this stage
http://book.cakephp.org/view/1547/Acts-As-a-Requester
aros table is not populated as stated.
I did not insert records into db directly, I used baked forms as mentioned.
...
It's just too complicated to use.
...
Hi,
I want to enable this kind of routing in my site where users can create their vanity urls
test.com/[user-url]
but also dont want to ruin the routing for my existing controllers
test.com/users
test.com/business
test.com/admin
so I added this to my routes.php
Router::connect('/*', array('controller' => 'business', 'action' => 'view...
I was looking for a fresh forum software (threaded) or bulletin board (flat/partitioned). And I'm wondering if there's an implementation based on one of the big PHP frameworks (CodeIgniter, Kohana, Yii, CakePHP, ZF, Seagull, Fusebox, Symfony, eZ, Prado, or whatever...).
Reason: A framework based implementation would be inherently more s...
We had a situation where sessions were being re-started immediately after logging in to a CakePHP app over SSL. It was pretty much as described here:
http://stackoverflow.com/questions/308659/session-not-saving-when-moving-from-ssl-to-non-ssl
and the original author's suggestion fixed the issue (although we'll try to implement somethin...
Hi
I'm trying to implement the cakephp comments plugin found here: http://cakedc.com/downloads/view/cakephp_comments_plugin
I have a projects_controller which I want to add comments to.
Everything has gone fine whilst following the instruction I can add comments and they are saved in the comments table but they are not displaying on ...
Hi, I'm using cakephp with this vendor: oauth_consumer.php
It requires OAuth PHP library oauth.php
Inside my controller, I successfully get a request token using a method call in oauth_consumer which successfully calls a static method in oauth.php:
$request = OAuthRequest::from_consumer_and_token($consumer, $token, $httpMethod, $url, $...
I code $this->Auth->allowedActions = array('index')
I use plugin poll, rating in action index .
When I enter action index, Auth dont allow because action of plugin poll,rating dont permit.
How to allow action of plugins poll,rating,...to public in controller (I dont want allow in controller of plugin ).
...
I am developing a cakephp application that uses jquery and post methods in the background.
When cakephp sends a post request in the background, a div has to refresh (or regenerate), and it has to show new content.
Post method calls other php file that does a MySQL query. The div also call mysql, and select proper data from database.
...
The CakePHP book has a section on Internationalization & Localization. Bascially what it says is Cake will generate a pot file and we have to create a .po for different language file from the pot file.
My problem is I want the user to be able to edit these localized text so instead of storing the localized text in the .po file I want t...
what is the best and the simplest way Prevent Code injection and Sql/Mysql injection in CAKEphp . Also i would like to know how to prevent Code injection in php
...