 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
NetTuts.com: Building Ribbit in PHP
by Chris Cornutt January 04, 2013 @ 10:22:48
In the first part of a new series on NetTuts.com, they started on the creation of a full web application (a Twitter clone). The first article covered the CSS and using LESS to create an interface. In this second post they get into the PHP backend, opting to create it without a framework on the first shot.
In the initial entry in this series, we took care of the UI-aspect of our Twitter-clone, called Ribbit. Now, we'll begin coding the application in a number of languages. This lesson will leverage standard PHP (with homegrown MVC), but, in future articles, we'll review other implementations, such as with Rails or Laravel.
They provide all the code you'll need, the database table structure to power it (MySQL) and the examples of a model, router and basic MVC stack to handle the requests. They help you make a user creation and login system as well as a few other pages ("buddies", "make a post" and a few others). You can also download the source from their Github account if you want it all in one shot.
voice your opinion now!
ribbit backend tutorial series css less mvc
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
Ibuildings techPortal: lessphp PHP implementation of Less CSS
by Chris Cornutt December 17, 2010 @ 09:49:54
On the Ibuildings techPortal today there's a new tutorial from Robert Raszczynski with his look at the lessphp project - a native PHP implementation of the LESS CSS framework.
In a nutshell, Less CSS is a tool that lets you simplify your CSS style sheet and allows you to extend limited CSS functionality by introducing variables, mixins, operations and nested rules. The original implementation is written in Ruby; however, there is a PHP solution based on LESS CSS called lessphp.
He mentions the good and the bad about using LESS - it can speed up your CSS development time by making it more familiar but it also comes with the caveat that the CSS files have to be generated each time an update is made. He covers some of the basic features of lessphp including variables, mixins, nested rules, operations (improving on already defined rules) and being able to use multiple .less files. He includes a XML snippet that can be dropped into your Ant (or Phing) build to run the generation at deployment time.
voice your opinion now!
lessphp less css framework tutorial features
NETTUTS.com: How to Squeeze the Most out of LESS
by Chris Cornutt October 29, 2010 @ 10:18:50
On the NETTUTS.com site today there's a new tutorial about using the LESS CSS tool to get the most out of the styling of your website. The tutorial uses the PHP implementation by Leaf Corcoran to accomplish the same things as the Ruby library offers.
During a sick day a few weeks ago, I got around to something I've been meaning to look at for about a year: LESS. If anything web technology is worth a look, I promise LESS is. In this article, we'll look at the amazing power of LESS and its ability to streamline and improve your development process. We'll cover rapid prototyping, building a lightweight grid system, and using CSS3 with LESS.
They use an output buffering trick to handle parsing and executing the ".less" CSS-based files through the library and spit the parsed version back out the other side. There's plenty of examples of how to use the LESS syntax ending up in their previously mentioned grid system using mixins, some cross-browser CSS3 and the CSS3 Pie tool.
voice your opinion now!
less css tutorial csspie stylesheet
php|architect Blog: Less Code isn't Always Better
by Chris Cornutt May 03, 2010 @ 13:16:59
On the php|architect blog Keith Casey has a new post that suggests something a bit counterintuitive to what a lot of developers think about their code - less code isn't always better.
Everyone says "I could build that in an afternoon/weekend/marathon session of caffeine-fueled code-debauchery" but to actually do something well, unsurprisingly, it usually takes longer.
He gives an example of this forum script that's under 1KB of code (949 bytes or so) and has some of the basic features of any forum software out there. Keith talks about the software - the features included, the included security, how it uses quotes to its advantage and how it only uses the basic functionality of PHP to make it all work.
Keith also includes a few criticisms of the code like how it uses short tags, the lack of linebreaks, using $_REQUEST and a few more.
To be blunt, it's not pretty and doesn't have many features, but honestly, I fluctuate between terrified and impressed by the feat. [...] More than anything, it's refreshing and fascinating to see what someone can do when they set clear, simple, direct priorities and focus exclusively on those.
voice your opinion now!
less code opinion forum example
Brendon's Blog: 10 PHP functions you (probably) never use
by Chris Cornutt January 15, 2010 @ 11:27:57
New from his blog Brendon has a list of what he thinks are ten PHP functions you'll never use.
When scripting in PHP, we often restrict ourselves to a limited number of API functions: the common ones, like print(), header(), define(), isset(), htmlspecialchars(), etc. [...] The PHP API actually offers a lot of functionality, some useless and some useful; often seldom used. I have been looking through the available functions and was interested to find some really cool functions that I should have known about.
Here's his list of functions, some of which are more on the "special needs" list than the "never use" list:
voice your opinion now!
function less used opinion
|
Community Events
Don't see your event here? Let us know!
|