I've created a bunch of errors in a file under APPPATH/messages/validate.php with a bunch of common messages such as...
return array(
'not_empty' => ':field must not be empty.',
'matches' => ':field must be the same as :param1',
'regex' => ':field does not match the required format',
'exact_length' => ':fi...
So this gets auto generated through the controller and I think I'm just overlooking something but the output is just like this
formatting is acting weird, sorry
google.load("maps", "2.x", {"language" : "en"});
function initialize() {
if (GBrowserIsCompatible()) {
// Initialize the GMap
var map = new google.maps.Ma...
Hi there,
I would like to know about the compatibility between upcoming versions of KO3. I have heard that once 3.1 comes in, it won't be easy to simply upgrade to it from kohana 3.0 (Wordpress upgrade is pretty swift from 2 to version 3)
If I create my project in KO3 (currently using 3.0.6.2), what are the chances that my project will...
Hi there, i'll try and be as clear as possible.
I'm working on some form validation using the wonderful kohana framework. However i have come at a crossroads and not sure whether the way i have taken is a wise choice.
Basically, i have a date selector using several select boxes (i toyed with the idea of using javascript date pickers b...
Derek Allard recently announced that new projects should use CodeIgniter 2.0 whose code is well baked and it is fully PHP5.
What concerns me though is the process seems ad-hoc, there was no beta though he recommends this as being stable for all future code and it is still making updates off 1.x instead of a rewrite.
There is also littl...
I would like to install Kohana PHP framework. The site is on a shared web hotel. I have tried to follow the instructions on Kohana's website.
Downloaded the latest stable realse (3.0.6.2)
Unzipped the file to create a kohana directory
Uploaded the folder to my shared hosting website.
opened the url application/bootstrap.php
...and here...
Hello everybody,
In my Bootstrap.php I've deactivated the Profiler (or is it better to be activated?), and the Errors.
Now if somebody is calling an Url, maybe: /notexist, and there is no action_notexist(), the Site is blank.
My Question: How can I create a main Error Template, which should be loaded instead of the white page. E.g. If...
So there is a drupal installation with a subfolder with kohana 3 in it. Trying to redirect the URL to something much more clean
RewriteRule ^newpage$ /registered_affiliates/index.php/affiliates/splash
Thanks
...
The code for my encryption controller is shown below. This works fine by itself in a separate working directory from my kohana installation.
class Controller_Crypt extends Controller_Home
{
public static function Encrypt_This($sensitive)
{
//file path must be relative to directory, also derp.
$pubkey = open...
Hello.
I was writing a PHP (Kohana) app and I saw that the controller index pages could be seen with & without /index.
http://plugb.com/ & http://plugb.com/index
In order to avoid duplicated content, I did this:
$clean_url = str_replace('index','',$this->request->uri);
if($clean_url !== $this->request->uri)
{
$this->request->redire...
I'm attempting to install CKeditor on Kohana 2. I've dropped the ckeditor folder into libraries/ and put ckeditor.php alongside the ckeditor folder in libraries/. I'm trying to call ckeditor in my controller with the following:
$this->ckeditor = new Ckeditor('FCKEDITOR1');
$this->ckeditor->BasePath = 'application/libraries/ckeditor/';
$...
I'm using Kohana 3. Does anyone knows why param('controller') result is NULL.
Routing:
Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'page',
'action' => 'index',
));
URL: http://localhost/application/page/index/1
Params calls:
$param = Request::instance()->param('controller'...
I have a products model with 2 many to many relationships defined.
protected $_has_many = array
(
'foodcats' => array('model' => 'foodcat', 'through' => 'products_foodcats'),
'foodgroups' => array('model' => 'foodgroup', 'through' => 'products_foodgroups')
)
I need a query where I find products with a given foodcat id and a given f...
Just curious as to what is the 'Kohana' way of getting variables from the query string?
The best that I could come up with is parsing the $_GET var with the Arr class. Anybody have a better way to do this?
// foo?a=1&b=2
function action_welcome()
{
echo('a = '.Arr::get($_GET, 'a', '0'));
echo('b = '.Arr::get($_GET, 'b', '0'));...
Being a web development over the years, I have good experiences on php, xhtml, css, javascript, ajax, etc. I also work with some old php libraries like Smarty, PEAR, etc. Recently I decided to use a PHP framework, and I started to learn/use CakePHP. It's not really simple for an ancient philosopher like me, but I think it's a valuable ex...
i made model which sends through controller to template neccessary data from database and doing picture resize for each picture path in the database.
don't know why but there is some error (subj).
here is code of this class method of model http://fpaste.org/ct2I/
...
Hi every one.
This is driving me crazy. For some reason, Jelly module throws a 500 internal error. I have no idea why it does it, or how to solve this.
When I remove jelly module folder from the server or simply rename any of the jelly module files, the error disappears (Kohana throws an error because Jelly Class is not found which is ...
I'm currently writing a couple of MVC sites using Kohana as my framework. Each has a simple admin area where the admin can upload and edit content. I'm currently storing the admin's user model in a session and checking whether or not they're an administrator with the following method:
private function checkAdmin()
{
if (!isset($_S...
%PDF-1.7 3 0 obj << /Type /Page /Parent 1 0 R /LastModified (D:20100723054757+08'00') /Resources 2 0 R /MediaBox [0.00 0.00 595.28 841.89] /CropBox [0.00 0.00 1687.40 2386.46] /BleedBox [0.00 0.00 4783.17 6764.77] /TrimBox [0.00 0.00 4783.17 6764.77] /ArtBox [0.00 0.00 4783.17 6764.77] /Contents 4 0 R /Rotate 0 /Group << /Type /Group ...
I've hit a bit of a snag with one of my projects. Like a lot of nerds, I decided to create my own video game review site. Reviews are stored in the database, and can be retrieved via the title of the game with a url like:
http://www.example.com/reviews/{gameName}/{optional pageOfReview}
Unfortunately, when testing edge cases, I came ...