Am 25.11.2009 17:02, schrieb Jigal sanders:
solved:
it was a typu
OUCH
On Wed, Nov 25, 2009 at 5:01 PM, Jigal sanders <jigalroecha@gmail.com> wrote:
Don't know if it works without adapter.
This is how my recourse file looks like:
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.db.isDefaultTableAdapter = trueresourses.db.params.dbname = ladosa
resourses.db.adapter = mysqli
resourses.db.params.host = localhost
resourses.db.params.username = root
resourses.db.params.password =
I didn't change anything in my project. Created it using zf tool
This is the only method in my bootstrap file
protected function __initAutoload(){
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH,
));
return $autoloader;
}
On Wed, Nov 25, 2009 at 4:57 PM, <Christoph@vonaffenfels.de> wrote:
Does your database work without the auth adapter?
So have you tried just a simple query?
I think you must use resources.* for every resource in your application, otherwise it won't work.
A possible other issue could be your bootstrap call in the index.php file.
How do you call the bootstrap() method, with or without any parameters?
Am 25.11.2009 16:54, schrieb Jigal sanders:still the same error
On Wed, Nov 25, 2009 at 4:52 PM, <Christoph@vonaffenfels.de> wrote:
Because it's bogus, use:
resources.db.isDefaultTableAdapter = true
Am 25.11.2009 16:50, schrieb Jigal sanders:doesn't work.
On Wed, Nov 25, 2009 at 4:49 PM, Andre Fernandes <fernandes.andre@gmail.com> wrote:
Correcting myself,
resourses.db.isDefaultTableAdapter = true
Try to insert at your INI file the following line:
Ignore the other mail answer...
Andre.
2009/11/25 Jigal sanders <jigalroecha@gmail.com>
Hello everyone.
I am following this tutorial. http://www.youtube.com/user/integral30#p/c/90503BB7541343E9/7/4oNo-l6c-H0
But i am getting an error:
Catchable fatal error: Argument 1 passed to Zend_Auth_Adapter_DbTable::__construct() must be an instance of Zend_Db_Adapter_Abstract, null given, called in K:\xampp\htdocs\nrka\application\controllers\AuthenticationController.php on line 44 and defined in K:\xampp\php\PEAR\Zend\Auth\Adapter\DbTable.php on line 128
And this is the method:
private function getAuthAdapter(){
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Db_Table::getDefaultAdapter());
$authAdapter->setTableName('persons')
->setIdentityColumn('per_email')
->setCredentialColumnt('per_passoword')
->setCredentialTeatment("MD5");
return $authAdapter;
}
I have set the resources in my ini file:
resourses.db.adapter = mysqli
resourses.db.params.host = localhost
resourses.db.params.username = root
resourses.db.params.password =
resourses.db.params.dbname = zftutorial
That's going wrong?
--
André de Camargo Fernandes
--
Met vriendelijke groet,
Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
-- ------------------------------------------------------------ Christoph Rust Senior Software Developer von Affenfels GmbH Kronenstraße 40 D-70174 Stuttgart Telefon +49 (0) 711 305 890-36 Telefax +49 (0) 711 305 890-90 http://www.vonaffenfels.de | christoph.rust@vonaffenfels.de Sitz der Gesellschaft: Stuttgart Handelsregister Stuttgart HRB 728101 Geschäftsführer: Christian Jehle, Jürgen Knispel
--
Met vriendelijke groet,
Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
-- ------------------------------------------------------------ Christoph Rust Senior Software Developer von Affenfels GmbH Kronenstraße 40 D-70174 Stuttgart Telefon +49 (0) 711 305 890-36 Telefax +49 (0) 711 305 890-90 http://www.vonaffenfels.de | christoph.rust@vonaffenfels.de Sitz der Gesellschaft: Stuttgart Handelsregister Stuttgart HRB 728101 Geschäftsführer: Christian Jehle, Jürgen Knispel
--
Met vriendelijke groet,
Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
--
Met vriendelijke groet,
Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
-- ------------------------------------------------------------ Christoph Rust Senior Software Developer von Affenfels GmbH Kronenstraße 40 D-70174 Stuttgart Telefon +49 (0) 711 305 890-36 Telefax +49 (0) 711 305 890-90 http://www.vonaffenfels.de | christoph.rust@vonaffenfels.de Sitz der Gesellschaft: Stuttgart Handelsregister Stuttgart HRB 728101 Geschäftsführer: Christian Jehle, Jürgen Knispel
没有评论:
发表评论