php - namespace error in cakephp -


this sample page files of app

namespace cake\controller;

use cake\controller\appcontroller;

both of these lines shows red in dreamweaver

in cakephp controllers in namespace app\controller , use app\controller\appcontroller, since appcontroller default , other controllers extend it.

namespace app\controller;  use app\controller\appcontroller;  /**  * users controller  *  * @property \app\model\table\userstable $users  */ class userscontroller extends appcontroller {      /**      * index method      *      * @return \cake\network\response|null      */     public function index()     {         $users = $this->paginate($this->users);          $this->set(compact('users'));         $this->set('_serialize', ['users']);     } } 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -