[fw-general] Validate/Filter decimal number for currency?

2007-09-26 Thread Aljosa Mohorovic
is there any validator/filter i can use for currency?
i need something to check if submitted data is valid number for currency/money.

ZF contains Int, Float, Digits - which one to use?

Aljosa


[fw-general] new stdClass()

2007-09-26 Thread Kexiao Liao

The stdClass has been used in ZF in many demo examples. Does this class have
toArray() method? Does it belong to ZF only?



-- 
View this message in context: 
http://www.nabble.com/new-stdClass%28%29-tf453s16154.html#a12900437
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] new stdClass()

2007-09-26 Thread till
On 9/26/07, Kexiao Liao <[EMAIL PROTECTED]> wrote:
>
> The stdClass has been used in ZF in many demo examples. Does this class have
> toArray() method? Does it belong to ZF only?

http://www.php.net/manual/en/reserved.classes.php

Till


[fw-general] Creating a admin 'page' using ZF's MVC

2007-09-26 Thread robert mena
Hi,

I am migrating my regular apps to use ZF's MVC.   Currently I have an admin
directory where I put all my php that perform administration actions and
protect this admin with a .htaccess.

Ex. a news module

/var/www/html/news.php
/var/www/html/admin/news/search.php add.php update.php delete.php

I already have all action in a controller and they are working fine but I
need to do something in order to :
a) force the admin actions to require authentication.  I already know how to
use Zend_Auth, but need to force this for several actions if possible
without repeating myself.  Should I put in init()?
b) find out if it's better to have two separate controllers one for
'outside' usage NewsController = i.e see the news, send comments, and other
AdminNewsController for all administrative tasks.

thanks.


Re: [fw-general] Tag 1.0.2 (svn)

2007-09-26 Thread Darby Felton
Ni Niko,

A tag for the 1.0.2 release is now available:

http://framework.zend.com/svn/framework/tag/release-1.0.2/

Best regards,
Darby

Niko Sams wrote:
> Hello,
> 
> Could you please create a tag for the latest release?
> I didn't find one in here:
> http://framework.zend.com/svn/framework/tag/
> 
> thanks,
> niko
> 


Re: [fw-general] new stdClass()

2007-09-26 Thread Matthew Weier O'Phinney
-- Kexiao Liao <[EMAIL PROTECTED]> wrote
(on Wednesday, 26 September 2007, 05:58 AM -0700):
> The stdClass has been used in ZF in many demo examples. Does this class have
> toArray() method? Does it belong to ZF only?

stdClass is a PHP internal class, and can be used when you want an
object but do not want to define a class. Such a class will have no
methods other than the internal magic methods, but can have any number
of public properties; thus, no toArray() method. However, if you want to
cast it to an array, you can, and it will serialize any public
properties:

$o = new stdClass;
$o->foo = 'bar';
$o->bar = 'baz';

$array = (array) $o;
// $array now equals array('foo' => 'bar', 'bar' => 'baz')

toArray() is not a general method available to all classes; we use it in
ZF when an object may be serialized to array easily, and we standardized
on that name to make it predictable.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Validate/Filter decimal number for currency?

2007-09-26 Thread Darby Felton
Hi Aljosa,

There is currently neither a Zend_Validate_* or Zend_Filter_* class to
deal with currency values, but you might try Zend_Currency, recently
promoted to the framework core and released with 1.0.2.

Best regards,
Darby

Aljosa Mohorovic wrote:
> is there any validator/filter i can use for currency?
> i need something to check if submitted data is valid number for 
> currency/money.
> 
> ZF contains Int, Float, Digits - which one to use?
> 
> Aljosa
> 


Re: [fw-general] Creating a admin 'page' using ZF's MVC

2007-09-26 Thread till
On 9/26/07, robert mena <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am migrating my regular apps to use ZF's MVC.   Currently I have an admin
> directory where I put all my php that perform administration actions and
> protect this admin with a .htaccess.
>
> Ex. a news module
>
> /var/www/html/news.php
> /var/www/html/admin/news/search.php add.php update.php
> delete.php
>
> I already have all action in a controller and they are working fine but I
> need to do something in order to :
> a) force the admin actions to require authentication.  I already know how to
> use Zend_Auth, but need to force this for several actions if possible
> without repeating myself.  Should I put in init()?

I think I put mine in preDispatch() but init() should work as well.

> b) find out if it's better to have two separate controllers one for
> 'outside' usage NewsController = i.e see the news, send comments, and other
> AdminNewsController for all administrative tasks.

You could make the actions and use Zend_Acl - at least that is what I
would do if it's not too big of a project. If there is a lot of
backend stuff to be done it might make also sense to do another
NewsController - if complexity requires it.


Cheers,
Till


[fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread Kexiao Liao

Say If I instantiate a Zend_Db_Table_Abstract as following:
$myTable = new Zend_Db_Table_Abstract(...);

How do I get all the column names as a array for this table?


-- 
View this message in context: 
http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902065
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread hostmaster
Hi,

Actually you cannot instantiate Zend_Db_Table_Abstract as it is an
abstract class.
You have to create another class which extends Zend_Db_Table_Abstract
in order to instantiate it.

Regards.

2007/9/26, Kexiao Liao <[EMAIL PROTECTED]>:
>
> Say If I instantiate a Zend_Db_Table_Abstract as following:
> $myTable = new Zend_Db_Table_Abstract(...);
>
> How do I get all the column names as a array for this table?
>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902065
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread Bartosz Maciaszek
Hi,

Actually you cannot instantiate Zend_Db_Table_Abstract as it is an
abstract class.
You have to create another class which extends Zend_Db_Table_Abstract
in order to instantiate it.

Regards.

2007/9/26, Kexiao Liao <[EMAIL PROTECTED]>:
>
> Say If I instantiate a Zend_Db_Table_Abstract as following:
> $myTable = new Zend_Db_Table_Abstract(...);
>
> How do I get all the column names as a array for this table?
>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902065
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


Re: [fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread Kexiao Liao

If I extend Zend_Db_Table_Abstract as MyTable class, and then instantiate
MyTable class as $myTable as showing below:

$myTable = new MyTable(...);

Then how do I get all the column names as an array for this table? Thanks
for your help.





Bartosz Maciaszek wrote:
> 
> Hi,
> 
> Actually you cannot instantiate Zend_Db_Table_Abstract as it is an
> abstract class.
> You have to create another class which extends Zend_Db_Table_Abstract
> in order to instantiate it.
> 
> Regards.
> 
> 2007/9/26, Kexiao Liao <[EMAIL PROTECTED]>:
>>
>> Say If I instantiate a Zend_Db_Table_Abstract as following:
>> $myTable = new Zend_Db_Table_Abstract(...);
>>
>> How do I get all the column names as a array for this table?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902065
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902390
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread till
On 9/26/07, Kexiao Liao <[EMAIL PROTECTED]> wrote:
>
> If I extend Zend_Db_Table_Abstract as MyTable class, and then instantiate
> MyTable class as $myTable as showing below:
>
> $myTable = new MyTable(...);
>
> Then how do I get all the column names as an array for this table? Thanks
> for your help.

I wouldn't mind if you checked the manual once or so. ;)

Anyway, here it is:
http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.list-describe

You will have to query directly against the adapter, since
Zend_Db_Table does not support this, but Zend_Db (which is ultimately
"inside") does.

Till


Re: [fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread Matthew Weier O'Phinney
-- till <[EMAIL PROTECTED]> wrote
(on Wednesday, 26 September 2007, 04:43 PM +0200):
> On 9/26/07, Kexiao Liao <[EMAIL PROTECTED]> wrote:
> >
> > If I extend Zend_Db_Table_Abstract as MyTable class, and then instantiate
> > MyTable class as $myTable as showing below:
> >
> > $myTable = new MyTable(...);
> >
> > Then how do I get all the column names as an array for this table? Thanks
> > for your help.
> 
> I wouldn't mind if you checked the manual once or so. ;)
> 
> Anyway, here it is:
> http://framework.zend.com/manual/en/zend.db.html#zend.db.adapter.list-describe
> 
> You will have to query directly against the adapter, since
> Zend_Db_Table does not support this, but Zend_Db (which is ultimately
> "inside") does.

Actually, you *can* get the field names from Zend_Db_Table:

$metadata = $table->info();
$cols = $metadata['cols'];

There's a lot more than just that available, too. Look up the info()
method in Zend_Db_Table_Abstract.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


[fw-general] how to re-initialize form with submitted data after validation ?

2007-09-26 Thread debussy007

Hello all,

When a user submit a form,
I do some validations server side.
e.g. check wether the username specified is not already taken.

If there is an error, I forward again to the page displaying the form.

But the problem if I do a simpel forward,
is that the user has to re-introduce all the fields again !

Is there a simple way to insert the introduced values back in the form ?

Thank you.

Sample code
---

$partners = new Partners();
$where  = $partners->getAdapter()->quoteInto('username = ?', $username);
$row = $partners->fetchRow($where);
if ($row != NULL) {
$this->view->errorRegistration = "Username " . $username . " is already 
in
use.";
$this->_forward('index');
return;
}

-- 
View this message in context: 
http://www.nabble.com/how-to-re-initialize-form-with-submitted-data-after-validation---tf4523104s16154.html#a12903485
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Customizing messages of Zend_Validate_EmailAddress

2007-09-26 Thread Darby Felton
Hi Ralf,

I have created a JIRA issue for us to track and examine:

http://framework.zend.com/issues/browse/ZF-1998

Thanks for the report!

Best regards,
Darby

Ralf Kramer wrote:
> Hi,
> 
> I tried to customize the message of Zend_Validate_EmailAddress, it works 
> quite well,  but I cant translate the messages that are added by 
> Zend_Validate_Hostname in my $validators array.
> 
> Sample:
> $validators = array(
> 'user_email' => array(
> 'EmailAddress',
> 'messages' => array(
> array(
> Zend_Validate_EmailAddress::INVALID => 
> "'%value%' ist keine gültige E-Mail-Adresse",
> 
> Zend_Validate_EmailAddress::INVALID_HOSTNAME  => 
> "'%hostname%' ist kein gültiger Hostname. Bitte 
> prüfen Sie Ihre E-Mail-Adresse  '%value%'",
> 
> Zend_Validate_EmailAddress::INVALID_MX_RECORD  => 
> "'%hostname%' kein MX Record gefunden '%value%'",
> 
> Zend_Validate_EmailAddress::DOT_ATOM => 
> "'%localPart%' ungültiges Format (dot-atom)",
> 
> Zend_Validate_EmailAddress::QUOTED_STRING => 
> "'%localPart%' ungültiges Format",
> 
> Zend_Validate_EmailAddress::INVALID_LOCAL_PART 
> => "'%localPart%' ungültiges Format '%value%'",
> )
> )
> )
> ); 
> 
> When $user_email == "a" I get this messages:
> ["user_email"] => array(3) {
> [0] => string(81) "'a' ist kein gültiger Hostname. Bitte prüfen Sie Ihre 
> E-Mail-Adresse  '[EMAIL PROTECTED]'"
> [1] => string(60) "'a' does not match the expected structure for a DNS 
> hostname"
> [2] => string(82) "'a' appears to be a local network name but but local 
> network names are not allowed"
>   }
> 
> So, there are two messages which are not translated, and I don’t know how to 
> translate them in my $validators array. Is there a way to achieve this? 
> 
> If not, we should imho contemplate to ensure that each Zend_Validate_XXX 
> class must gain access to all possible messages that could be added to the 
> $messages array
> 
> Though Bill explained, in a recent posting, that developers might use 
> $input->getErrors();  to customize their messages, I'd prefer to translate 
> the messages using the MESSAGES 
> metacommand of Zend_Filter_Input. Having it all defined in one place, allows 
> for instance to pass the $validator array to the view, where it could be used 
> for AJAX and other Javascript operations. It would also be somewhat more 
> 'straight' if there is no exceptional rule bundled to the MESSAGES 
> metacommand 
> 
> I am not sure whether the proposals Zend_Validate_Builder, 
> Zend_Filter_Builder will solve this issue. Actually I am not even sure 
> whether it is an issue... ;-)
> 
> Best regards
>  /Ralf
> 
> 
> 
> 
> 


[fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Juan Felipe Alavarez Saldarriaga
:)

Hey, I upgrade from ZFW 1.0.1 to ZFW 1.0.2 and I got this exception on my 
bootstrap start:

Fatal error: Uncaught exception 'Zend_Exception' with message 'File "true.php" 
was not found' in 
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php:159

Stack trace:

#0 /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php(91): 
Zend_Loader::loadFile('true.php', Array, true)
#1 
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db/Adapter/Abstract.php(334): 
Zend_Loader::loadClass('true')
#2 
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db/Adapter/Abstract.php(227): 
Zend_Db_Adapter_Abstract->setProfiler('true')
#3 /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db.php(252): 
Zend_Db_Adapter_Abstract->__construct(Array)
#4 /home/jfalvarez/php5/soficol/cms_dev/site/functions/index_db.php(14): 
Zend_Db::factory('pdo_pgsql', Array)
#5 /home/jfalvarez/php5/soficol/cms_dev/site/htdocs/index.php(45): 
require_once('/home/jfalvarez...')
#6 {main} thrown in /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php 
on line 159

This is my index.php code:

#
# Checking modules integrity.
#

/**
 * Check the existence of a class.
 *
 * @param string $strClass Class name.
 * @return void.
 */
function __autoload( $strClass )
{
Zend_Loader::loadClass( $strClass );
}

// Load db.
require_once( "index_db.php" );

And this is my index_db.php script code:

// Load DB info
$arrDbConfig = array( 
'host' => $objConfiguration->database->host,
'username' => 
$objConfiguration->database->username,
'password' => 
$objConfiguration->database->password,
'dbname'   => $objConfiguration->database->name,
'profiler' => 
$objConfiguration->database->profiler
);

// Set connection to the database.
$objDb = Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );

// Register database object.
Zend_Registry::set( 'db', $objDb );

I don't know why something returns "true" and tryes to execute 
Zend_Loader::loadClass(). I set an echo one line before "$objDb = 
Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );" and is 
printed and the $strClass value before do "$objDb = Zend_Db::factory( 
$objConfiguration->database->type, $arrDbConfig );" is Zend_Db, I don't have 
this issue on ZFW 1.0.1

