 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Kevin Schroeder: Would this be a dumb idea for PHP core?
by Chris Cornutt February 19, 2013 @ 09:26:55
In this new post to his site Kevin Schroeder thinks out loud and wonders if an idea of his is "a dumb idea" to be included into the PHP core - engine state caching.
I was consulting and I would see significant server resources consumed by bootstrapping the apps. Loading config files, loading dependent classes, setting up dependencies, initializing ACL's, and the list goes on and on. One of the ways to negate the effect would be to cache a bootstrap object and then pull that object from the cache at the start of the request. However, the problem is that unserialization can actually end up taking more time than the bootstrap process itself.
He wonders if, after the initial bootstrapping happened, a method could be called (his example is "init_engine_state") that would cache the Zend Engine's current state and pass that to a callback function. This would cache everything - objects, variables, classes, etc - all pre-interpreted into memory and make them easy to reuse on future executions. What do you think? Share your thoughts in the comments of the post.
voice your opinion now!
engine state cache zendengine bootstrap callback
ScreenFony.com: Work with bootstrap, assetic and less
by Chris Cornutt September 25, 2012 @ 10:36:20
On the ScreenFony.com site there's a quick tutorial showing you how to get started with Symfony2+Twitter Bootstrap+Assetic+LESS in a basic application. Assetic is a library that helps with asset management and use and LESS is a CSS pre-processor that makes it simpler to work with your site's CSS.
Bootstrap is a well known and powerful front-end framework for fast prototyping, it uses LESS and it can be easily integrate in your Symfony applications with the help of assetic. In this post I'll show how to: Install bootstrap in you Symfony application, load it using assetic, and compile bootstrap LESS files with lessphp.
Using Composer, creating a new Symfony2 project is just a single command away. The just update the "composer.json" and run the install to get the other needed libraries (LESS and the Twitter Bootstrap). They help you set up some Assetic filters for LESS and provide a simple page to output the Bootstrap in your header.
voice your opinion now!
symfony2 assetic twitter bootstrap less css tutorial composer
VG Tech Blog: Lazy Loading Resources with Zend Framework Bootstrap
by Chris Cornutt June 01, 2012 @ 14:48:23
On the VG Tech blog today André Roaldseth has a new post showing how to lazy load in the Zend Framework bootstrap using two handy methods you can drop into your applications initialization.
The Bootstrapping process in Zend Framework isn't perfect. You'll often end up bootstrapping a lot of resources that you don't need to complete the request. Depending on the resources this can be really expensive and hurt your overall performance. The worst kind are resources that open connections to external services [...], even worse, if the services are down they will end up blocking the execution.
Using his modified "getResource" and "lazyload" methods, he shows you how to modify your resource requests to put them in a temporary state that is only initialized when the resource is needed. You can find the code for this example in this gist.
voice your opinion now!
zendframework resource lazyload bootstrap
Rob Allen's Blog: Module specific bootstrapping in ZF2
by Chris Cornutt March 08, 2012 @ 10:04:20
Rob Allen has a new post to his blog today looking at bootstrapping specific modules in a Zend Framework 2-based application without having to do the entire set.
Following on from the discussion on modules, we can hook into the event system to do module specific bootstrapping. By this, I mean, if you have some code that you want to run only if the action to be called is within this module, you can hook into the Application's dispatch event to achieve this.
He starts with an example of a basic module (Simple/Module.php) and shows how to define an "onBootstrap" method that calls the "onDispatch" method (when hooked to the event manager) to do some module-specific bootstrap operations. The RouteMatch feature is used to ensure that you're in the right controller/namespace combo to use the module.
voice your opinion now!
module bootstrap zendframework2 tutorial specific router dispatch
Bertrand Mansion's Blog: Twitter Bootstrap and the QuickForm2 Callback Renderer
by Chris Cornutt September 26, 2011 @ 12:23:41
In a new post Bertrand Mansion shows how he combined the versatility of the PEAR QuickForm2 package and the Bootstrap project from Twitter to quickly make a form using the project's styling (CSS).
I don't know about you, but for me building HTML Forms and styling HTML Forms are maybe the most boring things in web development. It's repetitive and takes a lot of time to do things correctly. That's why tools like Twitter's Bootstrap and PEAR's HTML_QuickForm2 can help with this part of our job. Wouldn't it be nice to have QuickForm2 generate a markup compatible with Bootstrap CSS, so that you could get a nice looking form without to much efforts? Well, that's what I plan to do here.
He starts by creating a simple QuickForm2 form with no renderers attached (no pre-defined styles) and a custom render callback that wraps the items in "div" tags with the correct styles. There's also a custom renderer included for grouping items with additional styling attached.
voice your opinion now!
twitter bootstrap pear quickform2 callback style render css
|
Community Events
Don't see your event here? Let us know!
|