Re: [fw-general] Memcache Approach

2010-12-10 Thread Sudheer Satyanarayana

On 12/11/2010 03:41 AM, Daniel Latter wrote:

Hi All,

Just wondered if anyone had any thoughts on the following:

We have a ZF app where we use memcache to cache our model classes. The issue
I have
is that we cant store the db conn on the object so we have to make a static
call to grab a
db conn in everyone of our model class methods, which seems repetitive.

Just wondered if anyone had a better approach?

   

Abstract the grabbing database connection logic.
--
With warm regards,
Sudheer. S
Personal home page - http://sudheer.net | Tech Chorus - 
http://techchorus.net

Web and IT services - http://binaryvibes.co.in


Re: [fw-general] best practice: getting a Zend_Mail instance on demand

2010-08-03 Thread Sudheer Satyanarayana


but I think there's the disadvantage that your Zend_Mail resource 
would get instantiated at bootstrap time whether you need it or not -- 
true? -- and not every controller/action in my app needs to send email.



Right.
Finally, I suppose you could set the email configuration data in its 
own separate config file.


Any thoughts?

I have my email settings in the database. I have extended Zend_Mail and 
added a method setup().


Class My_Mail extends Zend_Mail
{

   public function setup()
   {
// get the info to setup the clss
// set it up
   }
}

Client code:

$mail = new My_Mail();
$mail->setup();



--
With warm regards,
Sudheer. S
Personal home page - http://sudheer.net | Tech Chorus - 
http://techchorus.net

Web and IT services - http://binaryvibes.co.in


Re: [fw-general] Validating numeric input

2010-05-31 Thread Sudheer Satyanarayana

On 05/31/2010 04:58 PM, Aleksey Zapparov wrote:

Hello,

To test if string is integer or float, you should use
Zend_Validate_Int (1). Alternatively
you can use Zend_Validate_Callback (2) with is_numeric (3) function,
so it will be
something like this:

$validator = new Zend_Validate_Callback('is_numeric');


[1] http://framework.zend.com/apidoc/1.10/Zend_Validate/Zend_Validate_Int.html
[2] 
http://framework.zend.com/apidoc/1.10/Zend_Validate/Zend_Validate_Callback.html
[3] http://php.net/manual/en/function.is-numeric.php

   

Thanks for the quick response, Aleksey.

I tried configuring Zend_Validate_Callback with PHP function is_numeric().

Zend_Validate_Callback passes two arguments to is_numeric while the PHP 
function is_numeric() requires exactly one argument. Is there a way to 
configure Zend_Validate_Callback so that it sends only one argument, ie, 
$value to the callback function?


--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in



[fw-general] Validating numeric input

2010-05-31 Thread Sudheer Satyanarayana

Hello,

I want to make sure the user has input numeric value in a text form 
field. The value can be an integer or float, but it has to be numeric.


I tried using Zend_Validate_Float and Zend_Validate_Digits, but they 
don't seem to suit my needs. For example, Zend_Validate_Float returns 
false for the input string '4'. Zend_Validate_Digits returns false for 
input 10.5.


Do we need Zend_Validate_Numeric? Or am I missing something here?

--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in




Re: [fw-general] Use Zend_Queue for sending mails

2010-05-17 Thread Sudheer Satyanarayana

On 05/14/2010 11:36 AM, Ralf Eggert wrote:

Hi,

I want to use Zend_Queue to send bulk mails (newsletters). These
newsletters are individualized. I think I have two general options how
to handle this:

a) Create all Zend_Mail objects and send them serialized to the
Zend_Queue. When the queue is processed, I only need to send these
mails out.

b) Just send the parameters in the Zend_Queue (user id, newsletter
id). When the queue is processed I create the Zend_Mail objects
from these parameters and send them out.

   

If I were to use Zend_Queue, I'd recommend option b.

If you want to take a look at how we do it, visit 
http://projects.binaryvibes.co.in/repositories/entry/bizsense/trunk/application/modules/default/models/Newsletter/Message/Queue.php 



We don't use Zend_Queue though. We store all the required information in 
message_queue table and process the queue via cron.



--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in



Re: [fw-general] HOW TO USE Zend_Controller_Plugin_Abstract with application.ini

2010-03-11 Thread Sudheer Satyanarayana

On 03/11/2010 07:24 PM, Matthew Weier O'Phinney wrote:

-- rtskoo  wrote
(on Wednesday, 10 March 2010, 07:13 PM -0800):
   

I use zf 1.10 .
I have make a custom contronller plugin now ,which extends from
Zend_Controller_Plugin_Abstract. But where to put my custom contronller
plugin? I have added this in application.ini already :
resources.frontController.plugins.MyPlugin = "MyPlugin"
Thank you!
 

It needs to be somewhere it can be autoloaded -- either in your
include_path, or in a place where an autoloader can locate and load it.

If you're calling it simply "MyPlugin", put it in library/MyPlugin.php.
However, I'd advise adding at least a vendor prefix to it: Foo_MyPlugin
in library/Foo/MyPlugin.php.

   
Out of curiosity, aren't you supposed to put your plugins in 
application/plugins or application/modules/default/plugins?



--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in



Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Sudheer Satyanarayana

On Monday 30 November 2009 02:40 AM, Jigal sanders wrote:

Well,

my first problem is that it gets to my webroot but when I click on a 
link, it doesn't follow my controller and action. I rather get an error:


The requested URL /authentication/login was not found on this server.

the whole structure is exactly coppied to my project on ubuntu.

can it be something in my vhost config?


ServerAdmin jigalroe...@gmail.com 

DocumentRoot /var/www/nrka/public/
ServerName nrka

Options Indexes FollowSymLinks MultiViews
AllowOverride None

AllowOverride All.

Order allow,deny
allow from all

##ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
##
##AllowOverride None
##Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
##Order allow,deny
##Allow from all
##

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None

AllowOverride All.

You have to allow the .htaccess files to override settings. Or just put 
up the rewrite rules in the  section of Apache configuration.


--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in



Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Sudheer Satyanarayana



So, as an experienced PHP programmer but someone who's looking wanting to
get the whole picture on how to best start utilizing ZF, where does one
begin?
   
Like Daniel pointed Surviving The Deep End is a good book. The book is 
more a 'best practices' tutorial for the Zend Framework user. Being 
familiar with MVC components helps.


The best way is to start writing an application using the Zend 
Framework. If you wish to make contributions to an open source project 
written using Zend Framework, I have suggestions. :)


Many of us hang out on #zftalk on freenode.net IRC channel.

Recently, I wrote a review of the book - Zend Framework 1.8 Web 
Application Development at 
http://techchorus.net/zend-framework-18-web-application-development-book-review 
. The review might help.






--

With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net
Business: http://binaryvibes.co.in



Re: [fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Sudheer Satyanarayana



There are two things going wrong: you need to specify the route, and,
specifically, the default route, when using the url() view helper.

 $url = $this->url(array(
 'module' =>'default',
 'controller' =>'user',
 'action' =>'login'
 ), 'default', true);

   

Thanks, Matthew.

I was assuming that the url view helper would default to 'default' route.

Is it possible to add this enhancement to the url view helper?

--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Zend_View_Helper_Url not returning correct URL when Zend_Rest_Route is used

2009-10-06 Thread Sudheer Satyanarayana

Hi,

In my bootstrap I am adding the Zend_Rest_Route

[code]
protected function _initRestRoute()
{
if (PHP_SAPI == 'cli') {
return;
}

$this->bootstrap('frontController');
$frontController = Zend_Controller_Front::getInstance();
$restRoute = new Zend_Rest_Route($frontController, array(), 
array('webservice'));

$frontController->getRouter()->addRoute('rest', $restRoute);

}
[/code]

After adding this route, the url view helper is not returning the 
correct URL. For instance, in the layout script(default module),


[code]
 $url = 
$this->url(array('module'=>'default','controller'=>'user','action'=>'login'));

 echo $url;
[/code]

The url returns the value '/user' instead of '/user/login'.

How can I correct this issue


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




Re: [fw-general] Zend_Rest_Controller - how to pass params in the URI for POST requests

2009-10-05 Thread Sudheer Satyanarayana



POST /webservice/lead

not:

POST /webservice/lead/apikey/myapikey

In other words, apikey/myapikey does not do anything to identify the
resource so should not be part of your URI. If your clients must use
an API key, then you could have them send it as an HTTP Header.
   

Thanks for the quick response Bradley.

I liked the idea of using an HTTP header for API Key as soon as I read 
your reply. I implemented it in the application already. :)



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Zend_Rest_Controller - how to pass params in the URI for POST requests

2009-10-05 Thread Sudheer Satyanarayana

Hi,

In my application, I have a module - 'webservice' to handle all REST 
requests.


In my front controller I check if the request has a valid API key in the 
request URI parameters. If a valid key is not found access is denied.


Example URI with API key : example.com/webservice/lead/apikey/myapikey

My problem is, Zend_Rest_Route routes the request to putAction() if it 
finds anything after module/controller/ in the URI even though the 
method is POST.


Is it possible to route requests to postAction() and pass pass 
parameters in the URI?


Or, is there a better way of managing API key checks for REST requests?

--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




Re: [fw-general] How to set either Zend_Form_Element_Text required?

2009-09-29 Thread Sudheer Satyanarayana

On Wednesday 30 September 2009 10:18 AM, Leon_L wrote:

Hi, I'm new to Zend Framework, I have a question is that if I have two
Zend_Form_Element_Text in a form, and I want make either of them to be
filled by the user.

For example, phone number and mobile number. People only need enter one of
them to continue.

How am I going to do this? Thanks

   
Write a custom validator and use the $context variable. The reference 
manual has an example custom validator.



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] bootstrap application from CLI

2009-09-28 Thread Sudheer Satyanarayana

On Monday 28 September 2009 08:42 PM, Pádraic Brady wrote:
I'm actually curious about this myself - how are people 
differentiating their application.ini settings between a web 
environment and console environment? Another inherited settings 
section? A separate config file?


Paddy
I had to move lot of config from application.ini to the bootstrap class. 
I didn't like the idea of having another APPLICATION_ENV value - 
'production_cli'. This calls for additional checks in the resource 
methods. For example I had to write


[code]
if (PHP_SAPI == 'cli' and APPLICATION_ENV == 'production') {
return;
}
[/code]

at be beginning of one of the resource methods.

To remove such checks, I have to move almost everything from 
application.ini to the bootstrap class. :/



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] bootstrap application from CLI

2009-09-28 Thread Sudheer Satyanarayana




The problem is, Zend_Application instantiates the front controller 
which in turn registers the FlashMessenger action helper. This throws the

Zend_Session exception.

Sorted it out.

In my application.ini config file, I had defined a layout resource. This 
was bootrapping the view resource which in turn was bootstrapping the 
front controller resource.



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] bootstrap application from CLI

2009-09-28 Thread Sudheer Satyanarayana

On Monday 28 September 2009 05:58 PM, keith Pope wrote:

2009/9/28 Sudheer Satyanarayana:
   

Hi,

I am trying to boostrap the application from CLI.

$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap(array('autoload', 'config', 'database'));

The problem is, Zend_Application instantiates the front controller which in
turn registers the FlashMessenger action helper. This throws the
Zend_Session exception.

Unit test enabling the session solves the problem.

//require_once 'Zend/Session.php';
Zend_Session::$_unitTestEnabled = true;

However, it is a quick hack solution. This CLI script runs in the production
environment. Therefore, I don't want the session to be unit test enabled.