Thx for any help with this :).


[fw-general] latest release breaks system

2007-09-26 Thread Daniel Rossi
Hi there i believe the latest release breaks the system here is the  
message i get


Uncaught exception 'Zend_Exception' with message 'File "true.php" was  
not found'
in /Volumes/FIREWIRE/www/classes/ZendFramework/library/Zend/ 
Loader.php:159 Stack trace: #0 /Volumes/FIREWIRE/www/classes/ 
ZendFramework/library/Zend/Loader.php(91): Zend_Loader::loadFile 
('true.php', Array, true) #1 /Volumes/FIREWIRE/www/classes/ 
ZendFramework/library/Zend/Db/Adapter/Abstract.php(334):  
Zend_Loader::loadClass('true') #2 /Volumes/FIREWIRE/www/classes/ 
ZendFramework/library/Zend/Db/Adapter/Abstract.php(227):  
Zend_Db_Adapter_Abstract->setProfiler('true') #3 /Volumes/FIREWIRE/ 
www/classes/ZendFramework/library/Zend/Db.php(252):  
Zend_Db_Adapter_Abstract->__construct(Array) #4 /Volumes/FIREWIRE/www/ 
html/index.php(29): Zend_Db::factory('pdo_mysql', Array) #5 {main}  
thrown in /Volumes/FIREWIRE/www/classes/ZendFramework/library/Zend/ 
Loader.php on line 159

Re: [fw-general] Using a complete HTML Template

2007-09-26 Thread Martin Carpentier
Hi,

I've been following closely the progress of both ZL and ZVE  and I'm very
happy to see that they will be both integretad in the Zend Framework.

What is still not clear to me though is how they relate to each other.

Are they each a different solution to the same problem (templating and
layouts) ?
If this is the case, could you give exemples of use case where one would be
preferable to the other ?

or

Are they providing complementary functionnality to a (global) solution for
layouts and templates ?
If so, how would they work together in an application ?

Regards,
Martin



