- Continue reading Creating a slack bot using PHP to monitor your envato sales
I was at Drupalcon in Barcelona last week and talked to a lot of cool people. Michelle Sanver is one of them.
The post Interviewing Michelle Sanver and discussing Drupal 8, Drupalcon & Michelle’s move to Zürich appeared first on Thijs Feryn's blog.
cTools is one of those critical Drupal 7 modules many others depend on. It provides a lot of APIs and functionality that makes life easier when developing modules. Views and Panels are just two examples of such powerhouses that depend on it.
cTools makes available different kinds of functionality. Object caching, configuration exportability, form wizards, dialogs and plugins are but a few. A lot of the credit you would normally attribute to Views or Panels is actually owed to cTools.
In this article, we are going to take a look at cTools plugins, especially how we can create our very own. After a brief introduction, we will immediately go hands on with a custom module that will use the cTools plugins to make defining Drupal blocks nicer (more in tune to how we define them in Drupal 8).
cTools plugins in Drupal 7 (conceptually not so dissimilar to the plugin system in Drupal 8) are meant for easily defining reusable bits of functionality. That is to say, for the ability to define isolated business logic that is used in some context. The goal is to set up that context and plugin type once, and allow other modules to then define plugins that can be used in that context automatically.
If you’ve been developing Drupal sites for more than a year you’ve probably encountered cTools plugins in one shape or form. I think the first plugin type we usually deal with is the
content_typeplugin which allows us to create our own custom panel panes that display dynamic content. And that is awesome. Some of the others you may have encountered in the same realm of Panels are probably
access(visibility rules). Maybe even
arguments. These are all provided by cTools. Panels adds to this list by introducing
stylesthat we normally use for creating Panels layouts and individual pane styles. These are I think the more common ones.
However, all of the above are to a certain extent a black box to many. All we know is that we need to define a hook to specify a directory and then provide an include file with some definition and logic code and the rest happens by magic. Going forward, I would like us to look into how a plugin type is defined so that if the case arises, we can create our own plugins to represent some reusable bits of functionality. To demonstrate this, we will create a module that turns the pesky hook system of defining custom Drupal blocks into a plugin based approach similar to what Drupal 8 is using.
Continue reading %Building Custom cTools Plugins in Drupal 7%
As of October I'm switching things up a bit, and giving the freelance life a shot again.
It's a bit of a scary step! If you know anyone who might need a PHP programmer for a short or long-term project, perhaps you can consider me!
My resume is right here at: http://evertpot.com/resume.html. My end game is to work regularly for a small set of recurring customers, but any step that helps me get there is very appreciated!
I really don’t often comment on the news but the last couple of weeks I have seen a consistent pattern of attack on WebSummit by those who really should know better, I won’t name names but I count the people who are attacking WebSummit + Paddy Cosgrove amongst my friends and I want to put forward a view from someone who is independent of any commercial bias – i.e. I don’t own a newsite (that is affiliated with other events) or run my own events.
I have been to WebSummit for the last 4 years (it could be 5 I lose track!) – I remember the day very vividly that Paddy reached out to me out of the blue with what seemed at the time like a crazy made up story, he told me he was getting together hundreds of founders, including the likes of Jack Dorsey, Chad Hurley, Michael Birch and many more for a Founders only event, I must admit at the time I was pretty damn skeptical, I had never heard of the event which was unusual, and it just seemed ludicrous that you could get that number of big name founders to all gather together in one spot. I called a few other Founder friends and they confirmed they were also going. I immediately called Paddy back and said I would attend.
I won’t cover F.ounders in detail but it has been over the years (along with Founders Forum) been the most important event I attend each year – every year I meet and connect with people who have in some way massively influenced me and help me on the journey. Also the importance of F.ounders is that it is in itself a massive draw – and it lets Paddy use that to get the biggest names in the world on stage.
Every year I spend a good amount of time at the WebSummit as well (F.ounders occurs after the end of WebSummit) – I don’t often sit and listen to the talks, but given the big names that every year speak and that the halls are bursting to the seams most of the time I can only believe they are good. I like to spend my time walking the halls looking at what the startups are doing – and this gets to the core of the attacks that WebSummit is getting, that he is charging for startups to attend.
As a starting point – every year when I walk around what absolutely blows me away is that the halls are literally solid with people, that every single pod / booth with a startup on is overloaded with attendees. DataSift has had booths at pretty much every major Tech conference – and I can tell you 90% of them you spend most of the time twiddling your thumbs while you wait for people to come out of the sessions. That includes other big conferences like Techcrunch Disrupt (we were finalists in 2010? in SF)
Back to the money – I have had to pay for pretty much every event we have had a booth at, (I think we got some free space one year back in the days of FOWA) – but in general we paid (in cash or sometimes in-kind of supply of our own services), and each time I did what every startup should do – look at the cost and look at what the potential upside is. It is massively disingenuous to say that startups should not pay, everyone has a business model for events, things have to get paid for, booth setup costs are huge, so either sponsors pay, investors pay, attendees pay, or the startups pay or some ratio of all of them.
I don’t like ‘free’ – it means I have become the monetisation – i.e. someone else is paying for me to be there – and they want something from me. To say anything different is just trying to hide the model.
So in summary – in general with your eyes wide open – you mostly get what you pay for in this world (always negotiate!) – WebSummit is an amazing event for getting in front of a huge audience of developers and investors.
Truncated by Planet PHP, read more at the original (another 831 bytes)
I'm very excited to announce that some of my content is featured in the PHP Learning Path from O'Reilly. The Learning Paths are a good way to buy a bundle of content from different people on related topics, and the introductory pricing is always a good deal! Their newest offering is the PHP Learning Path, which has a video course on PHP and MySQL, my intermediate PHP Video course (they wouldn't let me call it "all the things Lorna thinks PHP developers need to know" unfortunately!) and also my video course Git for Web Developers which has a bunch of PHP in it as well as my best git tips and tricks.
I think it's a pretty well-rounded collection and it's only $99 for a couple of weeks, so get the PHP Learning Path here and let me know what you think?
PHP Learning Path from O'Reilly was originally published on LornaJane by Lorna. Lorna is a web development consultant, tech lead, author, trainer, and open source maintainer, and she is occasionally available for freelance work.
- By Ashraf GheithMany PHP applications require to export documents in Microsoft Word formats. However, most PHP developers only have experience in generating html Web pages.
Read this article to learn how to quickly create Microsoft Word DOCX format using html templates.