1
I am looking for a way to put folder levels in the structure of models, views and controllers. The structure I want to mount would be as follows:
I’ve looked and implemented this link but it didn’t work. The error return is as follows:
meuApp\Controllers\SegurancaController handler class cannot be loaded
#0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('meuApp\Contr...', 2)
#1 [internal function]: Phalcon\Dispatcher->_dispatch()
#2 [internal function]: Phalcon\Dispatcher->dispatch()
#3 C:\Projetos\meuApp\Source\public\index.php(42): Phalcon\Mvc\Application->handle()
#4 {main}
Any suggestions on how to implement?
I can’t say that this is the problem, but generally in linux everything is case-sensitive, maybe Phalcon is also case-sensitive to facilitate portability between linux, mac and linux.
– Guilherme Nascimento
@Guilhermenascimento, I suspected this, but I put everything in lowercase letters, only the first case and nothing worked...
– Isa
It may be the namspace that is wrong, post your Routes, because by name
meuApp\Controllers\SegurancaController
seems to be quite wrong :/– Guilherme Nascimento
@Guilhermenascimento really had an error in the routes and names... I just adjusted, and stopped the error! thanks!
– Isa
I figured by their names, how nice.
– Guilherme Nascimento