On 9/20/07, Pádraic Brady <[EMAIL PROTECTED]> wrote:
>
> Hi Ralf,
>
> >The MVC component determines (somehow), based on the route, which view
> >script is supposed to be rendered. This view script will have such a
> >structure which renders a valid HTML document:
>
> The MVC component utilises an optional (enabled by default) plugin called
> Zend_Controller_Action_Helper_ViewRenderer which insitutes a convention of
> mapping Module/Controller/Action names to a relevent view script name. So
> IndexController::saveAction() will automatically render the view script at
> {viewBasePath}/index/save.phtml.
>
> You can modify the convention by altering a few settings on the
> ViewRenderer (covered at least once in the past day on the mailing lists
> ;)). Or even disable the automated rendering if you prefer.
>
> >I'd like to have it vice versa, where the layout is a full HTML document
> >which renders the related view script. So I managed my application to
> >work with this "layout" view script:
>
> Indeed, there have been proposals for achieving this hanging around from
> months addressing the concept of common "Layouts". This was captured in two
> proposals - Zend_View Enhanced and Zend_Layout. The Zend_Layout methodology
> has been decided to be used in ZF 1.1 so I can point you to the
> soon-to-be-official approach offered by Ralph Schindler.
>
> Unfortunately the ZF Wiki cannot be referred to since it is perfectly
> useless to anyone in GMT and is presently offline as usual. But there's a
> good blog post containing all the details and a brief tutorial of usage:
>
> http://www.spotsec.com/blogs/archive/the-basics-of-zend_layout-ahem-xend_layout.html
>
> In combination with Zend_Layout, pretty much all of the remaining
> Zend_View Enhanced (excepting its Layout solution) is also to be implemented
> in ZF 1.1. This adds concepts such as Partials, Components (controller
> calls), Placeholders (capture data from view scripts for inclusion in a
> Layout/Other View), and some other stuff.
>
> In combination, both ZL and ZVE should be sufficient to resolve most of
> the problems people currently have with Zend_View.
>
> Regards,
> Paddy
>
>
> Pádraic Brady
>
> http://blog.astrumfutura.com
> http://www.patternsforphp.com
> OpenID Europe Foundation Member-Subscriber 
>
>
> - Original Message 
> From: Ralf Kramer <[EMAIL PROTECTED]>
> To: fw-general@lists.zend.com
> Sent: Thursday, September 20, 2007 12:30:46 AM
> Subject: [fw-general] Using a complete HTML Template
>
> Hi,
>
> as I understood the common process of template rendering it works in
> this manner:
>
> The MVC component determines (somehow), based on the route, which view
> script is supposed to be rendered. This view script will have such a
> structure which renders a valid HTML document:
>
> render('layouts/__header.phtml'); ?>
> some stuff fromView ?> 
> render('layouts/__footer.phtml'); ?>
>
>
> I'd like to have it vice versa, where the layout is a full HTML document
> which renders the related view script. So I managed my application to
> work with this "layout" view script:
>
> 
> 
> 
> header stuff
> render( $this->viewScript ) ?>
> footer stuff
> 
> 
>
> In my controller I do this on postDispatch()
> public function postDispatch()
> {
> $this->view->viewScript = $this->getRequest()->getControllerName()
> . "/" . $this->getRequest()->getActionName()
> . ".phtml";
> $this->_helper->viewRenderer->renderScript("layouts/main.phtml" );
> }
>
>
> It works, but it is not flexible cause _forward() renders the layout
> view script a second time. Invocation on preDispatch() or smth. else
> dont works, cause there are no assigned data available in the view
> scripts. Now I believe my approach is a dead-end street...any help is
> appreciated ;-)
>
> Best regards
> /Ralf
>
>
>
>
> --
> Looking for a deal? Find great prices on flights and 
> hotelswith
>  Yahoo! FareChase.
>



-- 
Martin Carpentier


Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Matthew Weier O'Phinney
-- Juan Felipe Alavarez Saldarriaga <[EMAIL PROTECTED]> wrote
(on Wednesday, 26 September 2007, 04:25 PM +):
> This is my index.php code:
> 
> #
> # Checking modules integrity.
> #
> 
> /**
>  * Check the existence of a class.
>  *
>  * @param string $strClass Class name.
>  * @return void.
>  */
> function __autoload( $strClass )
> {
> Zend_Loader::loadClass( $strClass );
> }

Try using:

Zend_Loader::registerAutoload();

instead of the above; it uses spl_autoload, and will allow you to
register additional autoload routines in the future.

> // Load db.
> require_once( "index_db.php" );
> 
> And this is my index_db.php script code:
> 
> // Load DB info
> $arrDbConfig = array( 
>   'host' => $objConfiguration->database->host,

Where does $objConfiguration come from?

> 'username' => 
> $objConfiguration->database->username,
>   'password' => 
> $objConfiguration->database->password,
>   'dbname'   => $objConfiguration->database->name,
>   'profiler' => 
> $objConfiguration->database->profiler
>   );
> 
> // Set connection to the database.
> $objDb = Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );

What is the value of $ojbConfiguration->database->type? I'm guessing
that the error comes into play here, as that value is used to determine
which Zend_Db_Adapter to load.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Graham Anderson
On Wednesday 26 September 2007 17:25:40 Juan Felipe Alavarez Saldarriaga 
wrote:

> // Load DB info
> $arrDbConfig = array(
>   'host' => $objConfiguration->database->host,
> 'username' =>
> $objConfiguration->database->username, 'password' =>
> $objConfiguration->database->password,
>   'dbname'   => $objConfiguration->database->name,
>   'profiler' => 
> $objConfiguration->database->profiler
>   );

The profiler can now be enabled with a custom profiler class and now is 
enabled with an array of paramaters.

change your array to:

// Load DB info
$arrDbConfig = array( 
    'host'     => $objConfiguration->database->host,
                        'username' => $objConfiguration->database->username,
'password' => $objConfiguration->database->password,
'dbname'   => $objConfiguration->database->name,
'profiler' => array (
   'enabled' =>  $objConfiguration->database->profiler
   )
);


Re: [fw-general] latest release breaks system

2007-09-26 Thread Graham Anderson
On Wednesday 26 September 2007 17:32:42 Daniel Rossi wrote:
> Hi there i believe the latest release breaks the system here is the
> message i get
>
> Uncaught exception 'Zend_Exception' with message 'File "true.php" was
> not found'
> in /Volumes/FIREWIRE/www/classes/ZendFramework/library/Zend/
> Loader.php:159 Stack trace: #0 /Volumes/FIREWIRE/www/classes/
> ZendFramework/library/Zend/Loader.php(91): Zend_Loader::loadFile
> ('true.php', Array, true) #1 /Volumes/FIREWIRE/www/classes/
> ZendFramework/library/Zend/Db/Adapter/Abstract.php(334):
> Zend_Loader::loadClass('true') #2 /Volumes/FIREWIRE/www/classes/
> ZendFramework/library/Zend/Db/Adapter/Abstract.php(227):
> Zend_Db_Adapter_Abstract->setProfiler('true') #3 /Volumes/FIREWIRE/
> www/classes/ZendFramework/library/Zend/Db.php(252):
> Zend_Db_Adapter_Abstract->__construct(Array) #4 /Volumes/FIREWIRE/www/
> html/index.php(29): Zend_Db::factory('pdo_mysql', Array) #5 {main}
> thrown in /Volumes/FIREWIRE/www/classes/ZendFramework/library/Zend/
> Loader.php on line 159

