Member Avatar

I am still learning PHP and was wondering so don't shoot me down and was wondering why I would get the following error message? 2020-02-01 16:11:14 Error: [InvalidArgumentException] Invalid data type, must be an array or \ArrayAccess instance. Request URL: /auth/signin Referer URL: https://urlsize.com/auth/signup Which then returns "Error: An Internal Error Has Occurred." to the user. The code which I believe is at fault is: public function signin() { if ($this->Auth->user('id')) { return $this->redirect('/'); } $user = $this->Users->newEntity(); $this->set('user', $user); if ($this->request->is('post') || $this->request->query('provider')) { $user = $this->Auth->identify(); if ($user) { $this->Auth->setUser($user); $_SESSION['Auth']['domains_auth'] = 'none'; $multi_domains = get_all_multi_domains_list(); $main_domain = …

Member Avatar
+0 forum 3
Member Avatar

Hey everyone, I have posted a couple of threads looking for a plugin that gives some of the features of CakePHP if not all. However, the threads were going dead. I'm just looking for a good editor that is going to provide me an auto-completion code like HTML helpers, functions and stuff. I know of a couple of paid editors that can do what I wanted but I prefer to use free ones and don't want to pay a cent if I can get it for free. Kindda tight on money at the moment. LOL I hope to hear from …

Member Avatar
+0 forum 5
Member Avatar

Hi All, We have a project coming up, As i am eveluating the PHP frame works i found out cakePHP is most suitable for our project. I have not used it before but i am new to it and facing problem in configuring. I have completed the setup as per documentation and everything went well but post DB configuration CSS and JS are not loading. I think there is some problem with the webroot. Please find the attached screenshot. I am using lamp stack on Ubuntu platform

Member Avatar
+0 forum 3
Member Avatar

Hey Daniweb lovers, I am using a cake php framework to develop my application. The problem I am facing at the moment is that I am trying to use two different tables (let's call them users and products.) I can select users from the users table. But, I have got a query in my function that is in the controller. It is something like $query= $this->User->query("SELECT username,prod_id,prod_name FROM users,products;"); $this->set('usernames', $query); I have also created a model for the products table.. I don't know why it is not working.. Hear from you, folks ...

Member Avatar
+0 forum 4

The End.