[fw-general] RE: Documentation in CHM

2008-01-16 Thread Michael Raymond
Hi Thomas, 

I would download one myself if there is an english version. I agree with you
about the improvement to the many html to single file. I'd like to help with
the doc team, but im still really tight on my work schedule. =/

Rgds,
Michael

-Original Message-
From: Thomas Weidner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2008 7:29 PM
To: fw-general@lists.zend.com; [EMAIL PROTECTED]
Cc: Wil Sinclair
Subject: Documentation in CHM

Hy ZF-fellows,

I created the documentation as CHM file (actually only for the german 
version).
It's not very eyecatching but I think it would be a great improvement to the

existing html download as it's only one file.

Once created it's simple to rebuild it with new or changed chapters.

If there is interest I would share my work, maybe we could even add it at 
the homepage and do this also for other languages.
Give me your response...

Greetings
Thomas
I18N Team Leader 


--- 




RE: [fw-general] NT Authentication Pdo MSSQL

2007-11-27 Thread Michael Raymond

Hello list,

I am trying to connect to a MS-SQL server running on Win-2003 Server box.

DL'ed Thomas' PDO ODBC adapter.
Loaded the PDO ODBC extension.

Still get this error

Fatal error:  Uncaught exception 'Zend_Db_Adapter_Exception' with
message 'SQLSTATE[IM002] SQLConnect: 0 [Microsoft][ODBC Driver Manager] Data
source name not found and no default driver specified' in
D:\web\lib\Zend\Db\Adapter\Pdo\Abstract.php:133
Stack trace:
#0 D:\web\lib\Zend\Db\Adapter\Pdo\Odbc.php(125):
Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 D:\web\lib\Zend\Db\Adapter\Abstract.php(246):
Zend_Db_Adapter_Pdo_Odbc->_connect()
#2 D:\web\lib\Zend\Db\Adapter\Pdo\Abstract.php(208):
Zend_Db_Adapter_Abstract->query('SELECT * FROM T...', Array)
#3 D:\web\lib\Zend\Db\Adapter\Abstract.php(469):
Zend_Db_Adapter_Pdo_Abstract->query('SELECT * FROM T...', Array)
#4 D:\web\dev\TestOdbcConnection.php(19):
Zend_Db_Adapter_Abstract->fetchAll('SELECT * FROM T...')
#5 {main}
  thrown in D:\web\lib\Zend\Db\Adapter\Pdo\Abstract.php on line
133 
 
The code is 

require_once 'Zend/Db.php';
require_once 'Zend/Db/Table.php';
require_once 'Zend/Debug.php';

$opts = array(
'host' => '10.10.123.456',
'username' => 'myusername',
'password' => 'mypassword',
'dbname'   => 'mydb'
);
$adapter = 'PDO_ODBC';
$db = Zend_Db::factory($adapter, $opts);

$sql = 'SELECT * FROM mytable';
$result = $db->fetchAll($sql);

Zend_Debug::Dump($result);


Appreciate on any leads or where to look to solve this prob.


Thanks in advance
Michael

> -Original Message-
> From: Bryce Lohr [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 22, 2007 4:51 AM
> To: Thomas Weidner; fw-general@lists.zend.com
> Subject: Re: [fw-general] NT Authentication Pdo MSSQL
> 
> Thank you for the clarification on this, Thomas. I was 
> unaware of your adapter in the incubator.
> 
> Regards,
> Bryce Lohr
> 
> 
> Thomas Weidner wrote:
> > This is wrong...
> >
> > Actually I made a PDO ODBC Adapter.
> > You can find it within the incubator.
> >
> > Greetings
> > Thomas
> > I18N Team Leader
> >
> >
> > - Original Message - From: "Bryce Lohr" 
> > <[EMAIL PROTECTED]>
> > To: "Terry Shipclark" <[EMAIL PROTECTED]>; 
> > 
> > Sent: Wednesday, November 21, 2007 3:13 PM
> > Subject: Re: [fw-general] NT Authentication Pdo MSSQL
> >
> >
> >> Hi Terry,
> >>
> >> My apologies for the late reply... I ran into this issue 
> with PDO as 
> >> well. I was able to work around it by using the PDO ODBC adapter, 
> >> where only the DSN is required. IIRC, I got NT 
> Authentication to work 
> >> like that, however, I haven't actually done this since 
> shortly after 
> >> PHP 5 first came out, so YMMV. :)
> >>
> >> Note that the PHP manual recommends using ODBC to connect 
> to MS SQL, 
> >> rather than the DBLIB adapter. Also, unfortunately, there's no 
> >> Zend_Db_Adapter_Pdo_Odbc yet.
> >>
> >> Regards,
> >> Bryce Lohr
> >>
> >>
> >> Terry Shipclark wrote:
> >>> Hello All,
> >>>
> >>> I am currently attempting to use NT Authentication with the Zend 
> >>> Framework.  Currently with Pdo there is no way of not passing a 
> >>> username/password.  I know the connection works as we 
> currently use 
> >>> mssql_pconnect from the same server to connect using NT 
> Authentication.
> >>>
> >>> I was just wondering if anyone else has had similar 
> experiences with 
> >>> better results, as before I can truly begin developing a full 
> >>> fledged application with Zend Framework.
> >>>
> >>> Thanks alot in advance
> >>>
> >>> Terry
> >>>
> 


