[Solar-talk] Starting with Solar 0.20
Paul M Jones
pmjones at solarphp.com
Wed Jun 28 12:54:55 PDT 2006
On Jun 28, 2006, at 2:37 PM, Stuardo -StR- Rodríguez wrote:
> Ok, I installed php 5.1.4 with PDO from dexter rep for Ubuntu
> Dapper. The one
> that comes with Ubuntu does not have PDO
>
> Then I started understanding Solar as in the tutorial in
> http://solarphp.com/index.php/docs/read/Main/SkeletonApp
>
> http://eva/~str/solar/index.php/
>
> here, I get the nice HelloWolrd example running and everything is ok
>
> The problem start when I get to the "View" part, When I try to see
> the Example
> App in
>
> http://eva/~str/solar/index.php/Example
>
> I get:
>
>
> Fatal error: Uncaught exception 'PDOException' with message
> 'SQLSTATE[HY000]
> [14] unable to open database file'
...
> I do not understand why, because I haven't reach the DB tutorial...
> What could it be?
Ah yes, this is because Solar_App::_setup() tries to connect to a
database. Instead of ...
Solar::loadClass('Solar_App');
class Vendor_App_Example extends Solar_App {
.. try this:
Solar::loadClass('Solar_Controller_Page');
class Vendor_App_Example extends Solar_Controller_Page {
This is my fault, I will modify the documentation.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list