This tag relates to the 2.1.x branch of the CakePHP MVC framework.
0
votes
0answers
8 views
trying to do jsonp in Cakephp
i am working on a cakephp 2.x and trying to implement the jsonP but my code isn't working ...
here is my code
public function backup(){
$this->loadModel('Contact');
$id = ...
0
votes
1answer
15 views
Joining two tables in CakePHP using bindModel method Cakephp
I am working on a cakephp 2.x .. I have two tables in my database both have the userid I am using bindModel.. my query is working fine ... I just have one problem .. I want to add the condition in ...
1
vote
0answers
10 views
cake 2.1 data validation not working
I tried every method, but it cake php data validation does not working.would you tell me what is the wrong part?
I add all types of validations but still the form saves without validation data!
My ...
1
vote
1answer
38 views
Restricting and redirecting other user from admin in cakePHP
I'm getting issue after logging in the site. There are two kinds of users i.e. 'admin','employer'. When I've logged in by employer, I can access the restricted area of Admin. Below is the ...
-2
votes
1answer
37 views
Get user name from user id in view
I have two controllers, Posts and Users. When a user adds a new post, his user_id is stored in database with post.
How to get user (post author) name from this id:
$post['Post']['user_id']
in ...
1
vote
1answer
21 views
Sequence call cake php 2 behavior callback function
I want to know how possible cakephp 2.3.6 execute behavior callback in sequence on one more behavior?
for example, I have three behavior:
CustomBehavior1
CustomBehavior2
CustomBehavior3
and they ...
-1
votes
1answer
31 views
$this->redirect in function not working and tries to find action 1 + cakephp
I have problem with redirecting in function inside controllers.
[It works only in UserControllers and when I login with admin user]
for example : if I am saving some thing in Transactions/edit then-> ...
1
vote
1answer
45 views
CakePHP session should not started on certain controller actions
I am using session handling using Database. For some webservice calls using RequestHandler I want to stop auto session create for these some certain action of controller
My question:
How can I stop ...
1
vote
2answers
26 views
Defining global conditions in Model
Is it possible to define global conditions for Model ?
I have 2 Models: User and Student. In database both of them are using table users but each student has set parent_id to its owner (which is set ...
0
votes
1answer
43 views
Cakephp not loading css and js files
I seriously can't understand what is going on here. I just uploaded my web app from localhost to new domain-name on Windows IIS Server. When I try to access the web app, CSS files and images are not ...
0
votes
1answer
24 views
where to load javascript in a view page Cakephp
i am working on a Cakephp 2.x .. right now i am loading my js and css files like this
View/Layout/default.ctp
<?php echo $this->fetch('css'); ?>
<?php echo $this->fetch('script'); ...
0
votes
1answer
20 views
CakePHP - Class ** cannot be found
I have a strange problem with CakePHP
CakePHP gives an error on the following line:
View/Designer/cards:
$this->JsBridge->set('Card.DISPLAY_TYPE_FOLDER_GREETING', ...
0
votes
0answers
17 views
CakePHP permalink parameters (Router::connect)
I have a CakePHP site with permalinks. The routes.php:
Router::connect(
'/lejart/:page',
array('controller' => 'products', 'action' => 'index'),
array('pass'=>array('page'), ...
0
votes
0answers
24 views
Debugging CakeEmail, msg sent but not received
I'm using CakePHP 2.1.1 and trying to send a simple email with form data. This is the code I have in my controller:
App::uses('CakeEmail', 'Network/Email');
try {
$Email = new CakeEmail();
...
0
votes
1answer
45 views
Cakephp : 404 - File or directory not found after deploying on the windows server
i have built a webapp on Cakephp 2.3 on my localhost .in my localhost the url of my website was like that
localhost/Cakephp/
when i typed this address in my browser the url becomes like ...