We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

I need help getting phalcon running

I tried almost everting to get phalcon running on my system from updating my php and xampp, noting seems to work I get the folowing error when I open my project.

I used this to create a empty skeleton $ phalcon create-project store

DttController handler class cannot be loaded

0 [internal function]: Phalcon\Mvc\Dispatcher->throwDispatchException('DttController h...', 2)

1 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()

2 C:\xampp\htdocs\dtt\store\public\index.php(43): Phalcon\Mvc\Application->handle('/dtt/store/')

3 {main}

Thanks for your reply but as I said before I already tried everything to get phalcon running also the link with intructions on it. :(

With no succes



8.4k

can you provide the versions for php - phalcon extension - phalcon devtools - operation system

  • php | PHP 7.4.11
  • phalcon | Phalcon DevTools (4.1.0)
  • phalcon | phalcon_x64_vc15_php7.4_4.1.0+5221
  • OS | Windows 10


8.4k
edited Nov '20

i matched your environment and everything else

λ phalcon info                                                  

Phalcon DevTools (4.1.0)                                        

Environment:                                                    
  OS: Windows NT TALAL-PC 10.0 build 19042 (Windows 10) AMD64   
  PHP Version: 7.4.11                                           
  PHP SAPI: cli                                                 
  PHP Bin: C:\wamp\bin\php\php7.4.11\php.exe                    
  PHP Extension Dir: C:\php\ext                                 
  PHP Bin Dir: C:\php                                           
  Loaded PHP config: C:\wamp\bin\php\php7.4.11\php.ini          
Versions:                                                       
  Phalcon DevTools Version: 4.1.0                               
  Phalcon Version: 4.1.0                                        
  AdminLTE Version: 2.3.6                                     

created the ddt directory and created a new project using phalcon create-project store

and going to localhost/ddt/store/ resulted into DttController handler class cannot be loaded exception

i edited store/public/index.php and changed

echo $application->handle($_SERVER['REQUEST_URI'])->getContent();

to

echo $application->handle($_GET['_url'] ?? '/')->getContent();

now going to localhost/ddt/store/ and i got the You're now flying with Phalcon

editing baseUri in store/app/config/config.php is important so the url service works change it to

preg_replace('/public([\/\\\\])index.php$/', '', $_SERVER["PHP_SELF"])
edited Nov '20

Phalcon is highly customizable due to the presence of Zephir, a high-level programming language paygonline. But that should not scare you, as Phalcon can be used to develop PHP applications without any knowledge of the C language.