Hi ! I am new to EspoCRM and I find it very cool with a very high potential with good structure and good technologies used.
But I have many questions to be able for develop extensions.
For example if i create a entity named "Quote" in the admin with fields and relations needed
File : custom/Espo/Custom/Controllers/Quote.php
File : custom/Espo/Custom/Resources/routes.json
When I try to access to my die page "hey test dude" with url : /Quote/invoice/[id_of_invoice] I see error 404 .. I tried to flush all cache and rebuild but it does not work .. Cannot access the page that I have created.
And it is possible too to create HTML template in Resources/layouts/ ? Like for example if I create Quote.html.twig or something ?
Thank you very much and have a great day !!
But I have many questions to be able for develop extensions.
For example if i create a entity named "Quote" in the admin with fields and relations needed
File : custom/Espo/Custom/Controllers/Quote.php
Code:
namespace Espo\Custom\Controllers; class Quote extends \Espo\Core\Controllers\Record { public function actionInvoice($params) { die('Hey test dude'); } }
File : custom/Espo/Custom/Resources/routes.json
Code:
[ { "route":"/Quote/invoice/:id", "method":"get", "params":{ "controller":"Quote", "action":"invoice", "id":":id" } } ]
When I try to access to my die page "hey test dude" with url : /Quote/invoice/[id_of_invoice] I see error 404 .. I tried to flush all cache and rebuild but it does not work .. Cannot access the page that I have created.
And it is possible too to create HTML template in Resources/layouts/ ? Like for example if I create Quote.html.twig or something ?
Thank you very much and have a great day !!
Comment