Kohana: Buffering output on view and rendering it before in the source code

Sometimes you need to hack the order the source code is going to be rendered in a view: – You want an extra piece of CSS that only aplies to that view, so you think it's not worth creating a single CSS file and including in your mashed file –… Continue reading

Kohana: core, adding submodules, customization

After cloning the repository, let's add the Kohana core, a few modules and customize the installation: 1.  git submodule add git://github.com/kohana/core.git modules/system git submodule add git://github.com/kohana/database.git modules/database git submodule add git://github.com/kohana/cache.git modules/cache git submodule add git://github.com/kohana/image.git modules/image git submodule add git://github.com/kohana/pagination.git modules/pagination   2. Initialize the modules   $ git… Continue reading

Kohana 3.2.x: How to install taking advantage of submodules

I have improved my Kohana 3.2.x installation steps. This new way takes advantages of submodules with Git thus making your life easier when upgrading to a new version, assuming it's backwards compatible. This guide will assume you have the following structure for your website:   root/html   <!– public html folder… Continue reading

Great way to integrate SwiftMailer and Kohana 3

Just found this post: http://www.flynsarmy.com/2010/06/integrating-swift-mailer-into-kohana-3/ by Flynsarmy showing the simplest way to integrate SwiftMailer and Kohana 3 Create the following files/folders: /modules/swiftmailer /modules/swiftmailer/init.php /modules/swiftmailer/classes Inside /modules/swiftmailer/classes/ drop the official latest build of Swift Mailer. Enter the following into init.php. <?php require Kohana::find_file(‘classes’, ‘Swift-4.0.6/lib/swift_required’); There. Wasn’t that easy? Remember to enable… Continue reading

My current methods while using Kohana 3.0.8 – part 1

I’ve finally decided to get started on documenting how I’ve been using this wonderful framework. So if you’re patient enough to deal with my crazy schedule (meaning this series may take a while to be finish), fasten your seatbelt: First of all: Know your environment (your public html folder, a… Continue reading

Playing around with Kohana v3

New Kohana version is out, grab it from here: http://dev.kohanaphp.com/projects/kohana3/files And again, extract to a folder on your web server. On good thing to do is extract both “Application” and “System” into a folder accessible to the user your webserver runs (usually, apache, nobody, httpd) and change the paths inside… Continue reading

Working with Kohana PHP Framework v2.3.4

Let’s start working with Kohana (I’ve actually been working with it for a while and thought would be nice to share my experiences)! First thing you want to do is download it and extract it to a folder on your webserver. You can read about it and download it at:… Continue reading