• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
APP_NAMESPACE do nothing..

#11
Hi
My Controller in directories like theese
Application
  Controllers
    Blog
      Blog.php

I can not acces my controller 
<?php

namespace App\Controllers\Blog;
class Blog extends \CodeIgniter\Controller
{

}


My Solution:
Replacing namespace App\Controllers\Blog; with namespace Blog;
Reply

#12
(07-01-2016, 12:00 PM)titounnes Wrote: Hi
My Controller in directories like theese
Application
  Controllers
    Blog
      Blog.php

I can not acces my controller 
<?php

namespace App\Controllers\Blog;
class Blog extends \CodeIgniter\Controller
{

}


My Solution:
Replacing namespace App\Controllers\Blog; with namespace Blog;

namespace App\Controllers\Blog; should added into php file inside Blog folder and for Blog.php add namespace App\Controllers;
Keep calm.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.