To overcome the problem, I tried to override the method
_initFrontController(). It doesn't seem to be the correct method name.

Is it possible to disable the front controller? If not, how do I instruct
the front controller to not register the FlashMessenger action helper?
 

Your code does look correct, are you doing

$application->run();

   

No, I am not calling run();

If so you dont want that as it starts the dispatch...

If not this could be a bug, by doing boostrap('resource') etc Z_App
should only execute those resources!

   


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] bootstrap application from CLI

2009-09-28 Thread Sudheer Satyanarayana

Hi,

I am trying to boostrap the application from CLI.

$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap(array('autoload', 'config', 'database'));

The problem is, Zend_Application instantiates the front controller which 
in turn registers the FlashMessenger action helper. This throws the

Zend_Session exception.

Unit test enabling the session solves the problem.

//require_once 'Zend/Session.php';
Zend_Session::$_unitTestEnabled = true;

However, it is a quick hack solution. This CLI script runs in the 
production environment. Therefore, I don't want the session to be unit 
test enabled.


To overcome the problem, I tried to override the method 
_initFrontController(). It doesn't seem to be the correct method name.


Is it possible to disable the front controller? If not, how do I 
instruct the front controller to not register the FlashMessenger action 
helper?



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




Re: [fw-general] Object oriented programming with Zend

2009-09-26 Thread Sudheer Satyanarayana

On Saturday 26 September 2009 06:57 PM, PHPScriptor wrote:

Hello there,

I worked for different companies and saw different ways of programming
websites.
Now everybody is talking about OO programming. But my question is: why?

Let me give you an example one of the ways I saw it done:

a class member

Class Member {
protected $_id;
protected $_name;
portected $_street;
...

public function setId($id) {
$this->_id = $id;
}
public function getId() {
return $this->_id;
}
...
public function save() {
$member = array('name' =>  $this->getId(), 'street', 
$this->getStreet(),
...)
$db->insert($member);
}
}

When a form is posted it did:
$member = new Member();
$member->setName($this->_getParam('member')
->setStreet($this->_getParam('street');
...
$member->save();

Also when you get data from the db it will be inserted in the object, and
get from the object when you need to show it (eg in the view).


Another way (I did it) before:

Just in the controller after eg posting a form:
$data = $this->_getAllParams();
$db->insert($data);

Like you see, my way is a lot shorter :-).

I think you are confusing what the code snippet is trying to demonstrate.

Well, if you use Zend_Form you could do something like
$data = $form->getValues();
$data->insert($data);

All the form fields would be filtered and validated as well. Even more 
better than your snippet? Think SQL injection.



But comments I get is: it's not
really OO. They are true with that comment, but why should you make all
those object, all those set en gets, ... Why isn't it better to work with
arrays?
With the Zend framework IMHO you don't need to configurate all those
objects. Ok, in some systems it's better. But let's talk about
administration application, where you only have forms to input or edit,
delete and view lots of data.

What 's your meaning, why is it better to use them? ...

   
It is next to impossible to write all the benefits of using OOP in this 
email. You should read books about OOP to learn more about it.


The sample you snippet posted appears to demonstrate how to encapsulate 
database access in your models.


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] How to bootstrap application in testing environment

2009-09-22 Thread Sudheer Satyanarayana



Again, this is a wild stab in the dark, but I have:

Zend_Session::$_unitTestEnabled = true;

in my TestHelper.php (run at the start of testing), which magically 
fixes a lot of sessions related test problems.

That fixed the problem. Thanks.


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] How to bootstrap application in testing environment

2009-09-19 Thread Sudheer Satyanarayana

On Friday 18 September 2009 07:09 PM, Sudheer Satyanarayana wrote:

Hi,

I followed the tutorial at zendcasts.com ( http://tinyurl.com/n4hee2 ) 
to setup testing environment for my ZF enabled application. Everything 
went fine with regards to the tutorial.


But the tutorial recommends including a test class that extends 
Zend_Test_PHPUnit_ControllerTestCase in the test bootstrap. I think it 
is a bit awkward for your ModelTest and LibraryTest classes to extend 
a class that in turn extends Zend_Test_PHPUnit_ControllerTestCase.


Is there a way to bootstrap your testing environment without extending 
Zend_Test_PHPUnit_ControllerTestCase? I want to reuse the 
application's Bootstrap.php in all my environments - development, 
testing and production.


I tried to bootstrap the application in my test like below:
[code]
$application = new Zend_Application(APPLICATION_ENV,APPLICATION_PATH . 
'/configs/application.ini');

$application->bootstrap();
[/code]

But I get PHP session warnings because the user running tests is 
unable to write to /var/some/path/apache/is/able/to/write/to. 
Zend_Test_PHPUnit_ControllerTestCase mysteriously circumvents this.


Example code snippet is highly appreciated.


Anyone?

--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Split controller actions into multiple classes

2009-09-18 Thread Sudheer Satyanarayana

On Friday 18 September 2009 07:10 PM, Ryan Chan wrote:

Hello,

I have a controller that contains too many line of codes, which made
the controller too large.

So I want to split each action into eactly one class files.

Is it recommended? If not, what are the recommended way to make the
controller "thin"?

   
Consider splitting your code into multiple controllers and perhaps 
modules. Do you have model classes by the way?



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] How to bootstrap application in testing environment

2009-09-18 Thread Sudheer Satyanarayana

Hi,

