Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Sierpień, 2017

TutsPlus.com: How CodeIgniter’s Hook System Works

TutsPlus.com: How CodeIgniter’s Hook System Works

The TutsPlus.com site has a tutorial posted that introduces you to CodeIgniter’s hook system and details how it all works. The tutorial goes through each hook already included and shows how to create a custom one to fit your needs.

As a CodeIgniter developer, sometimes you end up in a situation that requires you to alter the core of the framework or the execution flow to fulfill your custom requirements. Of course, it’s never recommended to modify the core files as it makes the upgrade process cumbersome. Luckily, the CodeIgniter framework comes with the hooks system, which allows you deal with this scenario.

In this article, we’ll start with an introduction to the hooks system in the CodeIgniter framework. Then, we’ll discuss the different types of hooks available. And finally, we’ll grab this opportunity to explore the creation of custom hooks.

They start with an overview of the hooks system and what kind of functionality it offers to the developer. The article then goes through each of the default ones built in to the framework including system hooks, controller hooks and "overrides" hooks. It then finishes off with a look at creating a custom hook and how to add it into the system for use across the application.

Source: http://www.phpdeveloper.org/news/25508

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

TutsPlus.com: How CodeIgniter’s Hook System Works

TutsPlus.com: How CodeIgniter’s Hook System Works

The TutsPlus.com site has a tutorial posted that introduces you to CodeIgniter’s hook system and details how it all works. The tutorial goes through each hook already included and shows how to create a custom one to fit your needs.

As a CodeIgniter developer, sometimes you end up in a situation that requires you to alter the core of the framework or the execution flow to fulfill your custom requirements. Of course, it’s never recommended to modify the core files as it makes the upgrade process cumbersome. Luckily, the CodeIgniter framework comes with the hooks system, which allows you deal with this scenario.

In this article, we’ll start with an introduction to the hooks system in the CodeIgniter framework. Then, we’ll discuss the different types of hooks available. And finally, we’ll grab this opportunity to explore the creation of custom hooks.

They start with an overview of the hooks system and what kind of functionality it offers to the developer. The article then goes through each of the default ones built in to the framework including system hooks, controller hooks and "overrides" hooks. It then finishes off with a look at creating a custom hook and how to add it into the system for use across the application.

Source: http://www.phpdeveloper.org/news/25508

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

TutsPlus.com: How CodeIgniter’s Hook System Works

TutsPlus.com: How CodeIgniter’s Hook System Works

The TutsPlus.com site has a tutorial posted that introduces you to CodeIgniter’s hook system and details how it all works. The tutorial goes through each hook already included and shows how to create a custom one to fit your needs.

As a CodeIgniter developer, sometimes you end up in a situation that requires you to alter the core of the framework or the execution flow to fulfill your custom requirements. Of course, it’s never recommended to modify the core files as it makes the upgrade process cumbersome. Luckily, the CodeIgniter framework comes with the hooks system, which allows you deal with this scenario.

In this article, we’ll start with an introduction to the hooks system in the CodeIgniter framework. Then, we’ll discuss the different types of hooks available. And finally, we’ll grab this opportunity to explore the creation of custom hooks.

They start with an overview of the hooks system and what kind of functionality it offers to the developer. The article then goes through each of the default ones built in to the framework including system hooks, controller hooks and "overrides" hooks. It then finishes off with a look at creating a custom hook and how to add it into the system for use across the application.

Source: http://www.phpdeveloper.org/news/25508

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Adding a user to your Bluemix space

Rob Allen: Adding a user to your Bluemix space

Rob Allen continues his series looking at the "serverless PHP" environment that is a part of the IBM Bluemix offering. In his previous post he introduced some of the basic concepts of using the service and helped you create a sample "Hello World" function. In this new tutorial he shows how to update that environment and create a user and allow them access to the PHP functions already created.

I’m at the stage where I need to give another developer access to my IBM Cloud Functions actions. I’m not really an infrastructure person and I found the user management pages on the Bluemix console incomprehensible, so used the command line. This is how I did it so that I don’t have to work it all out again.

