Hello Stackers,
Right now I'm learning about the CakePHP framework, and I just wanted to know what makes CakePHP secure. How secure are its components like for example how secure is the authentication component. Also, what can we do as developers to increase the security of our CakePHP base web application?
Also do you guys recommend a...
Hi,
Is there scribd cakephp component for scribd API.
I appreciate any help.
Thanks.
...
Hi,
In my cakephp website i have a controller which handles a simple contact form. But i have a problem! If in the contact_controller.php code i use:
$this->Email->send($this->data['Contact']['message']);
i receive the email in my mail box with linebreaks like the user wrote the message. But if i use:
$this->Email->send();
and cre...
I am writing a CakePHP app but it doesn't seem to be showing flash() messages on any of the pages.
I am using $this->Session->setFlash(); to set flash() messages and using $this->Session->flash() in my default template, as well as $this->Session->flash('auth') on the login and registration pages but they don't show the validation errors ...
I'm confused by this as I can't find good documentation on how to do this, I have a jquery file called "index" located in my cakephp site folder at:
/app/webroot/js/index.js
I am trying to include it in my view with:
<?php
echo $javascript->link('index', false);
?>
but I get:
Fatal error: Call to a member function link() on a ...
We are looking to build a PHP web application to manage data that is available only through a 3rd party REST like interface.
We would like to use an existing PHP framework to do this, we're considering cakephp and codeigniter, but are open to other options.
We expect the biggest problem will be creating models that utilise the REST...
I'm working out a process to save actions that occur from jquery in my view in cakephp.. I figure an easy way to load the saved values, such as the width and height for a DIV, would be to have cakephp echo a variable as their width / height in the css file, much the same way it would do this in the view file.. I guess I'm not sure exactl...
I have a database table named 'abuses'. While baking the application the bake command named it's controller classname as "abuses" and filename as "abuses_controller.php" but when I baked the model the filename was "Abus.php" and classname was "Abus".
Is that a bug in cakePHP ? or did I miss something ?
Has anyone encountered the same p...
My jQery code is:
$(document).ready(function(){
$('#StudentRegisterForm').validate({
rules: {
email: {
required:true,
email:true
}
}
});
});
and in my form email:
<td><?php echo $form->input('email',array('class required email')); ?></td>
The problem is jquery validate plugin...
I have a simple form with multiple checkboxes and i want to know how i can show an error if there's no checkboxes selected?
...
I have an application in which I have implemented a site with CakePHP and also give facility of Wordpress blog.
It is running great on my local server.
But when I am trying to upload it on my staging server, its url doesn't work...
Is anyone else has faced this problem ?
Thanks in advance.
...
I feel like I tried everything to clone http://thechaw.com/source from git with no success. I have a create SSH keys in order to access this git and I believe I followed the directions but I'm missing something easy.
I followed all the instructions (http://thechaw.com/wiki/guides/setup). Can someone tell me what I'm going wrong?
Fir...
Hi all,
I am wondering is there an easy way to make a copy of a tree structure that consists of one model with a parent_id that actsAs a tree?
I was thinking it should be easy to recursively go through a given tree, remove all ids and lft, rght fields; however, as I add the new fields parent_id won't match up correctly. I suppose it sho...
How can I get the built-in date formatting working in my Cake app? Maybe I am making some simple mistake. I'm focused on the model code right now, I think this is what I am screwing up.
On the page it looks like it's working, showing three select widgets with months, days, years in that order. However, when I submit the form I'm getting...
Hi all,
I am facing a strange problem with the security component.
I have a form with following fields in it:
First Name (firstname)
Last Name (lastname)
Primary Email (primaryemail)
Password (password)
Retype Password
Secondary Email (secondaryemail)
Residence Address (address)
State
City (city_id)
Location (location_id)
Designation ...
Why we are using routing in cakePHP and what would be the basic approaches for implementation...?
...
Hello folks,
I need to save the Errors in a database table instead of writing in into errors.log??
How can i achieve it???
thanks in advance
...
Hi all,
I am learning cakePHP 1.26.
A question came across my mind when I was creating a function in a Controller.
How do I maximize the usability of a self-defined function in CakePHP.
Here is my sample code:
function hello($id=null){
$IfLoggedIn=$this->Session->check('user');
if($IfLoggedIn){
//search the dat...
I am working on a e-commerce project using the Auth Component for authentication and Sessions Component for storing my cart.
The problem is that the session gets cleared abruptly after a while even when I am actively browsing the site. I know this should be because of the Session timeout but just increasing the timeout value is not the ...
Hi all,
I am using cakePHP 1.26.
The web page turned out blank when I tried to use requestAction to access a function in a COntroller from a .ctp.
Here is the code:
<?php
class TestingController extends AppController {
function hello($id=null){
$IfLoggedIn=$this->Session->check('user');
if($IfLoggedIn){
...