I followed the tutorial at zendcasts.com ( http://tinyurl.com/n4hee2 ) 
to setup testing environment for my ZF enabled application. Everything 
went fine with regards to the tutorial.


But the tutorial recommends including a test class that extends 
Zend_Test_PHPUnit_ControllerTestCase in the test bootstrap. I think it 
is a bit awkward for your ModelTest and LibraryTest classes to extend a 
class that in turn extends Zend_Test_PHPUnit_ControllerTestCase.


Is there a way to bootstrap your testing environment without extending 
Zend_Test_PHPUnit_ControllerTestCase? I want to reuse the application's 
Bootstrap.php in all my environments - development, testing and production.


I tried to bootstrap the application in my test like below:
[code]
$application = new Zend_Application(APPLICATION_ENV,APPLICATION_PATH . 
'/configs/application.ini');

$application->bootstrap();
[/code]

But I get PHP session warnings because the user running tests is unable 
to write to /var/some/path/apache/is/able/to/write/to. 
Zend_Test_PHPUnit_ControllerTestCase mysteriously circumvents this.


Example code snippet is highly appreciated.

--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Clarification needed about "Zend" and its products

2009-09-12 Thread Sudheer Satyanarayana

On Saturday 12 September 2009 08:25 PM, ataulkarim wrote:

I must admit in the beginning i'm somewhat new to Frameworks, but for reasons
to move to enterprise development and faster project execution im prone to
get into the Frameworks Arena. Now, i have to make a choice between certain
frameworks - Zend Framework, CakePHP, Symfony, CodeIgniter etc. I've
invested quite a bit of time for each one's pros n cons, but i could not
find an article or tutorial that gives me a complete insight into the world
of "Frameworks".

I've decided to approach the Zend Community to clarify me some of the things
that are going on in my head. I hope many would like to participate here so
that each new beginner can get an idea what options he has. Now, with all
the backing that Zend has in terms of Technology Partners, people with
PHP-Core knowledge, i decided to learn Zend framework, although alot of
friends told me to choose CakePHP.

Zend has:

1. Zend Framework 1.9.2 (Free)
2. Zend Server Community Edition (Free)
3. Zend Server (Buy)
   
There is no compulsion to use other Zend products with Zend Framework. 
Zend Framework can be used on any PHP 5 installation.

I've seen MVC tutorials of the framework (although old ones), but find the
concept appealing. Zend server Community Edition provides with an user
interface to work with, great. The only thing that confuses me is the aspect
of CACHING.

Caching

Zend framework and Zend Community Edition come with the Zend Optimzer(to my
understanding does not do opcode caching) and the Zend Server provides with
opcode caching. I've read alot of APC caching possibilities and capabilites
which to some people is faster then Zend Optimzer. Andi Gutmans commented
somewhere that Zend Server has opcode caching capabilities and performance
tests should be done with zend server.

Now, here are my questions:

1. If i install Zend Server Community Edition can i still make certain
manual changes i would be able to do with Zend Framework?
   
You don't have to use Zend Server in order to use Zend Framework. But if 
you wish, you can.

2. Are opcode caching capabilites present in Zend Framework / Zend Server CE
- other than Optimizer? (if not ->  Can i use zend framework to manually
overcome this deficit?)

3. If the only Opcode caching is possible with Zend Server(which i would
have to buy)- is there a possibility to integrate APC with Zend Framework?

   
Yes, you can use APC or any other op code caching component of your 
choice. Just treat Zend Framework as any other PHP library.

4. Why does Zend has a  http://framework.zend.com/docs/screencasts
Screenacst Tutorial  about "Getting Started with Zend Framework" with 1.0.3.
Ok i know Zend is a 'Company' and would concentrate more on the buy side of
products, but essence of PHP is i guess Open Source(free) and any help
regarding that would be appreciated even if its in the getting started video
- 1.8 would also be OK :-) .

   
There are good tutorials on ZF. http://www.survivethedeepend.com/ for 
example. The blogosphere offers some good tutorials. There is also the 
http://www.zendcasts.com/.( The domain name might mislead. It is not an 
official Zend website).

I hope i get some clarification for these questions which might also benefit
others.

   



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Usage of ZFW / PHP in yuor country

2009-09-12 Thread Sudheer Satyanarayana

On Saturday 12 September 2009 04:12 PM, howard chen wrote:

Hello,

I am from Taiwan.

In Taiwan, PHP is still not a main stream commerical programming
language for web, people still prefer .NET or Java for web site
development. (Althought most taiwan people prefer PHP opensource app
such as wordpress, phpbb etc)


Talking about PHP itself, most people still perfer programming with
raw PHP - inline php codes with HTML. (not to mention ZFW)


Is it the same in your contry?

I heard that PHP is more popuar and well accepted in some western
countries, even in the enterprise market, is it true?

   
Is it a wild guess about PHP usage in your country? Are you quoting a 
trusted source? If so what it is it? Or you have you conducted a survey 
yourself?


And what has it got to do with Zend Framework?



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Unable to translate strings retrieved from DB

2009-08-19 Thread Sudheer Satyanarayana

Thomas Weidner wrote:
Simply make a var_dump() of $string, and $manualString and compare 
them to see where the differences are.
A missing whitespace, additional point or any other different char 
could be the problem.



You hit the nail on the head, Thomas. Thank you very much.

I thought I was not overlooking this. The string in the DB had four 
linefeed characters and the source string in the translation file didn't. 



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Unable to translate strings retrieved from DB

2009-08-19 Thread Sudheer Satyanarayana

Hi,

I am trying to set up a translation layer to an existing application.

Here is my sample PHP script:
[phpscript]
$translate = new Zend_Translate('gettext', APPLICATION_PATH . 
'/languages/en/menu.mo', 'en');

$translate->setLocale('en');

mysql_connect($MySQL_Host, $MySQL_User, $MySQL_Passw);
mysql_select_db($db);

$result = mysql_query("select news from mdirekt_news where id = 1");
$row = mysql_fetch_object($result);

//Print the string as is
$string = $row->news;
echo "As is: ". $string;

//Print the translated string. Does not translate at all. Prints the 
source string as is

