php
Learning Kohana php framework
by Mark on Jul.18, 2009, under php
An upcoming project required a login functionality but my php skills only go as far as includes and sending forms to email. So I did some searching and came across kohana php framework. I had read some good reviews of kohana and found out that they have an authorisation (login) module…
I tried a few tutorials to learn about kohana but they were too technical for a php n00b like me… then I came across kohana 101. I highly recommend this tutorial if you are a beginner when it comes to php and kohana framework.
The kohana 101 tutorial will walk you through the very basics and will take you about 2 or 3 hours to complete. By the end of the tutorial you will know how to make a simple site in kohana with products, pagination and an email form.
–
You will probably want to remove the index.php from the url’s, this page will tell you how. But it doesnt mention that you also have to edit application/config/config.php
line 23
$config['index_page'] = 'index.php'; to $config['index_page'] = '';
Good Luck
php include causing unwanted gap in web page
by Mark on Apr.18, 2009, under php
So, I was working on a new site and wanted to have the left menu as a standard php include:
<?php include("solutionsMenu.php"); ?>
But, when I loaded the page there was a big gap right above where the include was being rendered. It took me an hour to find out that I had accidentally saved the solutionsMenu.php with a ‘bite order mark’ which was adding a character at the very beginning of the file!
In your text editor you may have the option to set the encoding for the file. Make sure you are saving as UTF-8 not ‘UTF-8 with BOM’. Save the file without a BOM and the problem will disappear
Looking for something?
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!
















