Questions in Category: Controllers

RSS

0 answers

0 votes

Asked by apishcrazy, 1 week, 5 days ago in Controllers

Undefined Index on controller

I'm getting this error on my project. I'm trying to do a default setting. After I upgraded my cakephp from 1.3 to the latest one. I'm getting this error.

Notice (8): Undefined index: 2 [CORE\Cake\Model\Model.php, line 2671]

Code...

1 answer

0 votes

Asked by atkrad, 2 weeks, 1 day ago in Controllers

How to get values from checked checkboxes in controller?

How to get values from checked checkboxes in controller?

2 answers

0 votes

Asked by Dolando, 2 weeks, 5 days ago in Controllers

$this->request->is('post') does not work!

Dear cracks

I have a problem:

My form in the view looks like this:

echo $this-Form-create('User', array('action' = 'Einstellungen',

'class' = 'Formularbox'));

echo $this-Form-input('org_name',

array ('options' = array($organisations),

'div' =...

3 answers

0 votes

Asked by harpreet, 3 weeks, 1 day ago in Controllers

posts viewing help

Hi, I am new to cakephp but i like working in this CMS.currently i am working on project where i have to manage users so i have used acl components which is working great.Now I want to display all posts when click on posts but can read only and...

3 answers

0 votes

Asked by , 3 weeks, 2 days ago in Controllers

error in unix only: Call to a member function find() on a non-object

I'm using cakephp 2.0 and Wamp and it's all good. However, production server is unix Ubuntu. Both computers access the same mysql data. I have these relations:

Model setup.php

var $belongsTo = array('Client', 'User');

Model client.php

var $hasMany =...

0 answers

0 votes

Asked by atkrad, 3 weeks, 3 days ago in Controllers

How can i use generateTreelist with a pagination in cakephp ?

How can i use generateTreelist with a pagination in cakephp ?

Thank you

1 answer

0 votes

Asked by poifox, 3 weeks, 3 days ago in Controllers

How do I use pagination with multiple associations

Hello!

I have setup my app with the following structure:

  • Posts belongsTo User, hasMany Meta
  • Meta belongsTo Post
  • User hasMany Posts

My pagination is set like this:


public $paginate = array(
    'Post' => array(
      'className' => 'Post',
     ...

1 answer

0 votes

Asked by prakash1708, 3 weeks, 4 days ago in Controllers

REDIRECTING THE USER

Please help me resolve the following issue :

(i had posted the question earlier, and posting it again, since I did not have the benefit of any guidance)

I have five applications stored in the server (WAMP). The applications are stored in five...

0 answers

1 vote

Asked by alexkd, 3 weeks, 5 days ago in Controllers

Ajax - SQL dump

I my page I have to call an action which is called by an ajax. The action includes a find and returns appropriately.

But at that time sql-dump is not showing any Query that worked. How can I get the sqlquery

that cakephp used to find.

0 answers

0 votes

Asked by prakash1708, 4 weeks, 1 day ago in Controllers

REDIRECTING THE USER

Please help me resolve the following issue :

I have five applications stored in the server (WAMP). The applications are stored in five different folders under C:\WAMP\WWW and the folders are APPONE, APPTWO, APPTHREE, APPFOUR AND APPFIVE. Each...

<< previous 1   2   3   4   5   6   7   8   9

How does CakePHP Questions work?

CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!

After you ask your question you just need to wait until you have got some answers and pick the correct answer.

Other users might help you by finding the right answer by voting and giving comments.