echo " Zend_Translate translated: ";
echo $translate->_($string);

//Copy the string manually to a variable and print the translated 
string. Works well.

echo "Manually copied string translated: ";
$manualString = "unterstützt Ihre Messekommunikation durch die 
Verbreitung im Vorfeld der Messe - weil Sie aktiven Einfluss auf die 
Besuchsplanung des Messebesuchers ausüben";

echo $translate->_($manualString);

[/phpscript]

The script does not translate the string retrieved from the database. I 
think it is a character encoding issue. But I do not know how to fix.


In an attempt to fix the issue I changed the collation to 
utf8_general_ci on the column, table and the database. But the output 
remains same.


What could be the problem? How can I perform proper translation?




--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




[fw-general] Re: [fw-mvc] - Where to put common DB calls

2009-08-11 Thread Sudheer Satyanarayana

Vibhor Singh wrote:


Hi,

 

Can someone plz  tell me whether there is any  provision in ZF where  
I can put my common DB related functionalities, something like how 
action helpers is to controllers?


All suggestions are welcome.

 

Can you elaborate? The answer depends on the type of functions you are 
talking about.



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Matthew's pastebin app

2009-08-10 Thread Sudheer Satyanarayana

Christoph Dorn wrote:

Matthew,

Are you planning to update your pastebin app to incorporate all the 
latest 1.9 features?


Christoph



I would love to hear yes from Matthew!


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Put each action in a separate PHP file?

2009-08-08 Thread Sudheer Satyanarayana

Ryan Chan wrote:

Hello,

As a ZFW learner, I tried the quick start:
http://framework.zend.com/docs/quickstart/create-a-form

My problem is when the controller contains many action - it make the
file too large to edit.

So I want to split each action into a separate PHP file, is it possible?


Thanks...

  

Hi Ryan,

If you find your controller too large consider the following:
1. Segregating your  application into multiple modules each having their 
own controllers
2. In the controller action receive the request, call the appropriate 
methods of your models and then assign variables to the view. This 
approach makes your controllers thin.


IMO, it becomes very difficult to manage the code if every controller 
actions include files.



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Zend Framework 1.9.0 Released!

2009-07-31 Thread Sudheer Satyanarayana

Matthew Weier O'Phinney wrote:

The Zend Framework team announces the immediate availability of version
1.9.0!

http://framework.zend.com/download/latest

Kudos and thanks go out to the huge number of community contributors who
helped make this release possible. This release has been almost entirely
community driven, with the Zend team contributing primarily feature
additions to existing components and working on maintenance of the
project. If you submitted an issue report, a documentation improvement,
a patch, a documentation translation, or a component, let it be known
that you helped make this release what it is!

The big stories in this release can be summed up in two phrases:
enterprise tools and PHP 5.3 support.

With Zend Framework making inroads to Enterprises, it's not surprising
that we are seeing a number of components geared towards the Enterprise.
In this release, we add two new components -- Zend_Queue and
Zend_Test_PHPUnit_Db -- as well as additions to existing components --
Zend_Ldap, Zend_Rest_Route, and Zend_Db_Adapter_Sqlsrv -- that target
such development. Zend_Queue provides a common API for interacting with
queue services such as Apache's ActiveMQ, MemcacheQ, and Zend Platform's
Job Queue. Zend_Test_PHPUnit_Db brings DBUnit support to our Zend_Test
offering, and provides integration with Zend_Db. Our Zend_Ldap support
is now much more robust, and allows connectivity with MS ActiveDirectory
and Novell's eDirectory, as well as full CRUD and tree manipulation
options. Zend_Rest_Route allows developers to quickly develop RESTful
MVC applications, which are increasingly gaining traction when serving
public APIs. Zend_Db_Adapter_Sqlsrv interfaces with Microsoft's SQL
Server driver for PHP.

A month ago, the PHP team released the long-awaited PHP 5.3, which
offers many improvements to the object model, as well as increased
performance. Upgrading to PHP 5.3 is mostly straightforward, but, as
with any release of this magnitude, sometimes takes some work. We have
carefully audited our code and combed through our testbed in order to
provide first-class compatibility for PHP 5.3 in Zend Framework -- while
simultaneously continuing to support PHP 5.2.4 and above. Using Zend
Framework on PHP 5.2 or 5.3 should be seamless and pose no issues for
developers.