Please see my reply to: [fw-general] Zend_Loader issue on ZFW 1.0.2

Cheers
Graham


Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Juan Felipe Alavarez Saldarriaga
The $objConfiguration comes from the index.php, look:

#
# Checking modules integrity.
#

/**
 * Check the existence of a class.
 *
 * @param string $strClass Class name.
 * @return void.
 */
function __autoload( $strClass )
{
Zend_Loader::loadClass( $strClass );
}

#
# Load configuration.
#

// Look wich type of configuration we need.
$strConfigurationNode = "development";

// Load configuration file.
$objConfiguration = new Zend_Config_Xml( '../config.xml', $strConfigurationNode 
);

// Register configuration object.
Zend_Registry::set( 'objConfiguration', $objConfiguration );

And then:


// Load db.
require_once( "index_db.php" );

So the $objConfiguration is on the index.php so after loading it I include the 
"index_db.php". The value of $objConfiguration->database->type is: "pdo_pgsql".

Thx for any help :).

- Original Message -
From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
To: fw-general@lists.zend.com
Sent: miércoles 26 de septiembre de 2007 11H56 (GMT-0500) America/Bogota
Subject: Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

-- Juan Felipe Alavarez Saldarriaga <[EMAIL PROTECTED]> wrote
(on Wednesday, 26 September 2007, 04:25 PM +):
> This is my index.php code:
> 
> #
> # Checking modules integrity.
> #
> 
> /**
>  * Check the existence of a class.
>  *
>  * @param string $strClass Class name.
>  * @return void.
>  */
> function __autoload( $strClass )
> {
> Zend_Loader::loadClass( $strClass );
> }

Try using:

Zend_Loader::registerAutoload();

instead of the above; it uses spl_autoload, and will allow you to
register additional autoload routines in the future.

> // Load db.
> require_once( "index_db.php" );
> 
> And this is my index_db.php script code:
> 
> // Load DB info
> $arrDbConfig = array( 
>   'host' => $objConfiguration->database->host,

Where does $objConfiguration come from?

> 'username' => 
> $objConfiguration->database->username,
>   'password' => 
> $objConfiguration->database->password,
>   'dbname'   => $objConfiguration->database->name,
>   'profiler' => 
> $objConfiguration->database->profiler
>   );
> 
> // Set connection to the database.
> $objDb = Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );

What is the value of $ojbConfiguration->database->type? I'm guessing
that the error comes into play here, as that value is used to determine
which Zend_Db_Adapter to load.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/



Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Graham Anderson
On Wednesday 26 September 2007 17:25:40 Juan Felipe Alavarez Saldarriaga 
wrote:
> And this is my index_db.php script code:
>
> // Load DB info
> $arrDbConfig = array(
>   'host' => $objConfiguration->database->host,
> 'username' =>
> $objConfiguration->database->username, 'password' =>
> $objConfiguration->database->password,
>   'dbname'   => $objConfiguration->database->name,
>   'profiler' => 
> $objConfiguration->database->profiler
>   );
>
> // Set connection to the database.
> $objDb = Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig
> );

or alternatively now you can just pass a single Zend_Config object:

$db = Zend_Db::factory($this->_appConfig->database);

 snip 
         
             Pdo_Mysql
             
            
            host
            dbname
            username
            password
            
            true
            
             
         
 /snip 


Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Juan Felipe Alavarez Saldarriaga
Ohh, ok, this is my config database node:


  pdo_pgsql
  localhost
  MyUsername
  MyPassword
  MyDbName
  true


I'll try to change those like you say, thx.

- Original Message -
From: "Graham Anderson" <[EMAIL PROTECTED]>
To: fw-general@lists.zend.com
Sent: miércoles 26 de septiembre de 2007 12H07 (GMT-0500) America/Bogota
Subject: Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

On Wednesday 26 September 2007 17:25:40 Juan Felipe Alavarez Saldarriaga 
wrote:
> And this is my index_db.php script code:
>
> // Load DB info
> $arrDbConfig = array(
>   'host' => $objConfiguration->database->host,
> 'username' =>
> $objConfiguration->database->username, 'password' =>
> $objConfiguration->database->password,
>   'dbname'   => $objConfiguration->database->name,
>   'profiler' => 
> $objConfiguration->database->profiler
>   );
>
> // Set connection to the database.
> $objDb = Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig
> );

or alternatively now you can just pass a single Zend_Config object:

$db = Zend_Db::factory($this->_appConfig->database);

 snip 
 
 Pdo_Mysql
 

host
dbname
username
password

true

 
 
 /snip 



Re: [fw-general] Using a complete HTML Template

2007-09-26 Thread Matthew Weier O'Phinney
-- Martin Carpentier <[EMAIL PROTECTED]> wrote
(on Wednesday, 26 September 2007, 06:53 PM +0200):
> I've been following closely the progress of both ZL and ZVE  and I'm
> very happy to see that they will be both integretad in the Zend
> Framework.
> 
> What is still not clear to me though is how they relate to each other.
> 
> Are they each a different solution to the same problem (templating and
> layouts) ?  If this is the case, could you give exemples of use case
> where one would be preferable to the other ?
> 
> or
> 
> Are they providing complementary functionnality to a (global) solution
> for layouts and templates ?  If so, how would they work together in an
> application ?

They provide separate functionality, both related to views, that can
create powerful complementary functionality. 

