Change Log 1.1
- CApp
- CApp is now an object that can be transformed into a response
-
return $app in controllers is now the recommended approach. Using echo $app->render() in controllers is deprecated and will be removed in CF 2.x
- For CApp templates using Blade (
@CAppStyles, @CAppScripts), do not include capp.js in the theme — the Cresenity JS object is always attached automatically
- CApp/Navigation
- Navigation files (
nav.php) should now be placed in the default/navs folder (see App Directory Structure)
- Navigation files in the
config folder are deprecated and support will be removed in CF 2.x
- Navigation keys now use URI format:
'uri' => 'home/index' instead of 'controller' => 'home', 'method' => 'index'
- CView
- Added Blade view support — give your view files the
.blade.php extension and they will be rendered using the Blade engine
- CComponent
- Added CComponent support. Components can be created from Blade views or via
CApp::addComponent(). The API follows the same patterns as Laravel Livewire
- CF
-
CF::collect() moved to c::collect(). Other helpers in CF will also be moved to the c helper class
- Helpers
-
c::view() returns a CView_Factory instance. c::view('view.name') returns a view object
-
c::request() returns the same as CHTTP::request(). c::request('key') returns CHTTP::request()->get('key')
- CException
- Exception handler is now available as a singleton via
CException::exceptionHandler(). Use it to customize reportable and renderable exceptions
- PHP CF (CLI)
- Added console application with detailed command help via
php cf help
- CDevSuite
- Added DevSuite feature for local development. Install via
php cf devsuite:install
- CDebug
- Debugbar support re-enabled. Set cookie
capp-debugbar=1 to activate
- CProfiler
- CProfiler is deprecated. All profiling features will be migrated to the debugbar in future versions
- Cres JS
-
capp.js renamed to cres.js and now compiled through Node.js using Rollup
- CModel
- The
{prefix}Model::make() pattern is deprecated. Use {prefix}Model_Post::method() instead. Extending models is supported
- Use traits for reusable model behavior (e.g.
CModel_SoftDelete_SoftDeleteTrait)
- CQueue
- CConsole
- Added CLI framework (
php cf)
- CStorage
- Added storage abstraction with S3 support
- CEvent
- CModel
- Added
BelongsToThrough relationship
- CValidation
- CResource
- Added resource layer with CStorage integration
- Cres JS
- Fixed modal bug in capp.js
- CF Core
- Migrated core request handling to HTTP Kernel