--- 




[fw-general] Using Zend_Auth credential

2007-09-28 Thread Michael Raymond
Hi all,
 
How can I achieve to authenticate users only if the user match their
password and the status is active?
 
(in the user table status field value 1=active; 0=inactive)
 
AuthController 
 
$authAdapter->setTableName($config->system->userTableName);
$authAdapter->setIdentityColumn($config->system->userColumn);
 
$authAdapter->setCredentialColumn($config->system->passwordColumn);
 
$authAdapter->setIdentity($post->username);
$authAdapter->setCredential($post->password);
 
$auth = Zend_Auth::getInstance();
$result = $auth->authenticate($authAdapter);
 
 


--- 




RE: [fw-general] Base view in modular design

2007-09-21 Thread Michael Raymond
 
> > 
> > What is the best way to achieve this?
> 
> In your bootstrap or an early-running plugin (routeStartup(), 
> routeShutdown(), dispatchLoopStartup()), either create your 
> own view object and feed it into the ViewRenderer, or pull 
> the view object from the ViewRenderer and set a base path:
> 
> // first option:
> $view = new Zend_View(array('basePath' => 'path/to/base/views'));
> 
> Zend_Controller_Action_HelperBroker::getStaticHelper('viewRend
> erer')->setView($view);
> 
> // second option:
> $viewRenderer = 
> Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
> $viewRenderer->initView();
> $viewRenderer->view->setBasePath('path/to/base/views');
> 

Wonderfull. Thanks, I should've explore the Zend_View API.

I used to create a zend_view object in the bootstrap and store it into the
registry

$view = new Zend_View();
$view->setScriptPath('/path/to/script');
$view->setHelperPath('/path/to/helper');
Zend_Registry::getInstance()->set('view', $view);

While the IndexController 

Public function indexAction() {
  $this->initView();
$this->view->title = 'bla';
$this->render();
}

The view/scripts/index/index.html was doing

render('path/to/base/view/layouts/header.phtml')
; ?>

  title; ?>

..etc

Now 

render('path/to/base/view/layouts/header.phtml'); ?>

  title; ?>

..etc

Regards,
Michael


--- 




[fw-general] Base view in modular design

2007-09-19 Thread Michael Raymond
In developing app which using the conventional modules design

Application/
  configs/
  modules/
default/
  controllers/
  views/
blog/
  controllers/
  views/


Each modules has directories for controllers and views. I want to have a
base view directory to store the view files which will be use in every
modules (say, common layout files like html header and footer). I've consult
the programmer's reference/manual of the Zend_Controller but couldn't find
any info about it, but I might have miss it. 

What is the best way to achieve this?

Any feedback is highly appreciated.

Thanks



--- 




RE: [fw-general] ".htaccess location" post can not be accessed

2007-08-08 Thread Michael Raymond

Pls check the attachment that came with this mail.

--
This message may contain confidential and privileged information to Bank
Internasional Indonesia, PT, Tbk, (BII). If you are not the intended
addressee, please notify BII by return email immediately, and delete the
message from your computer. Any use, copy or disclosure of the message or
any information contained therein to anyone for any purpose other than as
permitted by BII is strictly prohibited, and any such use may result in
legal proceedings. BII does not guarantee and is not liable for the security
of any information electronically transmitted or for the proper and complete
transmission of the information contained in this communication, or for any
delay in its receipt. 

> -Original Message-
> From: Kexiao Liao [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 09, 2007 9:43 AM
> To: fw-general@lists.zend.com
> Subject: [fw-general] ".htaccess location" post can not be accessed
> 
> 
> Can anyone read ".htaccess location" message replied by Bill 
> Karwin? I can not open that message from nabble.com.
> --
> View this message in context: 
> http://www.nabble.com/%22.htaccess-location%22-post-can-not-be
-accessed-tf4240327s16154.html#a12065541
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 


--- 


  

--- Begin Message ---
Hi Kexiao Liao,

I'm glad to see you're trying out the demo app after attending the
webinar this morning!  :-)

It sounds like either the mod_rewrite module of Apache is not enabled on
this server, or else your directory is prohibited from using Rewrite
directives.  Either of these could be true.  You need to talk to the
administrator of your Apache instance to find out.

Regards,
Bill Karwin 

> -Original Message-
> From: Kexiao Liao [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 08, 2007 12:49 PM
> To: fw-general@lists.zend.com
> Subject: [fw-general] .htaccess location
> 
> 
> If I can not control the httpd.conf file for the Apache Web 
> Server, my domain name is ctresearch.ccf.org, and I have to 
> access Zend Framework MVC Demo through following url:
> 
> ctresearch.ccf.org/DataEntry/zfgrid/document_root/
> 
> I put .htaccess under document_root directory and it has 
> following contents:
> RewriteEngine on
> RewriteBase /DataEntry/zfgrid/document_root/ RewriteRule 
> !\.(pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
> index.php
> 
> When I try to access MVC Demo codes, only following url works well:
> http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/index/index
> 
> The link
> http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/grid/
> show/table/Patient
> does not work. Can anyone give me some help? Thanks in advance.
> --
> View this message in context: 
> http://www.nabble.com/.htaccess-location-tf4238644s16154.html#
> a12060594
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 
--- End Message ---


RE: [fw-general] Persistant config

2007-08-01 Thread Michael Raymond
Hi Dan,

To my understanding, the framework relies on the frontController instance
everytime a request is sent to the application, and since every request went
thru the bootstrap file then the config will get parsed each time.

Rgds,
Michael


> -Original Message-
> From: Dan Rossi [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 02, 2007 10:07 AM
> To: Zend Framework
> Subject: [fw-general] Persistant config
> 
> hi there, sorry I should compile these, when i set a config 
> array from a config xml to a registry entry, is this a 
> persistant registry pointer across pages, ie the xml doesnt 
> get parsed each time ?
> 
> $config = new Zend_Config_Xml('../application/config/config.xml',
> 'staging');
> 
> $registry = Zend_Registry::getInstance(); 
> $registry->set('config', $config);
> 
> I have this in my bootstrap file.
> 
> Let me know thanks.
> 


--- 




RE: [fw-general] About mysql adapter

2007-07-25 Thread Michael Raymond
Hi Jijo,

You need to install the mysql driver file: libmysql.dll into your
/php/installation/path


Regards,

> -Original Message-
> From: Jijo [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 25, 2007 5:44 PM
> To: fw-general@lists.zend.com
> Subject: [fw-general] About mysql adapter
> 
> 
> Hi,]
> 
> I am new to zend framework.I tried out an example of adding 
> entry into database and i got this error,
> 
> Uncaught exception 'Zend_Db_Adapter_Exception' with message 
> 'The mysql driver is not currently installed'
> 
> Can anybody help me to get the solution.
> 
> Thanks,
> Jijo Anthony
> --
> View this message in context: 
> http://www.nabble.com/About-mysql-adapter-tf4141350s16154.html
#a11780138
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 


--- 




RE: [fw-general] Installation

2007-07-24 Thread Michael Raymond

Awesome

> -Original Message-
> From: Jijo [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 24, 2007 7:46 PM
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] Installation
> 
> 
> Hi,
> 
> Thanks it worked.
> 
> Regards,
> Jijo
> 
> Sebastian Krebs-3 wrote:
> > 
> > Hi,
> > 
> > You copy the library to a directory of your choice, eg 
> > //path/to/htdocs/library/ (has to be readable). Then you set your 
> > include-path to //path/to/htdocs/library/. You can do this in your 
> > php.ini or directy in your file(s) you want to use 
> components out of 
> > the Framework.
> > 
> > set_include_path (get_include_path() . PATH_SEPARATOR .
> > '/path/to/htdocs/library');
> > 
> > Thats all, now you can use ZF.
> > 
> > Jijo schrieb:
> >> hi,
> >>
> >> can anybody help me out with installing zend framework
> >>   
> > 
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/Installation-tf4134929s16154.html#a11762225
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 


--- 




RE: [fw-general] Do we need Zend_Audit ?

2007-07-18 Thread Michael Raymond
Hi Jason, 
 
I can not say that it is really needed as I think most of us agree of the
Zend_Log capabilities should cover the needs. 
 
However, I found that your idea interesting because of the previous apps
that I built required audit trails in order to pass the IT audit policy
before implementation. What I did was extending Zend_Log to this purpose and
add them to the framework I wrote for the app, and this things getting kinda
repetitive when developing more applications with different busines
requirements. 
 
Zend_Audit should simplify the effort of producing common audit trails.
Provide it with ability to be integrated with Zend_Acl, and extend it to a
class that works and produces some spesific trails to make the IT Audit
folks happy. I would be definately use it! 
 
Maybe somethin default like
 
$trails = Zend_Audit::getInstance();
$trails->path('/path/to/trails/or/logs/dir');
$trails->logSystemActivity();
$trails->logCrudActivity();
$trails->logTransactions();
$trails->save();
 
 
Regards,
 
M
 


   _  

From: Jason Qi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 19, 2007 12:03 AM
To: fw-general@lists.zend.com
Subject: [fw-general] Do we need Zend_Audit ?


Hi All,

I believe it will be intact if there is a Zend_Audit work with
Zend_Auth/Acl. However, as many of you could see there is a Zend_log doing
great job to track the system activities. 

Do we really need Zend_Audit just because the name? or It could do some
special job and take advantage of  Zend_log to simplify the development? 

Any thoughts are very welcome!

Thanks.

Jason




   _  

Take the Internet to Go: Yahoo!Go puts the Internet

in your pocket: mail, news, photos & more. 



--- 




RE: [fw-general] ZF website updates

2007-07-01 Thread Michael Raymond
Wonderfull!!! Thanks! :)

> -Original Message-
> From: Bill Karwin [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 02, 2007 8:51 AM
> To: fw-general@lists.zend.com
> Subject: [fw-general] ZF website updates
> 
> Hi all,
> 
> Thanks again to everyone who worked so hard on the ZF 1.0 
> release.  We did it!  Thanks for all the congratulations and 
> well wishes.
> 
> You may notice that we deployed some improvements to the ZF 
> website this weekend.  Thanks to Zend marketing team for 
> helping with the content and organization for this site.
> 
> Also notice we have a new "Powered by Zend Framework" logo:
> http://framework.zend.com/community/logo
> I added it to the framework.zend.com site, because of course 
> it is itself a ZF application!
> 
> We have our first case study, for Right Media:
> http://framework.zend.com/whyzf/casestudies/
> We recently had a survey asking people to send us information 
> on their ZF-based projects, and we got dozens of great 
> responses.  The Marketing team will develop some of these 
> into additional case studies.  Zend Framework is already 
> being used in many exciting projects, and we want to feature 
> those on our web site.
> 
> We also plan to develop educational materials for the 
> website, to help new users get started.  We're planning both 
> written and screencast lessons.  We've heard the demand for 
> these sorts of resources.  But we've been focused on coding 
> for so long, that we're only just getting started on this 
> effort, so please be patient and we'll work on these as 
> quickly as we can.
> 
> I'm also going to continue my effort to upgrade the ZF issue 
> tracker and wiki software this week, to resolve the 
> unfortunate problems we've been having lately with that software.
> 
> Regards,
> Bill Karwin
> 


--- 




RE: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Michael Raymond
It is working ok for me. A copy for each mail.


Regards,

-Original Message-
From: David Brännlund [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 3:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [fw-general] OT: Duplicate mails?

I have this problem as well, and it's been going on for quite some time 
now. It's a bit annoying, but I can live with it. Would be nice to know 
what causes it, though.


David Brännlund
Web & Database Development
COMSOL AB, Sweden

Markus Wolff wrote:
> Hey there,
> 
> am I the only one getting almost every mail multiple times? It's been 
> going on for the past two weeks or so I think... I didn't mind a lot as 
> long as I got each mail "only" three or four times but today, I got some 
> mails more than fifteen times... that's definitely way above my pain 
> threshold :-D
> 
> Everything okay with the list server?
> 
> CU
>  Markus


---