ZVE provides some additional view helpers that allow you to do new
things:

 * Partials -- allow you to render 'subtemplates' in their own variable
   scope. The only available view variables will be those passed in to
   the helper.

 * Controller -- (this may be renamed to 'component'.) Dispatches to a
   controller action and returns the rendered content from that action.

 * Placeholders -- allow you to set variables in containers to be used
   later. Variables may be either scalars or collections, and you can
   specify pre/post content to use when you eventually retrieve them.
   Additionally, these will support capturing content to store for later
   retrieval.

 * Finally, there will be a handful of Placeholder implementations for
   common tasks -- headTitle(), headLink(), etc.

These new helpers allow you to build fairly complex views for your
application.

Zend_Layout provides support for layouts, which are really simply view
decorators. Your application will typically just spit out its own
content -- a form, a list of items, etc; Zend_Layout then decorates this
content -- usually with a view script that represents the site skeleton.
It's in this decorator view that you would put your
.. structure. This is done in
an automated fashion with a large degree of flexibility, and makes use
of the response object named segments to store and retrieve content for
the layout view script.

Hopefully, you can now see why the two in combination are so powerful:
you can have your application view scripts doing things such as setting
placeholders for javascript, css, page title, etc, and then the layout
view script would pull and render these.


> On 9/20/07, Pádraic Brady < [EMAIL PROTECTED]> wrote:
> 
> Hi Ralf,
> 
> >The MVC component determines (somehow), based on the route, which view
> >script is supposed to be rendered. This view script will have such a
> >structure which renders a valid HTML document:
> 
> The MVC component utilises an optional (enabled by default) plugin called
> Zend_Controller_Action_Helper_ViewRenderer which insitutes a convention of
> mapping Module/Controller/Action names to a relevent view script name. So
> IndexController::saveAction() will automatically render the view script at
> {viewBasePath}/index/save.phtml.
> 
> You can modify the convention by altering a few settings on the
> ViewRenderer (covered at least once in the past day on the mailing lists
> ;)). Or even disable the automated rendering if you prefer.
> 
> >I'd like to have it vice versa, where the layout is a full HTML document
> >which renders the related view script. So I managed my application to
> >work with this "layout" view script:
> 
> Indeed, there have been proposals for achieving this hanging around from
> months addressing the concept of common "Layouts". This was captured in 
> two
> proposals - Zend_View Enhanced and Zend_Layout. The Zend_Layout 
> methodology
> has been decided to be used in ZF 1.1 so I can point you to the
> soon-to-be-official approach offered by Ralph Schindler.
> 
> Unfortunately the ZF Wiki cannot be referred to since it is perfectly
> useless to anyone in GMT and is presently offline as usual. But there's a
> good blog post containing all the details and a brief tutorial of usage:
> http://www.spotsec.com/blogs/archive/
> the-basics-of-zend_layout-ahem-xend_layout.html
> 
> In combination with Zend_Layout, pretty much all of the remaining 
> Zend_View
> Enhanced (excepting its Layout solution) is also to be implemented in ZF
> 1.1. This adds concepts such as Partials, Components (controller calls),
> Placeholders (capture data from view scripts for inclusion in a Layout/
> Other View), and some other stuff.
> 
> In combination, both ZL and ZVE should be sufficient to resolve most of 
> the
> problems people currently have with Zend_View.
> 
> Regards,
> Paddy
> 
>  
> Pádraic Brady
> 
> http://blog.astrumfutura.com
> http://www.patternsforphp.com
> OpenID Europe Foundation Member-Subscriber
> 
> 
> - Original Message 

Re: [fw-general] pdf manual

2007-09-26 Thread vanne

And another update...

http://www.nabble.com/file/p12906689/zf-1.0.2.pdf zf-1.0.2.pdf 



Marcelo Araujo wrote:
> 
> Hello,
> 
> Is there a pdf manual for the zend framework available at the official
> website?
> 
> Regards,
> 
> --Marcelo
> 
> 

-- 
View this message in context: 
http://www.nabble.com/pdf-manual-tf3569487s16154.html#a12906689
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Integrating Smarty With ZF 1.0.2

2007-09-26 Thread Freddie Witherden
Hi. A while back when I first started development on my application  
(using ZF 0.6) I integrated Smarty by way of a custom Zend_View  
interface (code: http://trac.pandect.org.uk/browser/trunk/library/ 
Pandect/View/Smarty.php ) and a subclass of Zend_Controller (code:  
http://trac.pandect.org.uk/browser/trunk/library/Pandect/Controller/ 
Action.php ).


However, since helpers are now used (viewHelper I believe) i am  
interested if anyone knows of a guide for integrating smarty with  
newer versions of ZF.


Regards, Freddie.


Re: [fw-general] Using a complete HTML Template

2007-09-26 Thread Pádraic Brady
Hi Martin

>What is still not clear to me though is how they relate to each other.

ZVE proposes a variety of helpers to facilitate some nifty dynamic View 
construction using partial templates, controller calls, and place holders. 
Zend_Layout will provide a high-level layout system. So both at present are 
complementary. In case its confusing - ZVE had a Layout component, but it will 
not be implemented in Zf Core (Zend_Layout enters here ;)).

>Are they providing complementary functionnality to a (global) solution for 
>layouts and templates ?

>If so, how would they work together in an application ?

Yes. ZVE is primarily template driven - so it operates at a lower level on any 
templates which are aggregated at the higher level represented as a Layout 
(Zend_Layout). A lot of it is just making reusable views more easily written 
and wired together.

Regards,
Martin




On 9/20/07, Pádraic Brady <
[EMAIL PROTECTED]> wrote:
Hi Ralf,

>The MVC component determines (somehow), based on the route, which view
>script is supposed to be rendered. This view script will have such a
>structure which renders a valid HTML document:


The MVC component utilises an optional (enabled by default) plugin called 
Zend_Controller_Action_Helper_ViewRenderer which insitutes a convention of 
mapping Module/Controller/Action names to a relevent view script name. So 
IndexController::saveAction() will automatically render the view script at

{viewBasePath}/index/save.phtml.

