skip to Main Content

How to invalidate Model cache | Phalcon 4 – PHP

I've the following to cache model query and it is working fine, public static function getSubcategories($partnerId) { $instance = new self(); $q = $instance->modelsManager->createBuilder(); $q = $q->columns([ 'cc.category', 'cc.type', 'cc.slug', 'cc.title', ]) ->from(['cc' => CatalogCategories::class]) ->join(PartnerTypes::class, 'cc.category = pt.typeSlug', 'pt')…

VIEW QUESTION

Phalcon routing correctly pattern – PHP

Help with routing settings, there is the following request template with frontend: /books/([0-9]+)/book-authors/([0-9]+)/images There is a controller located in namespace: ShopControllersBooksBookAuthorsImagesController The controller has an indexAction method. In routing.php I specify the following: $router = new Router(false); $router->removeExtraSlashes(true); $router->setDefaultNamespace('ShopControllers'); $router->setDefaultController('index');…

VIEW QUESTION

Phalcon – Class "PhalconConfig" not found – PHP Versions

I've installed Phalcon and trying to create new project: phalcon project store. But instead of this I get these errors: PHP Fatal error: Uncaught Error: Class "PhalconConfig" not found in C:ComposervendorphalcondevtoolssrcBuilderComponentAbstractComponent.php:48 Stack trace: #0 C:ComposervendorphalcondevtoolssrcCommandsBuiltinProject.php(74): PhalconDevToolsBuilderComponentAbstractComponent->__construct(Array) #1 C:ComposervendorphalcondevtoolssrcScript.php(109): PhalconDevToolsCommandsBuiltinProject->run(Array) #2…

VIEW QUESTION
Back To Top
Search