 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Extending Twig Templates: Inheritance, Filters, and Functions
by Chris Cornutt April 16, 2013 @ 11:05:22
On PHPMaster.com today there's a new tutorial for the Twig templating users out there showing you how to extend your templates via inheritance, filters and functions - all abilities already built in to the tool.
When working within an MVC architecture, it's common to use a template library to populate the dynamic content of our views. There are dozens of such libraries available for PHP, but Twig is one of the standouts because of the ability to extend core features with custom implementations. In this article we'll explore how Twig templates can be extended using template inheritance, filters, and functions.
He starts first with some of the common limitations of templating frameworks (extension) and how Twig gets around this. He shows the use of the "extends" keyword and the "block"/"endblock" for splitting up the page into reusable chunks. He also shows how to use filters and functions in your Twig tags, allowing for more customized content and functionality for your output.
voice your opinion now!
taig template tag filter function inheritance tutorial
7PHP.com: Zend Certifications Tips & Tricks - Michelangelo van Dam
by Chris Cornutt February 04, 2013 @ 11:22:16
On 7PHP.com today there's a new interview posted, a different kind of one from their usual "community spotlight" series. In this new article they talk with Michelangelo van Dam about the Zend Certified Engineer test and any advice he can offer to those wanting to take it.
This is the 1st set of Zend Certification Tips and Advice to help anyone taking either of the two Zend Exams powered by Zend Technologies: the Zend PHP Certification Exam and/or the Zend Framework Certification Exam. The aim being to help people who want to sit for those exams and inform them what it is all about & what to expect by hearing it from (pro) PHP Guys who have already been through it, that is.
There's a long list of questions in the interview covering a wide range of things about the test everything from what its about out to some of Michelangelo's own opinions about the tests:
- Can you briefly give us an idea of what ZC is about, what it tries to achieve?
- Can you give us an idea of what need to be studied and what kind of stuffs we should expect..etc
- Parts of the modules that you think is more complex and one should pay special attention to?
- What TWO questions can you remember that you can share with us
- Do you recommend PHP guys to get certified?
Check out the answers to these and more questions in the full interview.
voice your opinion now!
zend certification zce framework zfce interview michaelangelovandam opinion
PHPMaster.com: PHP and the i, Part 2
by Chris Cornutt January 24, 2013 @ 12:57:03
On PHPMaster.com today they've posted the second part of their "PHP and the i" series (here's part one). In this new article, he looks a bit closer at what kind of knowledge is needed to develop PHP on the IBM i.
In this somewhat risqué episode, we'll look at just what you need to be able to do development work on the i. Many people in the i world will that PHP is native to the i, but I don't think that's really true. To me, native means that it just runs, no problems or questions asked, nothing special needs to be done, it just sort of happens like when you see someone across a crowded room and know she/he is "the one". That's not the way it works with PHP and the i.
He starts off by talking about Zend and its contribution to the IBM i's abilities to run PHP through RPG thanks to a "bridge" they created. There are other options, but as he points out, they're not as well developed (or supported) as Zend's offering (being Zend Server, Zend Studio and Zend Framework).
He then talks about the details of creating and running scripts - where to put them, what kind of RPG knowledge you'll need to implement them, and which parts of the typical MVC stack work best where.
voice your opinion now!
ibmi systemi as400 development zend rpg mvc
Qafoo.com: Black Magic with Regular Expresions
by Chris Cornutt November 29, 2012 @ 10:21:47
If you've been mystified by regular expressions in the past and want to learn more about their effective use, you should check out these two webcasts from Qafoo - "Black Magic with Regular Expressions" and "Understanding Regular Expressions".
We are happy to announce the availability of my second Regular Expression webinar recording. It was a fun event, which I used to explain all the attendees a little bit more about the PCRE Regular Expression engine available in PHP and some other languages. I am covering some slightly advanced topics, like subpattern options, unicode and backtracking aka. greediness and performance.
You can watch these two recordings over on the Zend.com site:
voice your opinion now!
blackmagic regularexpressions regex webcast recording zend
Ulrich Kautz: PHP Validation & Sanitization
by Chris Cornutt November 28, 2012 @ 11:57:35
Ulrich Kautz has recently taken a look at validation and sanitization of data in PHP applications. He talks about several different methods - both in core PHP and in various frameworks.
Validation and sanitization are extremely important topics, any developer should be aware of. Especially with powerful, modern frameworks, people seem to forget about the underlying concepts and wrongly assume it's already solved somehow. Correctly used and early on integrated, both play the central role in defending against attacks on your application.
He talks a bit about why you should care about the topic, some of the common issues/threats that could come up because of it and some general information on what validation and sanitization are. He looks at implementation with the filter extension and touches on functionality from Symfony 2, Laravel 3, CakePHP 2 and shares his own data filtering module with examples of its use.
voice your opinion now!
validation sanitization framework filter extension tutorial security
|
Community Events
Don't see your event here? Let us know!
|