You can modify the convention by altering a few settings on the ViewRenderer 
(covered at least once in the past day on the mailing lists ;)). Or even 
disable the automated rendering if you prefer.


>I'd like to have it vice versa,
 where the layout is a full HTML document
>which renders the related view script. So I managed my application to
>work with this "layout" view script:

Indeed, there have been proposals for achieving this hanging around from months 
addressing the concept of common "Layouts". This was captured in two proposals 
- Zend_View Enhanced and Zend_Layout. The Zend_Layout methodology has been 
decided to be used in ZF 
1.1 so I can point you to the soon-to-be-official approach offered by Ralph 
Schindler.

Unfortunately the ZF Wiki cannot be referred to since it is perfectly useless 
to anyone in GMT and is presently offline as usual. But there's a good blog 
post containing all the details and a brief tutorial of usage:

http://www.spotsec.com/blogs/archive/the-basics-of-zend_layout-ahem-xend_layout.html


In
 combination with Zend_Layout, pretty much all of the remaining Zend_View 
Enhanced (excepting its Layout solution) is also to be implemented in ZF 1.1. 
This adds concepts such as Partials, Components (controller calls), 
Placeholders (capture data from view scripts for inclusion in a Layout/Other 
View), and some other stuff.


In combination, both ZL and ZVE should be sufficient to resolve most of the 
problems people currently have with Zend_View.

Regards,
Paddy

 

Pádraic Brady


http://blog.astrumfutura.com
http://www.patternsforphp.com

OpenID Europe Foundation Member-Subscriber



- Original Message 
From: Ralf Kramer <[EMAIL PROTECTED]>
To: 
fw-general@lists.zend.com
Sent: Thursday, September 20, 2007 12:30:46 AM
Subject: [fw-general] Using a complete HTML Template

Hi,

as I understood the common process of template rendering it works in

this manner:

The MVC component determines (somehow), based on the route, which view
script is supposed to be rendered. This view script will have such a
structure which renders a valid HTML document:


render('layouts/__header.phtml'); ?>
some stuff fromView ?> 
render('layouts/__footer.phtml'); ?>


I'd like to have it vice versa, where the layout is a full HTML document

which renders the related view script. So I managed my application to
work with this "layout" view script:




header stuff

render( $this->viewScript ) ?>
footer stuff



In my controller I do this on postDispatch()
public function postDispatch()

{
$this->view->viewScript = $this->getRequest()->getControllerName() 
.
 "/" . $this->getRequest()->getActionName() 
. ".phtml";
$this->_helper->viewRenderer->renderScript("layouts/main.phtml" );
}


It works, but it is not flexible cause _forward() renders the layout

view script a second time. Invocation on preDispatch() or smth. else
dont works, cause there are no assigned data available in the view
scripts. Now I believe my approach is a dead-end street...any help is
appreciated ;-)


Best regards
 /Ralf










  Looking for a deal? 
Find great prices on flights and hotels with Yahoo! FareChase.




-- 
Martin Carpentier






   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

[fw-general] Storing database connection string?

2007-09-26 Thread nwkeeley

Hi Everyone,

I am pretty new to the Zend Framework and so far I really like what I see.

Kind of curious as to where people store their database connection
string 

Right now I have a DatabaseController as I am just playing around and it
looks sort of like...


*Note I am just playing around at this point but where would you store
the 

