Friday, May 24, 2013

fuelphp controller

Fuelphp controller:


COREPATH/classes/database/pdo/connection.php @ line 208


COREPATH/classes/database/pdo/connection.php @ line 208

203                        // other database error, cleanup the profiler
204                        isset($benchmark) and  \Profiler::delete($benchmark);
205
206                        // and convert the exception in a database exception
207                        $error_code is_numeric($e->getCode()) ? $e->getCode() : 0;
208                        throw new \Database_Exception($e->getMessage().' with query: "'.$sql.'"'$error_code$e);
209                    }
210                }
211
212                // no more attempts left, bail out
213                else

Please help me on fulephp error.

Thursday, May 23, 2013

Fuel\Core\Database_Exception [ 1045 ]: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)


Fuel\Core\Database_Exception [ 1045 ]: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

COREPATH/classes/database/pdo/connection.php @ line 94

89            $this->_connection = new \PDO($dsn$username$password$attrs);
90        }
91        catch (\PDOException $e)
92        {
93            $error_code is_numeric($e->getCode()) ? $e->getCode() : 0;
94            throw new \Database_Exception($e->getMessage(), $error_code$e);
95        }
96
97        if ( ! empty($this->_config['charset']))
98        {
99            // Set Charset for SQL Server connection


Please suggest why i am getting this error

ErrorException [ Parsing Error ]: syntax error, unexpected T_DOUBLE_ARROW APPPATH/config/db.php @ line 8


APPPATH/config/db.php @ line 8


8Fuel::DEVELOPMENT => array(
 9   'type'         => 'mysql',
10   'connection'   => array(
11      'hostname'   => 'localhost',
12      'database'   => 'fuelin',
13      'username'   => 'root',


Please suggest problem with above code? 

ErrorException [ Error ]: Class 'Orm\Model' not found


ErrorException [ Error ]: Class 'Orm\Model' not found

APPPATH/classes/model/blogtest.php @ line 5

 0
 1<?php
 2use Orm\Model;
 3
 4class Model_Blogtest extends Model
 5{
 6    protected static $_properties = array(
 7        'id',
 8        'name',
 9        'description',
10        'created_at',


If you are getting problem in development on fuelPHP. Please Load ORM package by un commenting  

 'packages'  => array(
   'orm','auth'
   ), on  app/config/config.php file.