Read the docs at http://vegas-cmf.github.io/1.0/guide.html
vegas-cmf / core Goto Github PK
View Code? Open in Web Editor NEWVegas CMF Core
License: MIT License
Vegas CMF Core
License: MIT License
Read the docs at http://vegas-cmf.github.io/1.0/guide.html
Please add crud function like:
public function afterSave($record) {}
public function afterCreate($record) {}
for CRUD controller because using:
$this->dispatcher->getEventsManager()->attach(Events::AFTER_SAVE, function(){
$this->redirect();
});
can be annoying
Thanks
$this->assertFalse(\Vegas\Util\DateTime::isValid((new \DateTime())->format('d/m/Y')));
It works for 31/12/2014 (and so) but now with 2/1/2015 DateTime has some problems (same in testShouldResolveDateTime test).
Some of Vegas libraries need database table generation for applications using MySQL connection. Preferably, tables should be created using Phinx.
Still, it needs a few tweaks instead of using raw Phinx executable:
phinx.yml
filetests/fixtures/migrations
Whoops\Exception\ErrorException: Undefined variable: record in file /opt/cache/_opt_vendor_vegas-cmf_core_src_mvc_controller_crud_views_edit.volt.php on line 17
Stack trace:
Whoops\Exception\ErrorException: Undefined variable: form in file /opt/cache/_opt_vendor_vegas-cmf_core_src_mvc_controller_crud_views_new.volt.php on line 18
Stack trace:
Hi
how to enable mongodb, since also mysql table is missing, which is mongodb required steps?
Thanks
When there is a lot of records in collection and we use default Vegas paginator and Data limiter
on page >~450 we get error like this:
localhost:27017: Runner error: Overflow sort stage buffered data usage of 33557981 bytes exceeds internal limit of 33554432 bytes#0 /home/www/vegas/talentnetwork/vendor/vegas-cmf/core/src/Paginator/Adapter/Mongo.php(38): MongoCursor->rewind() #1 /home/www/vegas/talentnetwork/vendor/vegas-cmf/core/src/Paginator/Adapter/MongoAbstract.php(175): Vegas\Paginator\Adapter\Mongo->getResults() #2 /home/www/vegas/talentnetwork/vendor/vegas-cmf/data-limiter/src/DataLimiter/Paginator.php(146): Vegas\Paginator\Adapter\MongoAbstract->getPaginate() #3 /home/www/vegas/talentnetwork/app/modules/Vacancy/controllers/frontend/VacancyController.php(52): Vegas\DataLimiter\Paginator->getPaginate() #4 [internal function]: Vacancy\Controllers\Frontend\VacancyController->indexAction(false) #5 [internal function]: Phalcon\Dispatcher->dispatch() #6 /home/www/vegas/talentnetwork/vendor/vegas-cmf/core/src/Mvc/Bootstrap.php(162): Phalcon\Mvc\Application->handle(NULL) #7 /home/www/vegas/talentnetwork/public/index.php(15): Vegas\Mvc\Bootstrap->run() #8 {main}
The solution for it is setting index on 'created_at' in Mongo:
db.collection.createIndex({created_at: -1})
Hi
First of all congrats for this awesome project. It's exactly what I was looking for.
I have a questions about support with future release of phalcon 2.0
Can I code with current version and easy upgrade in future to phalcon 2.0?
Do you think re-code this libs in Zephir?
Thanks
Hi
how to setup to use phtml as template engine and not volt.
thanks
Hi
It's possible use PostgreSQL?
Thanks
On the view I do for ex.
{% do assets.collection('js').addJs('js/main.js') %}
the addJs function comes from \Phalcon\Assets\Collection instead of The Vegas\Assets\Manager, so preventing from duplication is not working
Please provide APP_ROOT based paths for partials/views/picks.
When using production environment following files are not being updated by default:
A workaround requires to switch to development environment and regenerate this file by calling the app either via browser or CLI.
There should be a CLI task which does it without having to call the application.
hi guys, Would be grat to move vegas to XXI century :)
I found some issues which not allow to run vegas (core) on phalcon 2.x env. After simple code refactor I got working vegas on newest phalcon without any errors.
solution:
/vendor/vegas-cmf/core/src/Bootstrap/ModulesInitializerTrait.php:57
$config->merge(new Config($moduleConfig));
solution:
/vendor/vegas-cmf/core/src/Mvc/Application.php:41
public function registerModules(array $modules, $merge = null)
solution:
/vendor/vegas-cmf/core/src/DI/InjectionAwareTrait.php:38
public function setDI(DiInterface $dependencyInjector)
solution:
/vendor/vegas-cmf/core/src/Mvc/ModuleAbstract.php:42
public function registerAutoloaders(DiInterface $dependencyInjector = null)
solution:
/vendor/vegas-cmf/core/src/Mvc/ModuleAbstract.php:78
public function registerServices(DiInterface $di)
solution:
/vendor/vegas-cmf/core/src/Mvc/View.php:99
protected function _engineRender($engines, $viewPath, $silence, $mustClean, BackendInterface $cache = null)
Its core issues only, but rest of modules is going over the hill.
Bon Appetit! :)
Hi
why its used symonfony yaml ?
THanks
Hi
I would like to ask for a new feature.
Currently is not possible override view file when create a new theme.
Will be great to have similar to wp child themes.
This allow you override certain view file, without changing core file.
For example: you put view file into a folder views/default/*
Then someone can create a new theme views/my_theme/* and override the files which want.
The system check if exist the file on my_theme otherwise load default.
Thanks!
Please add the following code to the: Vegas\DI\Scaffolding to make new upload working
protected $model;
....
public function getModel()
{
if (empty($this->model)) {
$this->model = new $this->modelName();
}
return $this->model;
}
Please add into documentation note that controller scope is mandatory and controllers always should reside under some subfolder inside 'controllers' folder.
E.g.:
controllers/SessionController.php - bad
controllers/frontend/SessionController.php - good
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.