$db = new Zend_Db_Adapter_Pdo_Mysql(array(


so that it can be used all over the DatabaseController as right now it can
only be used in the InsertAction


Thanks!

-Nate


view->myResult = $db->fetchAll('Select bug_description, 
bug_id FROM
bugs', 2);
}

function insertAction($db)
{

$db = new Zend_Db_Adapter_Pdo_Mysql(array(
'host' => '127.0.0.1',
'username' => 'root',
'password' => '',
'dbname'   => 'zfdemo'
));

$data = array(
'bug_id'  => rand(5, 500),
'bug_description' => 'Something wrong',
'bug_status'  => 'NEW'
);

$db->insert('bugs', $data);

}

}
-- 
View this message in context: 
http://www.nabble.com/Storing-database-connection-string--tf4525518s16154.html#a12911922
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Passing information between controllers

2007-09-26 Thread pat

debussy007 wrote:


I will opt for the easiest one, set the view variable in the AuthController.
I think the best solution is to pass the parameter to the IndexController
since it is not the role of the AuthController to render the view of the
IndexController, but the code gets dirty since those kind of operations
demand some if statements etc.

  
There are a few issues here 


  1. Form validation
  2. Authentication
  3. Error handling

I use HTML_quickform for form validation i.e. name and password and
I use ErrorController.php for  errors

if ($form->validate()) {
$name = $form->getSubmitValue('txtUsername');
$pass = $form->getSubmitValue('txtPass');

if ($auth->authenticate($name, $pass)){
 $auth_log->info("Login Succeeded, Name = $name");
 $pass_ns->passkey = get_pass_phrase();
 $pass_ns->setExpirationSeconds(12*3600);
 $this->_redirector =
$this->_helper->getHelper('Redirector');  
 $this->_redirector->gotoUrl('/admin');
}


else {

$this->_redirector =
$this->_helper->getHelper('Redirector');  
$this->_redirector->gotoUrl('/error/login'); 


}



cheers,
pat




[fw-general] Zend_Auth + Zend_ACL login API

2007-09-26 Thread Daniel Rossi
Hi there I was wondering if there has been any development with  
marrying the two to produce a properly login API ? Ie something that  
manages a user database aswell as authenticates. The groups / rights  
set in the database are then obviouslly added back as Acl's for  
authentiucating against. Ive been using PEAR's LiveUser for quite  
some time but would like to move to a more lightweight php5 solution  
as i just need to authenticate and also check for particular groups. 


[fw-general] Adding params to the Request

2007-09-26 Thread Ralf Kramer
Hi,

I'd like to inject the results of a DB operation to as params to the
request. This happens within my controller.

$user = $this->User->find( $user_id );
$this->getRequest()->setParams($user->toArray());

Now I'd like to gain access to this array within a view helper by:
$value =  $this->request->getParam($paramName);

But it fails, they dump of
Zend_Debug::dump($this->request->getParams());
shows:

array(6) {
  ["module"] => string(5) "admin"
  ["controller"] => string(4) "user"
  ["action"] => string(4) "edit"
  ["user_id"] => string(1) "1"
  ["layout"] => string(14) "layouts/quasda"
  [0] => array(5) {
["user_id"] => string(1) "1"
["user_email"] => string(13) "[EMAIL PROTECTED]"
["user_password"] => string(41) "*B1EDFC17CD796ACEEF507E8DD7A0BE7367F13894"
["user_firstname"] => string(4) "Ralf"
["user_lastname"] => string(6) "Kramer"
  }
}

Yesterday it worked, so I suspect the 1.0.2 Release to have changed the logic 
of $rowset->toArray() or $request->setParams()?

Any help is appreciated.

Best regards
 /Ralf








[fw-general] form generation functionality

2007-09-26 Thread Daniel Rossi
Hi was wondering if there is any such forms generation functionality  
as yet when using the model classes ? I believe it would be a good  
thing to have although the form element generation currently is set  
in helpers ?


Re: [fw-general] [solved] Adding params to the Request

2007-09-26 Thread Ralf Kramer
I deleted one line accidentally.

$user = $this->User->find( $user_id );
$user = $user->current();
$this->getRequest()->setParams($user->toArray());

Best regards
 /Ralf




[fw-general] Riskle Paginate

2007-09-26 Thread Waigani

Hi,

Has anyone used Riskle's Paginate class? It looks very good.

http://fashion.hosmoz.net/post/2007/09/23/Zend-Framework-Pagination-third-strike

In the example:

$table = new Riskle_Db_Table_Paginate(new Table, $this->_getParam('page'));
$this->view->rowset = $table->fetchAll();

I don't get what I'm meant to swap the 'new Table' with.
-- 
View this message in context: 
http://www.nabble.com/Riskle-Paginate-tf4525848s16154.html#a12913105
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Riskle Paginate

2007-09-26 Thread Waigani

Ah,


My_Table extends Riskle_Db_Table{
}

and then put in 'new My_Table'




Waigani wrote:
> 
> Hi,
> 
> Has anyone used Riskle's Paginate class? It looks very good.
> 
> http://fashion.hosmoz.net/post/2007/09/23/Zend-Framework-Pagination-third-strike
> 
> In the example:
> 
> $table = new Riskle_Db_Table_Paginate(new Table,
> $this->_getParam('page'));
> $this->view->rowset = $table->fetchAll();
> 
> I don't get what I'm meant to swap the 'new Table' with.
> 

-- 
View this message in context: 
http://www.nabble.com/Riskle-Paginate-tf4525848s16154.html#a12913158
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Loader issue on ZFW 1.0.2

2007-09-26 Thread Daniel Rossi
Hi there it seems it only works if i change my config to the one  
displayed below thats a huge change dont you think ?


On 27/09/2007, at 3:07 AM, Graham Anderson wrote:

On Wednesday 26 September 2007 17:25:40 Juan Felipe Alavarez  
Saldarriaga

wrote:

And this is my index_db.php script code:

// Load DB info
$arrDbConfig = array(
'host' => $objConfiguration->database->host,
'username' =>
$objConfiguration->database->username, 'password' =>
$objConfiguration->database->password,
'dbname'   => $objConfiguration->database->name,
'profiler' => 
$objConfiguration->database->profiler
);

// Set connection to the database.
$objDb = Zend_Db::factory( $objConfiguration->database->type,  
$arrDbConfig

);


or alternatively now you can just pass a single Zend_Config object:

$db = Zend_Db::factory($this->_appConfig->database);

 snip 
 
 Pdo_Mysql
 

host
dbname
username
password

true

 
 
 /snip 




[fw-general] post uri

2007-09-26 Thread Waigani

Hi All,

Is there a way to find out where a post has come from, without sending the
info in the form? In particular, can you get the module controller and
action.

Cheers,

-- 
View this message in context: 
http://www.nabble.com/post-uri-tf4526349s16154.html#a12914633
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Forward to another module doesn't work

2007-09-26 Thread debussy007

Hello,

Whenever I try to forward to another module, 
it keep trying to find the action/controller inside the current module.
It's like it doesn't consider the third parameter of _forward method, which
specifies the module.

e.g. with this code in the "default" module : 

$this->_forward('index','auth','partners');
return;

I have the following error : 

Uncaught exception 'Zend_View_Exception' with message 'script
'auth/index.phtml' not found in path
(.\application\modules\default\views\scripts\)'

As you see it tries to find the action/controller in default module, even if
I specified to find it in the "partners" module.

My application structure is the following :

- application
|-- modules
|--- admin
   |--- controllers
   |--- models
   |--- views
|--- default
   |--- controllers
   |--- models
   |--- views
|--- partners
   |--- controllers
   |--- models
   |--- views

I have the following in my bootstrap :

error_reporting(E_ALL|E_STRICT);
date_default_timezone_set('Europe/Brussels');
ini_set('display_errors', true);
ini_set('include_path', ini_get('include_path') 
. PATH_SEPARATOR . './library'
. PATH_SEPARATOR . './application/modules/default/models/'
. PATH_SEPARATOR . './application/modules/partners/models/'
. PATH_SEPARATOR . './application/helpers/');
[...]
$front = Zend_Controller_Front::getInstance();
$front->addModuleDirectory('./application/modules');
$front->setBaseUrl($config->baseUrl);
if($config->test) 
$front->throwExceptions(true);
$front->dispatch();

Thank you for any help!
-- 
View this message in context: 
http://www.nabble.com/Forward-to-another-module-doesn%27t-work-tf4526568s16154.html#a12915376
Sent from the Zend Framework mailing list archive at Nabble.com.