New features in Zend Framework 1.9.0 include:

 * Zend_Queue and Zend_Service_Amazon_Sqs, which provide the ability to
   use local and remote messaging and queue services for offloading
   asynchronous processes. (Contributed by Justin Plock and Daniel Lo)

 * Zend_Queue_Adapter_PlatformJobQueue, a Zend_Queue adapter for Zend
   Platform's Job Queue. (Contributed by Zend Technologies)

 * Zend_Rest_Route, Zend_Rest_Controller, and
   Zend_Controller_Plugin_PutHandler, which aid in providing RESTful
   resources via the MVC layer. (Contributed by Luke Crouch,
   SourceForge)

 * Zend_Feed_Reader, which provides a common API to RSS and Atom feeds,
   as well as extensions to each format, caching, and a slew of other
   functionality. (Contributed by Pádraic Brady and Jurrien Stutterheim)

 * Zend_Db_Adapter_Sqlsrv, a Zend_Db adapter for Microsoft's SQL Server
   driver for PHP. (Contributed by Juozas Kaziukenas and Rob Allen)

 * Zend_Db_Table updates to allow using Zend_Db_Table as a concrete
   class by passing it one or more table definitions via the
   constructor. (Contributed by Ralph Schindler)

 * Zend_Test_PHPUnit_Db, which provides Zend_Db support for PHPUnit's
   DBUnit support, allowing developers to do functional and integration
   testing against databases using data fixtures. (Contributed by
   Benjamin Eberlei)

 * Annotation processing support for Zend_Pdf, as well as performance
   improvements. (Contributed by Alexander Veremyev)

 * Zend_Dojo custom build layer support. (Contributed by Matthew Weier
   O'Phinney)

 * Dojo upgraded to 1.3.2.
 
 * Numerous Zend_Ldap improvements, including full support for CRUD

   operations, search, and manipulating tree structures. (Contributed by
   Stefan Gehrig)

 * Zend_Log_Writer_Syslog, a Zend_Log writer for writing to your system
   log. (Contributed by Thomas Gelf)

 * Zend_View_Helper_BaseUrl, a view helper for returning the current
   base URL to your application, as well as for constructing URLs to
   public resources. (Contributed by Robin Skoglund and Geoffrey Tran)

 * Zend_Date now has support for the DateTime extension. (Contributed by
   Thomas Weidner)

 * Zend_Locale has been upgraded to CLDR 1.7. (Contributed by Thomas
   Weidner)

 * Zend_Translate now has plurals support for the Gettext, Csv, and
   Array adapters. (Contributed by Thomas Weidner)

 * PHP 5.3 compatibility, including support for new features in the
   mysqli extension. All components are fully tested on both PHP 5.2.4
   and above, as well as PHP 5.3.0.

In addition, a large number of smaller improvements were made throughout
the framework, and around 700 issues have been resolved or closed since
the 

Re: [fw-general] Unable to autoload module's models

2009-07-27 Thread Sudheer Satyanarayana



Have you got
resources.modules = ""
in your application.ini (or equivalent)? This causes the modules
resource to be instantiated, which is responsible for calling the
bootstrappers for all modules.

  

Thanks. I was missing this.

After I added
[code]
resources.modules = APPLICATION_PATH "/modules"
[/code]
in application.ini, autoload is working fine.


I notice that  you have a default module inside your modules
directory. when Zend_Tool creates
a new project the default modules controllers, models, views are
located in
  


Yes, this is the recommended directory structure - default module in the
"application" directory (ie. not under the modules directory)

  

I actually followed the directory structure specified in the manual:
http://framework.zend.com/manual/en/zend.controller.modular.html - 
scroll down to 12.11.2. Specifying Module Controller Directories. The 
example demonstrating the addModuleDirectory() has default directory in 
application/modules.



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Unable to autoload module's models

2009-07-27 Thread Sudheer Satyanarayana

iamjim wrote:


Here is what works for me in my module (Auth), to autoload files in the
module subdirectories
form, service, and models.

class Auth_Bootstrap extends Zend_Application_Module_Bootstrap
{
protected function _initAuthAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Auth_',
'basePath'   => APPLICATION_PATH . '/modules/auth',
'resourceTypes' => array (
'form' => array(
'path'   => 'forms',
'namespace'  => 'Form',
),
'model' => array(
'path'   => 'models',
'namespace'  => 'Model',
),
'service' => array(
'path'   => 'service',
'namespace'  => 'Service',
)
)
));
return $autoloader;
}
}


  
Thanks for the response. I now have this in the 
application/modules/job/Bootstrap.php

[code]
class Job_Bootstrap extends Zend_Application_Module_Bootstrap
{
   protected function _initAuthAutoload()
   {
   $autoloader = new Zend_Application_Module_Autoloader(array(
   'namespace' => 'Job_',
   'basePath'   => APPLICATION_PATH . '/modules/job',
   'resourceTypes' => array (
   'form' => array(
   'path'   => 'forms',
   'namespace'  => 'Form',
   ),
   'model' => array(
   'path'   => 'models',
   'namespace'  => 'Model',
   ),
   'service' => array(
   'path'   => 'service',
   'namespace'  => 'Service',
   )
   )
   ));
   return $autoloader;
   }

}
[/code]

But still autoload does not work. The class Job_Bootstrap in the above 
file is never instantiated.


I get the error:
Fatal error: Class 'Job_Model_Index' not found
My directory structure is 


application
   configs
   controller
   models
   modules
  admin...
  auth
 controllers
 forms
 models
 services
 views
 Bootstrap.php
  main...
library
public
tests


I notice that  you have a default module inside your modules directory. 
when Zend_Tool creates

a new project the default modules controllers, models, views are located in
the application directory.
   
Hope this is helpful.

jim

  


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Unable to autoload module's models

2009-07-25 Thread Sudheer Satyanarayana

Hi,

I have the following directory structure
application
---Bootstrap.php
---modules
--admin
--default
-controllers
-models
---  Account.php (with class Model_Account)
-views
--job
Bootstrap.php( with class Job_Bootstrap extends 
Zend_Application_Module_Bootstrap)

controllers
-models
 Index.php (with class Job_Model_Index)
-views

I am unable to setup aotoload for Job_Model_Index.

These are the contents of the application/Bootstrap.php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
...
protected function _initAutoload()
   {
   $autoloader = new Zend_Application_Module_Autoloader(array(
   'namespace' => '',
   'basePath'  => dirname(__FILE__) . '/modules/default'
   ));
   return $autoloader;
   }
}


And below is the content of application/modules/job/Bootstrap.php

class Job_Bootstrap extends Zend_Application_Module_Bootstrap
{

   public function __construct($application)
   {
   parent::__construct($application);
  // echo "Bootstrap loaded!"; exit(1);
   }

   public function _initAutoload()
   {
  $autoloader = new Zend_Application_Module_Autoloader(array(
  'namespace' => '',
  'basePath'  => dirname(__FILE__)
  ));
  return $autoloader;
   }

}

The Job_Bootstrap is not instantiated at all.

I read the manual and few threads here, but could not figure out a 
solution. Can somebody suggest what is wrong with my code?


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




Re: [fw-general] ZF1.8.4 and Dojo filteringselect

2009-07-25 Thread Sudheer Satyanarayana