There’s only two steps to the process: adding the user to your organization and adding the user to the space. He goes through both steps, explaining how it works and the command line calls to make it happen. This also provides the added user with access to related resources (like databases).

Source: http://www.phpdeveloper.org/news/25507

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Rob Allen: Adding a user to your Bluemix space

Rob Allen: Adding a user to your Bluemix space

Rob Allen continues his series looking at the "serverless PHP" environment that is a part of the IBM Bluemix offering. In his previous post he introduced some of the basic concepts of using the service and helped you create a sample "Hello World" function. In this new tutorial he shows how to update that environment and create a user and allow them access to the PHP functions already created.

I’m at the stage where I need to give another developer access to my IBM Cloud Functions actions. I’m not really an infrastructure person and I found the user management pages on the Bluemix console incomprehensible, so used the command line. This is how I did it so that I don’t have to work it all out again.

There’s only two steps to the process: adding the user to your organization and adding the user to the space. He goes through both steps, explaining how it works and the command line calls to make it happen. This also provides the added user with access to related resources (like databases).

Source: http://www.phpdeveloper.org/news/25507

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Sebastian De Deyne: Theme-Based Views in Laravel Using Vendor Namespaces

Sebastian De Deyne: Theme-Based Views in Laravel Using Vendor Namespaces

Sebastian De Deyne has a new post to his site showing the Laravel users out there a method for theme-based views in their applications using vendor namespacing in a multi-tenant environment.

I’m building a multi-tenant Laravel application. One of the requirements of the project is that every client can have their own theme based on their corporate guidelines. By default a few css adjustments will suffice, but some clients request a completely different template.

Conditionally loading a different stylesheet per client is pretty trivial, but in order to use a completely different view per theme you quickly end up typing the same thing over and over across various parts of your application.

[...] There aren’t any huge issues here, but all together it feels like we should be able to do better. There are a few strategies to clean this up, but I just want to talk about vendor namespaces today.

He gives an example of a view setup that makes use of the current client/customer’s namespace to define the path to the template. He found this leading to a lot of redundancy and figured out a better way: using namespaces. Namespacing is mainly made for package development but can be use here to create a "theme" namespace. This namespace can then be defined once and reused across the application without the need to manually build the template location string every time.

Source: http://www.phpdeveloper.org/news/25506

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Sebastian De Deyne: Theme-Based Views in Laravel Using Vendor Namespaces

Sebastian De Deyne: Theme-Based Views in Laravel Using Vendor Namespaces

Sebastian De Deyne has a new post to his site showing the Laravel users out there a method for theme-based views in their applications using vendor namespacing in a multi-tenant environment.

I’m building a multi-tenant Laravel application. One of the requirements of the project is that every client can have their own theme based on their corporate guidelines. By default a few css adjustments will suffice, but some clients request a completely different template.

Conditionally loading a different stylesheet per client is pretty trivial, but in order to use a completely different view per theme you quickly end up typing the same thing over and over across various parts of your application.

[...] There aren’t any huge issues here, but all together it feels like we should be able to do better. There are a few strategies to clean this up, but I just want to talk about vendor namespaces today.

He gives an example of a view setup that makes use of the current client/customer’s namespace to define the path to the template. He found this leading to a lot of redundancy and figured out a better way: using namespaces. Namespacing is mainly made for package development but can be use here to create a "theme" namespace. This namespace can then be defined once and reused across the application without the need to manually build the template location string every time.

Source: http://www.phpdeveloper.org/news/25506

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Popular Posts for This Week (08.25.2017)

Site News: Popular Posts for This Week (08.25.2017)

Popular posts from PHPDeveloper.org for the past week:

Source: http://www.phpdeveloper.org/news/25505

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Popular Posts for This Week (08.25.2017)

Site News: Popular Posts for This Week (08.25.2017)

Popular posts from PHPDeveloper.org for the past week:

Source: http://www.phpdeveloper.org/news/25505

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Popular Posts for This Week (08.25.2017)

Site News: Popular Posts for This Week (08.25.2017)

Popular posts from PHPDeveloper.org for the past week:

Source: http://www.phpdeveloper.org/news/25505

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>