Holon35 wrote:

Since V1.8.4 off ZF all my dojo dialog are down.

With ZF1.8.3
/1001sportifsv2/public/general/default/index/listecommunautesrechvideo is
called automatically and the value corresponding to 10 is selected.

With 1.8.4 nothing is selected and 'populate' dont work at all.

I'm very desapointed and I cant find solution.
  


Hi,

Look at http://framework.zend.com/issues/browse/ZF-7360 and vote on it.

--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




Re: [fw-general] Problem about running the quick start sample.

2009-06-22 Thread Sudheer Satyanarayana

Niu Kun wrote:

Dear all,
I'm new to Zend Framework.
First of all, I followed the quick start sample. But I change the 
database to mysql.

And I change the pdo configuration.
But when I browse to http://localhost/guestbook, I always get a 404 
error.
So I downloaded the sample code from the zend framework website and 
changed nothing.

But, this time, I got the same 404 error.
Would anyone here please point me out?
Have you enabled mod_rewrite? Is your host allowed to override the 
rewrite rules?



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Get request from view

2009-06-16 Thread Sudheer Satyanarayana

umpirsky wrote:

Hi.

Is there some easy way to get request parameters from view script (object)?
I like smarty $smarty.post, is there sth like $view->getParam() in zend
framework?
  

You can get the request parameters from the request object.

This might help to grab the request object:

http://techchorus.net/how-access-request-object-any-part-your-application


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Reusing a partial across modules

2009-05-20 Thread Sudheer Satyanarayana

keith Pope wrote:

2009/5/20 Sudheer Satyanarayana :
  

Hello all,

I am trying to reuse a partial in all my modules.

I have the partial placed at modules/default/views/scripts/search.phtml

In the view script modules/admin/views/scripts/branch/index.phtml I have the
following code:

paginationControl($this->paginator, 'Sliding',
'search.phtml', array('default')); ?>

As per the documentation at
http://framework.zend.com/manual/en/zend.paginator.usage.html#zend.paginator.rendering
I am passing the module name in the additional parameters in the fourth
argument. But the partial from the default module is not called at all. I
get an exception with the message - string 'script 'search.phtml' not found
in path (.../application/modules/admin/views/scripts/).

Where did I go wrong?



You need to add the script path to the view, what I usually do is have
/application/views/scripts and use this as the global directory for
shared view elements. You can add the path during bootstrap.

  

Thanks for the quick reply.

But, isn't it a performance overhead? Lazy loading the script would be 
great.  I read, it is possible according to the documentation.


http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.partial 
- Example 60.6. Rendering Partials in Other Modules


Did I completely misunderstand the concept?

To debug the issue, I copied the search.phtml file to admin/view/scripts and
everything works properly. But having a copy of this script in every module
is unmaintainable.




--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Reusing a partial across modules

2009-05-20 Thread Sudheer Satyanarayana

Hello all,

I am trying to reuse a partial in all my modules.

I have the partial placed at modules/default/views/scripts/search.phtml

In the view script modules/admin/views/scripts/branch/index.phtml I have 
the following code:


paginationControl($this->paginator, 'Sliding', 
'search.phtml', array('default')); ?>


As per the documentation at 
http://framework.zend.com/manual/en/zend.paginator.usage.html#zend.paginator.rendering 
I am passing the module name in the additional parameters in the fourth 
argument. But the partial from the default module is not called at all. 
I get an exception with the message - string 'script 'search.phtml' not 
found in path (.../application/modules/admin/views/scripts/).


Where did I go wrong?

To debug the issue, I copied the search.phtml file to admin/view/scripts 
and everything works properly. But having a copy of this script in every 
module is unmaintainable.


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net




Re: [fw-general] howto find a method

2009-05-18 Thread Sudheer Satyanarayana

Mike Wright wrote:

Hi all,

Is there any glossary or index that allows finding a method and/or its 
associated class?


Sure would make life easier, especially for those not already immersed 
in the framework :D



http://framework.zend.com/docs/api

Is that what you are looking for?


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Four oh four issue

2009-05-14 Thread Sudheer Satyanarayana

I have posted this to the issue queue.

Vote for it - http://framework.zend.com/issues/browse/ZF-6650


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Four oh four issue

2009-05-13 Thread Sudheer Satyanarayana

Hi,

I have set up the the error controller with error_handler to act as 404 
handler as per the instructions in the online reference manual. The 404 
handler works but for one situation. If there is a ':' in the URI I 
don't get the exxception of type 
Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER or 
Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION. Instead I get 
a Zend_View_Exception.


For example, I have the index controller and the index action in the 
default module. The page loads properly, when index/index/index is 
requested. However, when index: is requested, the Zend_View_Exception is 
thrown. The message in the exception is


'script 'index:/index.phtml' not found in path (../application/views/scripts/)'

Shouldn't I be getting an exception of type 
Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER?


ZF 1.8.0. There are no custom routes defined.


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



[fw-general] Refresh meta tag with Zend_Http_Client

2009-05-07 Thread Sudheer Satyanarayana

Hi list,

Is Zend_Http_Client capable of refreshing meta tag? If so, how do I 
achieve it?




--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Survey: Development environment for PHP/ZFW

2009-05-02 Thread Sudheer Satyanarayana

howard chen wrote:

Please feel free to answer:

1. What OS you are using during development? Windows? Mac? Linux?
  

Linux. Currently Fedora 10.

2. Do you edit source code on localhost or remote? i.e. is your
testing environment reside on localhost or remote?
  

Local

3. What tool or IDE you are using? Ultraedit? Apanta? Eclipse PDT?
  

vim

4. Which versioning system your are using? svn? git?
  

svn and git

5. Do you use PHPUnit or other testing tools?
  

PHPUnit



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] how to know which controller and action is being called

2009-04-27 Thread Sudheer Satyanarayana

Vadim Gabriel wrote:

Hey,

That will not give him the ability to access the request object in his 
view script. Unless he would like to get the front controllers 
instance directly inside the view script file.


True. I have never encountered a situation where I had to access the 
request object in the view script.


Pradosh,

If you describe us what exactly you are trying to do, we will be able to 
provide proper directions. My previous reply was for your information 
purpose only.




--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] how to know which controller and action is being called

2009-04-26 Thread Sudheer Satyanarayana

prado wrote:

BTW Vince

How can i use this below straight from the view without putting in a
variable from the controller?

cheers
  

Access the request object. And then you can read the controller name:
$request->getControllerName();

This link might help - 
http://techchorus.net/how-access-request-object-any-part-your-application



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Zend_Db_Table How best to associate an object with a db table?

2009-04-26 Thread Sudheer Satyanarayana

J DeBord wrote:
This may be partially a general oop question, but I hope someone can 
give me some advice.


If you want to build a User object, what is the best way to store it's 
attributes? Would a user object extend a Zend_Db_Table? Would you code 
a User class and have it interact with a UserTable extends 
Zend_Db_Table class? Can anyone provide a general example of code 
please? Or any advice? Books to read, sites to visit, etc...



Personally, I prefer not to extend Zend_Db_Table for models.

Matthew has written about it previously. 
http://weierophinney.net/matthew/archives/202-Model-Infrastructure.html 
You should follow Matthew's blog for tutorials, news and insight about 
Zend Framework. There's also a free book available on ZF - 
http://www.survivethedeepend.com/



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Zend Framework team reorganization

2009-04-14 Thread Sudheer Satyanarayana

Matthew Weier O'Phinney wrote:

Greetings!

The Zend Framework team has undergone some internal reorganization
recently which will have some bearing on the project.

First, the team now reports to Zeev Suraski, Zend's CTO. Please welcome
him to the lists!
  

Wow. Welcome Zeev.

Additionally, Wil Sinclair is ending his tenure as the Zend Framework
team leader. During his time as project lead, Zend Framework has made
tremendous progress in becoming the de-facto standard for PHP
development, with several significant achievements:

  * The 1.5, 1.6, and 1.7 releases, as well as the recent 1.8 preview
release
  * Helped support and build partnerships with the Dojo Foundation,
Adobe, and others
  * Introduction of agile methodologies to the ZF team
  * Usage of social networking media as an additional support vector

I'd like to thank Wil for his contributions to the Zend Framework
project!

  

Thanks for all the greet work, Wil. Best of luck.

Finally, I am pleased to announce my own promotion to the position of
Project Lead. I have worked with Andi and Zeev in recent weeks to define
how I will approach this role, and have emphasized during that time the
need to address and respond to community concerns. 

  

Congrats Matthew. You deserve it!

Following the 1.8 release, the team will be focussing on items such as
whiddling down the bug backlog, improving documentation, and writing
tutorials. Additionally, we will be outlining and scoping upcoming
releases in order to publish a public roadmap for the project. Part of
this effort will include some work to make the proposal process easier
and more transparent. The hope is that having published milestones will
help focus user contributions, both in terms of new features and
stabilizing the framework.

I look forward to working with each and every one of you, and welcome
your feedback!

  



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Zend Framework Dojo Form Example with everything working?

2009-03-25 Thread Sudheer Satyanarayana

Garey Smiley wrote:


Sudheer Satyanarayana wrote:
  

Garey Smiley wrote:


I can't seem to find a fully working Zend_Dojo_Form example that actually
works and includes bootstrap, controller and view that work with the
example
Zend_Dojo_Form class.

I've tried many of them from the web, but all of them seem to be missing
certain vital information to actually make them work.
  
  

Have you tried the following?

http://techchorus.net/add-cool-zend-dojo-date-picker-form-element-without-writing-single-line-javascript
http://techchorus.net/autocomplete-example-zenddojoformelementfilteringselect-and-zenddojodata

--
With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net,
Personal: http://sudheer.net





Yep. I got:

Fatal error: 
	Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message
'Invalid controller specified (index)' 
	
The error message indicates, you haven't set the right controller 
directory or there is no index controller. You will be able to get 
Zend_Dojo_Form to work only after the 'invalid controller' issue is fixed.




--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Zend Framework Dojo Form Example with everything working?

2009-03-24 Thread Sudheer Satyanarayana

Garey Smiley wrote:

I can't seem to find a fully working Zend_Dojo_Form example that actually
works and includes bootstrap, controller and view that work with the example
Zend_Dojo_Form class.

I've tried many of them from the web, but all of them seem to be missing
certain vital information to actually make them work.
  

Have you tried the following?

http://techchorus.net/add-cool-zend-dojo-date-picker-form-element-without-writing-single-line-javascript
http://techchorus.net/autocomplete-example-zenddojoformelementfilteringselect-and-zenddojodata




--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] security/Zend Session

2009-03-09 Thread Sudheer Satyanarayana

411161 wrote:

If I have some code that checks to see if a user is logged in and I want to
do this for every page where is the best place to do this?

I use modules and just want to do it for a particular module, does that
change things?
  

Front controller plugin.


--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net



Re: [fw-general] Zend Db how to update rows like "price=price+formValue['price'] "

2009-03-09 Thread Sudheer Satyanarayana

Mantasgl wrote:

Hi

I have a form in which I write a price and i want that prices of my products
could be increased by that form value.

A simple query would look like "UPDATE product SET price = price +
$formvalue['price']"

This works in phpmyadmin.

So how could I write such a query with zend db?
  

$db->update('product', $columnValuesArray);

Or
$result = $db->query("UPDATE product SET price = price 
+$formvalue['price']");

Where $db is your Zend_Db adapter.



--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, 
Personal: http://sudheer.net