Re: [fw-general] Unable to parse URL: How to handle hack attempts with ZF

2009-03-24 Thread vadim gavrilov
Hey,


That's because the URL is malformed, And as the PHP documentation states
"On seriously malformed URLs, parse_url() may return FALSE and emit a
E_WARNING" So that's the reason why you see those errors, since the url the
function tries to parse are seriously malformed.*

*Though they are just warnings, Not errors.*

Vince.
*
On Tue, Mar 24, 2009 at 11:05 PM, Mary Nicole Hicks <
webmas...@marynicolehicks.com> wrote:

>
> My site logs are really filling up with this message:
>
> [24-Mar-2009 12:39:57] PHP Warning:
> parse_url(/articles/a-valid-article++GET+
> http://www.example.com/articles/a-valid-article+%5B0,10277,13354%5D+-%3E)
> [ function.parse-url function.parse-url ]: Unable to parse URL in
> /home/username/library/Zend/Controller/Request/Http.php on line 394
>
> What is the best way of handling this:
> - So that it is not a threat?
> - So that no warning is raised?
> --
> View this message in context:
> http://www.nabble.com/Unable-to-parse-URL%3A-How-to-handle-hack-attempts-with-ZF-tp22689760p22689760.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Custom exception

2009-03-18 Thread vadim gavrilov
How can i create custom exceptions such such as ToolsException(); to lunch a
certain controller that will display an error within the current layout
content displayed? I mean the current exception handler removes all content
i would like to do something similar just style the way it's displayed?

Pretty dumb questions, i know but would like to see how people handle this.

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] ViewRenderer Helper return content instead of echoing it out

2009-03-18 Thread vadim gavrilov
I am currently using:

$this->view = Zend_Layout::getMvcInstance()->getView();
$this->view->doctype( Zend_Registry::get('config')->layout->doctype
);
$this->view->setScriptPath( MODULE_PATH . 'views/scripts/' );
$this->viewRenderer = $this->_helper->getHelper('viewRenderer');
$this->viewRenderer->setView($this->view)->setViewBasePathSpec(
MODULE_PATH . 'views/scripts/'
)->setViewScriptPathSpec(':controller/:action.phtml');

Then i am doing inside a controller:

$this->viewRenderer->render('index');

then it looks for the script under: MODULE_PATH .
'views/scripts/:controller/:action.phtml

Now, First is there a way of doing the same thing, without using the
ViewRenderer helper? I mean doing:
$this->view = Zend_Layout::getMvcInstance()->getView()->setViewBasePathSpec(
MODULE_PATH . 'views/scripts/'
)->setViewScriptPathSpec(':controller/:action.phtml');
and then using:

$this->viewRenderer->render('index');

and it will do the same thing? i did some tests and well it's not possible
unless i am missing something.

Second how can i use the method
$this->viewRenderer->render('index');

to return the content instead of echoing it out? currently i used
$this->view->Partial() instead but the thing with it that i need to
specify the directory and the extension of the file to render and additional
parameters as a second array argument in it so it comes up to something like
this:

return $this->view->partial('tools/setting-group-render-setting.phtml',
array( 'lang' => $this->lang, 'public_url' => $this->public_url, 'rows' =>
$r));

instead of just his:

return $this->viewRenderer->render('setting_group_render_setting');

which is a lot easier if later on i will change the controller name and/or
the suffix of the html files. can the render function return the content
instead of echoing it out?

Thanks.




-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] error to call folder with virtual host in zend framwork

2009-03-17 Thread vadim gavrilov
What do you mean? If anyone could just come up with his own set of rules it
would be a very hard task to monitor all of those rules and support them.

On Tue, Mar 17, 2009 at 1:33 PM, mohmmad jarwan wrote:

> yes but i don't under stand why zend accept just it's own way for
> RewriteCond 
>
>
> On Tue, Mar 17, 2009 at 1:26 PM, Giuliano Riccio  > wrote:
>
>>
>> Yes, but it's strange that the RewriteCond is not working.
>>
>> Giuliano
>>
>> mom_maj wrote:
>> >
>> > ok that error show from zend because zend conceder any thing after host
>> is
>> > a
>> > controller or i do something wrong??
>> >
>> > On Tue, Mar 17, 2009 at 1:14 PM, Giuliano Riccio
>> > wrote:
>> >
>> >>
>> >> Sorry, I didn't notice that you added "/downloads" already
>> >>
>> >> Giuliano
>> >>
>> >> Giuliano Riccio wrote:
>> >> >
>> >> > Add "download.php" to the RewriteCond:
>> >> >
>> >> > RewriteCond %{REQUEST_URI}
>> >> >
>> >>
>> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js|download\.php)
>> >> >
>> >> > This way the request is not managed by the framework ;)
>> >> >
>> >> > Giuliano
>> >> >
>> >> >
>> >> > mom_maj wrote:
>> >> >>
>> >> >> hi all.
>> >> >>
>> >> >> i have download page in public in folder name downloads
>> >> >> (public/downloads/download.php) and i make a virtual host name my,
>> >> >> if call page like http://my/downloads/download.php it give me an
>> error
>> >> >> like:
>> >> >>
>> >> >> *Fatal error*: Uncaught exception
>> >> 'Zend_Controller_Dispatcher_Exception'
>> >> >> with message 'Invalid controller specified (downloads)' in
>> >> >>
>> >>
>> /var/www/html/chilimob/library/Zend/Controller/Dispatcher/Standard.php:241
>> >> >> Stack trace: #0
>> >> /var/www/html/web/library/Zend/Controller/Front.php(934):
>> >> >>
>> >>
>> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
>> >> >> Object(Zend_Controller_Response_Http)) #1
>> >> >> /var/www/html/web/public/index.php(75):
>> >> Zend_Controller_Front->dispatch()
>> >> >> #2
>> >> >> {main} thrown in *
>> >> >> /var/www/html/web/library/Zend/Controller/Dispatcher/Standard.php*
>> on
>> >> >> line *
>> >> >> 241*
>> >> >>
>> >> >> it think the downloads  folder a controller .
>> >> >>
>> >> >> *my vhost is :* i make rule to what folder can enter i add downloads
>> >> to
>> >> >> them
>> >> >>
>> >> >>
>> >> >> NameVirtualHost *
>> >> >> 
>> >> >>   ServerAdmin webmas...@localhost
>> >> >>
>> >> >>DocumentRoot /var/www/web/public/
>> >> >>ServerName my
>> >> >>
>> >> >> 
>> >> >> RewriteEngine On
>> >> >>
>> >> >> RewriteCond %{REQUEST_URI}
>> >> >>
>> >>
>> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js)
>> >> >> RewriteRule ^(.*)$ /index.php/$1 [L]
>> >> >> 
>> >> >>
>> >> >> 
>> >> >>
>> >> >>
>> >> >> can any one help me to solve it ( to can call page like
>> >> >> http://my/downloads/download.php)
>> >> >>
>> >> >> note: if i call it like that it's ok:
>> >> >> http://localhost/web/public/downloads/download.php but i need to
>> make
>> >> >> vhost
>> >> >> not call it like that
>> >> >>
>> >> >> * Please** help me*   *:(*
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22556952.html
>> >> Sent from the Zend Framework mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22557125.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] error to call folder with virtual host in zend framwork

2009-03-17 Thread vadim gavrilov
Did you try with the one above?

On Tue, Mar 17, 2009 at 1:26 PM, Giuliano Riccio
wrote:

>
> Yes, but it's strange that the RewriteCond is not working.
>
> Giuliano
>
> mom_maj wrote:
> >
> > ok that error show from zend because zend conceder any thing after host
> is
> > a
> > controller or i do something wrong??
> >
> > On Tue, Mar 17, 2009 at 1:14 PM, Giuliano Riccio
> > wrote:
> >
> >>
> >> Sorry, I didn't notice that you added "/downloads" already
> >>
> >> Giuliano
> >>
> >> Giuliano Riccio wrote:
> >> >
> >> > Add "download.php" to the RewriteCond:
> >> >
> >> > RewriteCond %{REQUEST_URI}
> >> >
> >>
> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js|download\.php)
> >> >
> >> > This way the request is not managed by the framework ;)
> >> >
> >> > Giuliano
> >> >
> >> >
> >> > mom_maj wrote:
> >> >>
> >> >> hi all.
> >> >>
> >> >> i have download page in public in folder name downloads
> >> >> (public/downloads/download.php) and i make a virtual host name my,
> >> >> if call page like http://my/downloads/download.php it give me an
> error
> >> >> like:
> >> >>
> >> >> *Fatal error*: Uncaught exception
> >> 'Zend_Controller_Dispatcher_Exception'
> >> >> with message 'Invalid controller specified (downloads)' in
> >> >>
> >>
> /var/www/html/chilimob/library/Zend/Controller/Dispatcher/Standard.php:241
> >> >> Stack trace: #0
> >> /var/www/html/web/library/Zend/Controller/Front.php(934):
> >> >>
> >>
> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
> >> >> Object(Zend_Controller_Response_Http)) #1
> >> >> /var/www/html/web/public/index.php(75):
> >> Zend_Controller_Front->dispatch()
> >> >> #2
> >> >> {main} thrown in *
> >> >> /var/www/html/web/library/Zend/Controller/Dispatcher/Standard.php* on
> >> >> line *
> >> >> 241*
> >> >>
> >> >> it think the downloads  folder a controller .
> >> >>
> >> >> *my vhost is :* i make rule to what folder can enter i add downloads
> >> to
> >> >> them
> >> >>
> >> >>
> >> >> NameVirtualHost *
> >> >> 
> >> >>   ServerAdmin webmas...@localhost
> >> >>
> >> >>DocumentRoot /var/www/web/public/
> >> >>ServerName my
> >> >>
> >> >> 
> >> >> RewriteEngine On
> >> >>
> >> >> RewriteCond %{REQUEST_URI}
> >> >>
> >>
> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js)
> >> >> RewriteRule ^(.*)$ /index.php/$1 [L]
> >> >> 
> >> >>
> >> >> 
> >> >>
> >> >>
> >> >> can any one help me to solve it ( to can call page like
> >> >> http://my/downloads/download.php)
> >> >>
> >> >> note: if i call it like that it's ok:
> >> >> http://localhost/web/public/downloads/download.php but i need to
> make
> >> >> vhost
> >> >> not call it like that
> >> >>
> >> >> * Please** help me*   *:(*
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22556952.html
> >> Sent from the Zend Framework mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22557125.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] error to call folder with virtual host in zend framwork

2009-03-17 Thread vadim gavrilov
Please use the recommended RewriteRules from the manual:

   RewriteEngine On
   RewriteCond %{REQUEST_FILENAME} -s [OR]
   RewriteCond %{REQUEST_FILENAME} -l [OR]
   RewriteCond %{REQUEST_FILENAME} -d
   RewriteRule ^.*$ - [NC,L]
   RewriteRule ^.*$ index.php [NC,L]

This rule basically says that if the file exists on the server, serve
it; otherwise, go to the MVC.

On Tue, Mar 17, 2009 at 1:19 PM, mohmmad jarwan wrote:

> ok that error show from zend because zend conceder any thing after host is
> a controller or i do something wrong??
>
> On Tue, Mar 17, 2009 at 1:14 PM, Giuliano Riccio  > wrote:
>
>>
>> Sorry, I didn't notice that you added "/downloads" already
>>
>> Giuliano
>>
>> Giuliano Riccio wrote:
>> >
>> > Add "download.php" to the RewriteCond:
>> >
>> > RewriteCond %{REQUEST_URI}
>> >
>> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js|download\.php)
>> >
>> > This way the request is not managed by the framework ;)
>> >
>> > Giuliano
>> >
>> >
>> > mom_maj wrote:
>> >>
>> >> hi all.
>> >>
>> >> i have download page in public in folder name downloads
>> >> (public/downloads/download.php) and i make a virtual host name my,
>> >> if call page like http://my/downloads/download.php it give me an error
>> >> like:
>> >>
>> >> *Fatal error*: Uncaught exception
>> 'Zend_Controller_Dispatcher_Exception'
>> >> with message 'Invalid controller specified (downloads)' in
>> >>
>> /var/www/html/chilimob/library/Zend/Controller/Dispatcher/Standard.php:241
>> >> Stack trace: #0
>> /var/www/html/web/library/Zend/Controller/Front.php(934):
>> >>
>> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
>> >> Object(Zend_Controller_Response_Http)) #1
>> >> /var/www/html/web/public/index.php(75):
>> Zend_Controller_Front->dispatch()
>> >> #2
>> >> {main} thrown in *
>> >> /var/www/html/web/library/Zend/Controller/Dispatcher/Standard.php* on
>> >> line *
>> >> 241*
>> >>
>> >> it think the downloads  folder a controller .
>> >>
>> >> *my vhost is :* i make rule to what folder can enter i add downloads to
>> >> them
>> >>
>> >>
>> >> NameVirtualHost *
>> >> 
>> >>   ServerAdmin webmas...@localhost
>> >>
>> >>DocumentRoot /var/www/web/public/
>> >>ServerName my
>> >>
>> >> 
>> >> RewriteEngine On
>> >>
>> >> RewriteCond %{REQUEST_URI}
>> >>
>> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js)
>> >> RewriteRule ^(.*)$ /index.php/$1 [L]
>> >> 
>> >>
>> >> 
>> >>
>> >>
>> >> can any one help me to solve it ( to can call page like
>> >> http://my/downloads/download.php)
>> >>
>> >> note: if i call it like that it's ok:
>> >> http://localhost/web/public/downloads/download.php but i need to make
>> >> vhost
>> >> not call it like that
>> >>
>> >> * Please** help me*   *:(*
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22556952.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Any examples of writing custom exception handlers?

2009-03-16 Thread vadim gavrilov
Any examples of writing custom exception handlers?

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Using $this->_getParam('controller') inside a view

2009-03-15 Thread vadim gavrilov
What will be the best way of using it inside a view script? assign or a
custom helper?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] layout placeholders

2009-03-15 Thread vadim gavrilov
I just showed only the things i thought were important, My apologies, the
full code of the BaseEndController init method was posted in the previous
email.

On Sun, Mar 15, 2009 at 2:45 PM, Matthew Weier O'Phinney
wrote:

> -- vadim gavrilov  wrote
> (on Sunday, 15 March 2009, 02:21 PM +0200):
> > Yes i do, this is the full init function of the BaseEndController
> >
> > public function init()
> > {
> > # Must be called
> > parent::init();
>
> The original you pasted did not -- this is the verbatim init() method
> from BaseEndController per your original post:
>
>public function init()
>{
># Set Up view properties
>$this->view->breadcrumbs = array();
>
># Create the base breadcrumb
>$this->view->breadcrumbs[] = $this->BB( $this->lang->_('GL1'),
> array('index', 'index', 'admin'));
>}
>
> So, either you've changed things since then, or you pasted the wrong
> thing originally.
>
>
> > # Define public url
> > $this->view->public_url = Zend_Registry::get('config')->general->
> > webhost . $this->getRequest()->getBaseUrl() . '/' . $this->this_module .
> '/';
> >
> > # Add CSS & Js files required
> > $this->view->headLink()->appendStylesheet(
> $this->view->public_url .
> > 'css/all.css')->appendStylesheet( $this->view->public_url . 'css/ie.css',
> 'text
> > /css', 'lt IE 7');
> > $this->view->headScript()->appendFile( $this->view->public_url .
> 'js/
> > tabs.js', 'text/javascript')->appendFile( $this->view->public_url . 'js/
> > navigation.js', 'text/javascript')->appendFile( $this->view->public_url .
> 'js/
> > pngfix.js', 'text/javascript', array('conditional' => 'IE 6', 'defer' =>
> > null));
> >
> > # Clear old sessions
> > $this->ClearOldSessions();
> >
> >  # Did we change the language?
> > $cookie_language = $this->GetCookie('end_language');
> > if( $cookie_language )
> > {
> > $this->default_language = $cookie_language;
> > }
> >
> > # Over ride using manual language switch
> > if( $this->_getParam('setlang') ) # Do we change it now?
> > {
> > if(array_key_exists($this->_getParam('setlang'), $this->
> > _supported_languages)) # Language is available?
> > {
> > $this->default_language = $this->_getParam('setlang');
> > $this->SetCookie('end_language',
> $this->default_language); #
> > Save cookie
> > }
> > }
> >
> > # Do we need to add the rtl css file?
> > if( $this->default_language == 'he' )
> > {
> > $this->view->headLink()->appendStylesheet(
> $this->view->public_url
> > . 'css/rtl.css');
> > }
> >
> > # Load Language & Cache It
> > $this->LoadLanguage();
> >
> > # Set Title
> > $this->view->headTitle( $this->lang->_('GL0') );
> >
> > # Check auth
> > if(!$this->CheckLoggedInUser() && $this->_request->controller !=
> > 'login')
> > {
> > $this->Boink('login/index');
> > }
> >
> > # Load Member information
> > $this->LoadMemberInfo();
> >
> > # Create the base breadcrumb
> > $this->BB( $this->lang->_('GL1'), array('index', 'index',
> 'admin'));
> > }
> >
> > On Sun, Mar 15, 2009 at 2:17 PM, Matthew Weier O'Phinney <
> matt...@zend.com>
> > wrote:
> >
> > -- vadim gavrilov  wrote
> > (on Sunday, 15 March 2009, 12:07 PM +0200):
> > > I have the following structure:
> >
> > 
> >
> > > but for some reason the $this->breadcrumbs array has only one
> element
> > which was
> > > added in the BaseEndController class. the element that was added in
> the
> > > indexcontroller class was not actually adde

Re: [fw-general] layout placeholders

2009-03-15 Thread vadim gavrilov
Yes i do, this is the full init function of the BaseEndController

public function init()
{
# Must be called
parent::init();

# Define public url
$this->view->public_url =
Zend_Registry::get('config')->general->webhost .
$this->getRequest()->getBaseUrl() . '/' . $this->this_module . '/';

# Add CSS & Js files required
$this->view->headLink()->appendStylesheet( $this->view->public_url .
'css/all.css')->appendStylesheet( $this->view->public_url . 'css/ie.css',
'text/css', 'lt IE 7');
$this->view->headScript()->appendFile( $this->view->public_url .
'js/tabs.js', 'text/javascript')->appendFile( $this->view->public_url .
'js/navigation.js', 'text/javascript')->appendFile( $this->view->public_url
. 'js/pngfix.js', 'text/javascript', array('conditional' => 'IE 6', 'defer'
=> null));

# Clear old sessions
$this->ClearOldSessions();

 # Did we change the language?
$cookie_language = $this->GetCookie('end_language');
if( $cookie_language )
{
$this->default_language = $cookie_language;
}

# Over ride using manual language switch
if( $this->_getParam('setlang') ) # Do we change it now?
{
if(array_key_exists($this->_getParam('setlang'),
$this->_supported_languages)) # Language is available?
{
$this->default_language = $this->_getParam('setlang');
$this->SetCookie('end_language', $this->default_language); #
Save cookie
}
}

# Do we need to add the rtl css file?
if( $this->default_language == 'he' )
{
$this->view->headLink()->appendStylesheet(
$this->view->public_url . 'css/rtl.css');
}

# Load Language & Cache It
$this->LoadLanguage();

# Set Title
$this->view->headTitle( $this->lang->_('GL0') );

# Check auth
if(!$this->CheckLoggedInUser() && $this->_request->controller !=
'login')
{
$this->Boink('login/index');
}

# Load Member information
$this->LoadMemberInfo();

# Create the base breadcrumb
$this->BB( $this->lang->_('GL1'), array('index', 'index', 'admin'));
}

On Sun, Mar 15, 2009 at 2:17 PM, Matthew Weier O'Phinney
wrote:

> -- vadim gavrilov  wrote
> (on Sunday, 15 March 2009, 12:07 PM +0200):
> > I have the following structure:
>
> 
>
> > but for some reason the $this->breadcrumbs array has only one element
> which was
> > added in the BaseEndController class. the element that was added in the
> > indexcontroller class was not actually added to the array and is not
> shown when
> > it prints it.
> >
> > Any idea why, Or how to solve it? any other approach for something
> similar?
>
> In your BaseEndController class' init() method, you're not calling
> parent::init().
>
> > class BaseMasterController extends Zend_Controller_Action
> > {
> > public $view;
> > public $breadcrumbs = array();
> >
> > public function init()
> > {
> > # Define module path
> > defined('MODULE_PATH')
> > or define('MODULE_PATH', Zend_Controller_Front::getInstance()->
> > getModuleDirectory() . '/');
> >
> > # Define controller path
> > defined('CON_PATH')
> > or define('CON_PATH', Zend_Controller_Front::getInstance()->
> > getModuleDirectory() . '/');
> >
> > # Set layout and views directories
> > Zend_Layout::startMvc( MODULE_PATH .'/layouts/scripts' );
> >
> > # Init views object
> > $this->view = Zend_Layout::getMvcInstance()->getView();
> > $this->view->doctype(
> Zend_Registry::get('config')->layout->doctype );
> > $this->view->setScriptPath( MODULE_PATH . 'views/scripts/' );
> > $this->viewRenderer = $this->_helper->getHelper('viewRenderer');
> > $this->viewRenderer->setView($this->view)->setViewBasePathSpec(
> > MODULE_PATH . 'views/scripts/' )->setViewScriptPathSpec(':controller
> > /:action.phtml

[fw-general] layout placeholders

2009-03-15 Thread vadim gavrilov
I have the following structure:

class BaseMasterController extends Zend_Controller_Action
{
public $view;
public $breadcrumbs = array();

public function init()
{
# Define module path
defined('MODULE_PATH')
or define('MODULE_PATH',
Zend_Controller_Front::getInstance()->getModuleDirectory() . '/');

# Define controller path
defined('CON_PATH')
or define('CON_PATH',
Zend_Controller_Front::getInstance()->getModuleDirectory() . '/');

# Set layout and views directories
Zend_Layout::startMvc( MODULE_PATH .'/layouts/scripts' );

# Init views object
$this->view = Zend_Layout::getMvcInstance()->getView();
$this->view->doctype( Zend_Registry::get('config')->layout->doctype
);
$this->view->setScriptPath( MODULE_PATH . 'views/scripts/' );
$this->viewRenderer = $this->_helper->getHelper('viewRenderer');
$this->viewRenderer->setView($this->view)->setViewBasePathSpec(
MODULE_PATH . 'views/scripts/'
)->setViewScriptPathSpec(':controller/:action.phtml');

# Build Helpers
$this->view->addHelperPath( MODULE_PATH . 'views/helpers/',
'Helper');

# setting content type and character set

$this->view->headMeta()->appendHttpEquiv('X-UA-Compatible','IE=EmulateIE7')->appendHttpEquiv('Content-Type','text/html;
charset=UTF-8')->appendHttpEquiv('Content-Language', 'en-US');

# setting a separator string for segments:
$this->view->headTitle()->setSeparator(' :: ');

# Load the DB Adapter
$this->db =
Zend_Db::factory(Zend_Registry::get('config')->production->database);

# Clean Globals
$this->input = new Input;
 }
}

class BaseEndController extends BaseMasterController
{
public function init()
{
# Set Up view properties
$this->view->breadcrumbs = array();

  # Create the base breadcrumb
$this->view->breadcrumbs[] = $this->BB(
$this->lang->_('GL1'), array('index', 'index', 'admin'));
}
}

class Admin_IndexController extends BaseEndController
{

public function indexAction()
{
$this->view->breadcrumbs[] = "123";
$this->viewRenderer->render('index');
}
}

then in the layout i am doing:

breadcrumbs ): ?>

breadcrumbs as $crumb): ?>





but for some reason the $this->breadcrumbs array has only one element which
was added in the BaseEndController class. the element that was added in the
indexcontroller class was not actually added to the array and is not shown
when it prints it.

Any idea why, Or how to solve it? any other approach for something similar?

Thanks.


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Re: Registering an object to work through out the entire views scripts

2009-03-10 Thread vadim gavrilov
Problem:

Inside a controller i use:

echo $this->lang->_('RE0');

where $this->lang is the zend_translate_adapter and it prints what it should
"wefef" inside a view script i do the same thing: lang->_('RE0'); ?> and it prints 'RE0' ? Any idea why this will work
in the controller class but not inside a view?

Thanks.

On Tue, Mar 10, 2009 at 10:57 AM, vadim gavrilov  wrote:

> Ahh never mind just saw the assign method.
>
> Thanks.
>
>
> On Tue, Mar 10, 2009 at 10:56 AM, vadim gavrilov wrote:
>
>> If i have an object $lang that i use as $this->lang within a class scope,
>> How would i add it to the registry/anywhere to be able to use the same
>> object $this->lang inside views scripts ?
>>
>> Thanks.
>>
>> --
>> Vincent Gabriel.
>> Lead Developer, Senior Support.
>> Zend Certified Engineer.
>>
>>
>>
>>
>>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Re: Registering an object to work through out the entire views scripts

2009-03-10 Thread vadim gavrilov
Ahh never mind just saw the assign method.

Thanks.

On Tue, Mar 10, 2009 at 10:56 AM, vadim gavrilov  wrote:

> If i have an object $lang that i use as $this->lang within a class scope,
> How would i add it to the registry/anywhere to be able to use the same
> object $this->lang inside views scripts ?
>
> Thanks.
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Registering an object to work through out the entire views scripts

2009-03-10 Thread vadim gavrilov
If i have an object $lang that i use as $this->lang within a class scope,
How would i add it to the registry/anywhere to be able to use the same
object $this->lang inside views scripts ?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


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

2009-03-09 Thread vadim gavrilov
I think the same thing just using the db object

$db->query("UPDATE product SET price = price + {$value}");

OR using the $db->update method



On Mon, Mar 9, 2009 at 1:58 PM, 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?
> --
> View this message in context:
> http://www.nabble.com/Zend-Db-how-to-update-rows-like-%22price%3Dprice%2BformValue-%27price%27--%22-tp22411774p22411774.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Strange error with XAMPP and Zend

2009-03-08 Thread vadim gavrilov
What version of PHP do you have on the XAMPP? try running a demo application
used by zend to see if that works. What error message do you get when
running an application? and what kind of application are you running?

On Mon, Mar 9, 2009 at 8:38 AM, Anees  wrote:

>
>
> I just installed XAMPP new version 1.7 and copied my (Zend))project
> directory and database into new folder
>
> When i tried to call the site it shows an error from Apache and page is not
> loading
> Normal PHP files are having any problem
> also i checked the database operations
>
> then i verified the mode_rewrite module and it is loaded as well
>
> When i given a non existing DB to load in config.ini
> the zend shows its error message for it too
>
> Now i dont know where exactly i am doing mistake ..
> please help me
> (All my previous projects except that i did in Zend are working with the
> new
> version)
>
> Regards
> Anees
> --
> View this message in context:
> http://www.nabble.com/Strange-error-with-XAMPP-and-Zend-tp22407800p22407800.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Facebook Integration

2009-03-08 Thread vadim gavrilov
Nothing i can think of that exists currently, But the integrations should be
simple enough. Just look at facebook connects documentation or/and at
cakephp's class.

On Mon, Mar 9, 2009 at 8:36 AM, Madhoo  wrote:

>
> Hi,
>
>   I am looking for some working examples on Facebook Integration with Zend
> framework. I have found some with cakePHP but I need with Zend.
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Facebook-Integration-tp22407798p22407798.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Using cookies

2009-03-08 Thread vadim gavrilov
Reading the documentation i didn't quite understood on how would i look for
a cookie without instantiating a new cookie object. I mean if i got it right
from the documentation in order to read a cookie i need to set one up first.
How about if i want to see if the cookie 'test' exists under the currently
used domain? What method do i need to use in order to do that?

Anyone know what's the purpose of the CookieJar? I mean it adds the cookie
by the currently used url, Or one you specify. What's the difference between
the Zend_Http_Cookie and Zend_Http_CookieJar?

Thanks.
-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] .htaccess - avoid request to go to controller

2009-03-05 Thread vadim gavrilov
Yes as /index means the document root and index means the current directory.
I had the same problem and when removing the / in front of the index.php i
got this working.

On Thu, Mar 5, 2009 at 4:32 PM, Robert Castley wrote:

> OT - ish :-)
>
> Why does quickstart use:
>
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} -s [OR]
> RewriteCond %{REQUEST_FILENAME} -l [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule ^.*$ - [NC,L]
> RewriteRule ^.*$ /index.php [NC,L]
>
> And the manual
>
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} -s [OR]
> RewriteCond %{REQUEST_FILENAME} -l [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule ^.*$ - [NC,L]
> RewriteRule ^.*$ index.php [NC,L]
>
> The only difference being the / in front of index.php ... Does this make
> any difference?
>
> - Robert
>
> -Original Message-
> From: Matthew Weier O'Phinney [mailto:matt...@zend.com]
> Sent: 05 March 2009 14:28
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] .htaccess - avoid request to go to controller
>
> -- debussy007  wrote (on Thursday, 05 March 2009,
> 05:42 AM -0800):
> > I have a file directory, which contains .html pages, which should be
> > accessed without passing by MVC model Controller/Action.
> >
> > The url looks like this:
> > http://xyz.com/public/miv/files/reports/histo-report-2009-03-05.html
> >
> > Currently I have the following exception with the URL above:
> > Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
>
> > with message 'Invalid controller specified (files)'
> >
> > I tried to asdd a rule in .htaccess,
> > but it doesn't resolve the problem, maybe I did something wrong ...
> >
> > RewriteEngine on
> > RewriteCond %{REQUEST_URI} !files/*
> > RewriteRule .* index.php
> > php_flag magic_quotes_gpc off
> > php_flag register_globals off
>
> Please use the recommended RewriteRules from the manual:
>
>RewriteEngine On
>RewriteCond %{REQUEST_FILENAME} -s [OR]
>RewriteCond %{REQUEST_FILENAME} -l [OR]
>RewriteCond %{REQUEST_FILENAME} -d
>RewriteRule ^.*$ - [NC,L]
>RewriteRule ^.*$ index.php [NC,L]
>
> This rule basically says that if the file exists on the server, serve
> it; otherwise, go to the MVC.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | matt...@zend.com
> Zend Framework   | http://framework.zend.com/
>
> 
> This email has been scanned for all known viruses by the MessageLabs
> Email Security Service and the Macro 4 plc internal virus protection
> system.
> 
>
> 
> This email has been scanned for all known viruses by the MessageLabs Email
> Security Service and the Macro 4 plc internal virus protection system.
> 
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Simple filter idea

2009-03-05 Thread vadim gavrilov
You can do that yourself. I mean even using trim will trim out the leading
and trialing spaces.

On Thu, Mar 5, 2009 at 3:56 PM, Baptiste Placé
wrote:

> Hello,
>
> I have a simple idea for a filter proposal :
> Break words of a text that are too long by adding space characters. This
> can be usefull when creating comment form and avoid the annoying guy who
> just want to make the html layout go crazy.
>
> One other thing that may be usefull is replacing 3 or more consecutive new
> lines by one or two - or whatever character.
>
> Hope this is clear enough :)
> Does this deserve a proposal ? The code is quite small.
>
> Baptiste
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Re: BasePath in bootstrap question

2009-03-05 Thread vadim gavrilov
I personally use a config file that holds an attribute named webhost then i
can access it view the Zend_Registery after setting it up in the bootstrap
file.

On Thu, Mar 5, 2009 at 11:37 AM, Deepak  wrote:

> > HI,
> >
> > In controller I can get the bastpath with [ $request->getBasePath() ]
> >
> > how can I get same in bootstrap?
> >
>
> OR
>
> how to set the form's action in bootstrap with basepath?
>
> currently I am using this for localhost
>
> $searchForm->setAction("//localhost/search");
>
> instead I wanted something like
>
> $searchForm->setAction("/search");
>
> thanks
>
> --
> ===
> Registered Linux User #460714
> Currently Using Fedora 8, 10
> ===
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Another patch question

2009-03-05 Thread vadim gavrilov
Nothing that's SVN related it auto updates when you commit the changes to
the repository.

On Thu, Mar 5, 2009 at 11:25 AM, keith Pope wrote:

> In the docblock headers if I create a new file what do I do with the
>
>  * @version$Id: TableBugsCustom.php 12290 2008-11-04 22:46:48Z matthew
> $
>
> Thx :)
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Any reason why the translation page status shows zeros on all translations?

2009-03-04 Thread vadim gavrilov
http://framework.zend.com/manual/status

shows 0% for all translations for me for a few days now. Any one has the
same thing?


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Public folder but application uses modules

2009-03-04 Thread vadim gavrilov
Yes, I know that. But my questions was that you have the public folder in
the document root which consists of the images, css files js files. Does ZF
let you set up the public folder as follows:

public
  /admin
   /css
   /images
   /js
  /blog
   /css
   /images
   /js
  /default
   /css
   /images
   /js

Or do you need to do that and set it up yourself? Like are there any methods
like getPublicPath or setPublicPath like there is for controllers and
modules?

Thanks.

On Wed, Mar 4, 2009 at 1:10 PM, Vibhor Singh  wrote:

>  yes.
> I am developing an application with several modules. So I have the
> following dir structure:
> zfproject
> --backend
> --frontend
> --layouts
> --scripts
> --modules
> --default
> --controllers
> --models
> --cms
> --controllers
> --models
> --views
> --forms
> --designs
> --controllers --models
> --views
> --forms
> .
> ANd this is how you let ZF know your modules path
>
> //set this in bootstrap:
> defined('FRONT_APPLICATION_PATH') or define('FRONT_APPLICATION_PATH',
> dirname(__FILE__));
>   $frontController = Zend_Controller_Front::getInstance();
>   $frontController->addModuleDirectory(FRONT_APPLICATION_PATH.'/modules');
>
> Thanks,
> Vibhor
>
>
> - Original Message -
> *From:* vadim gavrilov 
> *To:* Zend Framework - General 
> *Sent:* Wednesday, March 04, 2009 4:30 PM
> *Subject:* [fw-general] Public folder but application uses modules
>
> If i have several modules like default, admin, blog etc...
> will i need to create several directories in the public/ folder for each
> module? how would i access the files there? do i need to set those myself or
> is there any way of doing that using the ZF?
>
> Thanks.
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Public folder but application uses modules

2009-03-04 Thread vadim gavrilov
If i have several modules like default, admin, blog etc...
will i need to create several directories in the public/ folder for each
module? how would i access the files there? do i need to set those myself or
is there any way of doing that using the ZF?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Loading a config.ini file

2009-03-04 Thread vadim gavrilov
I don't think it's required, but recommended. I do follow section but not
with all attributes. My ini file looks like this:

timezone = Asia/Tel_Aviv

; Production site configuration data
[production]
webhost  = http://devserver.com/application/public/
database.adapter = pdo_mysql
database.params.host = localhost
database.params.username = root
database.params.password =
database.params.dbname   = shepherd

application.language = en

[dev]
database.adapter   = Pdo_Sqlite
database.params.dbname = ../data/dev.db

On Wed, Mar 4, 2009 at 11:16 AM, Robert Castley
wrote:

>
> I maybe wrong but as Zend Ini uses parse_ini_file you need to follow the 
> structure of sections
>
> http://uk2.php.net/parse_ini_file
>
> - Robert
>
>  --
> *From:* vadim gavrilov [mailto:vadim...@gmail.com]
> *Sent:* 04 March 2009 09:10
> *To:* Robert Castley
>
> *Subject:* Re: [fw-general] Loading a config.ini file
>
>  Yes i do but the timezone is not inside one of them, But i got the idea
> of how to use it.
>
> Thanks.
>
> On Wed, Mar 4, 2009 at 11:08 AM, Robert Castley  > wrote:
>
>>  Do you have sections in your config file?
>>
>> e.g.
>>
>> [general]
>> timeZone = 
>>
>> If so you will need to add the section name when you want the value e.g.
>>
>> Zend_Registry::get('config')->general->timeZone
>>
>> - Robert
>>
>>  --
>>  *From:* vadim gavrilov [mailto:vadim...@gmail.com]
>> *Sent:* 04 March 2009 09:06
>> *To:* Robert Castley
>> *Cc:* Gregory Eve; Zend Framework - General
>>
>> *Subject:* Re: [fw-general] Loading a config.ini file
>>
>>   Thanks, I did this:
>>
>> $config = new Zend_Config_Ini(APPLICATION_PATH . '/config.ini');
>> Zend_Registry::set('config', $config);
>>
>> And then i could access
>>
>> Zend_Registry::get('config')->timezone
>>
>> On Wed, Mar 4, 2009 at 11:03 AM, Robert Castley <
>> robert.cast...@macro4.com> wrote:
>>
>>>  Hi,
>>>
>>> Try this  this also allows for you to have a development version of
>>> the .ini file as well so you don't have to touch the production version:
>>>
>>> $localConfigName = APPLICATION_PATH . '/config/dev.ini';
>>>
>>> $config = new Zend_Config_Ini(APPLICATION_PATH . '/config/app.ini', null,
>>> true);
>>>
>>> if (is_file($localConfigName)) {
>>> $localConfig = new Zend_Config_Ini($localConfigName, null, true);
>>> $config->merge($localConfig);
>>> }
>>>
>>> $config->setReadOnly();
>>>
>>> /**
>>>  * Define PHP ini settings
>>>  * These can be removed for a release version!
>>>  */
>>> ini_set('log_errors', (bool) $config->general->debug);
>>> ini_set('display_errors', (bool) $config->general->debug);
>>>
>>> $registry = Zend_Registry::getInstance();
>>> $registry->config = $config;
>>>
>>> You can then easily get access to the config by using:
>>>
>>>
>>> Zend_Registry::get('config')->general->myVar
>>>
>>> - Robert
>>>
>>>  --
>>> *From:* vadim gavrilov [mailto:vadim...@gmail.com]
>>> *Sent:* 04 March 2009 08:57
>>> *To:* Gregory Eve
>>> *Cc:* Zend Framework - General
>>> *Subject:* Re: [fw-general] Loading a config.ini file
>>>
>>>   Something like this?
>>>
>>> $config = new Zend_Config_Ini(APPLICATION_PATH . '/config.ini');
>>> $registry = new Zend_Registry(array('config' => $config));
>>>
>>> and then:
>>>
>>> $registry = Zend_Registry::getInstance();
>>>
>>> var_dump( $registry['config'] );
>>> outputs nothing.
>>>
>>> On Wed, Mar 4, 2009 at 10:51 AM, Gregory Eve <
>>> gregory@mimesis-republic.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> you need to put your Zend_Config object in the Zend_Registry to access
>>>> to it in your entire application.
>>>>
>>>>
>>>> Grégory EVE
>>>> developer engineer
>>>> PlayBack Team
>>>>
>>>> Mimesis Republic
>>>> 80, rue des Haies
>>&

[fw-general] Modules won't load but the default one

2009-03-04 Thread vadim gavrilov
I have this structure:

application
 /modules
  /default
   /controller
   /...
  /admin
   /controllers
   /...

my bootstrap file looks like this:

$config = new Zend_Config_Ini(APPLICATION_PATH . '/config.ini');
Zend_Registry::set('config', $config);

$frontController = Zend_Controller_Front::getInstance();
$frontController->addModuleDirectory(APPLICATION_PATH . '/modules');
$frontController->setParam('env', APPLICATION_ENVIRONMENT);

Zend_Layout::startMvc($frontController->getModuleDirectory().'/layouts/scripts');

defined('MODULE_PATH')
or define('MODULE_PATH', $frontController->getModuleDirectory() . '/');


$view = Zend_Layout::getMvcInstance()->getView();
$view->doctype('XHTML1_STRICT');
$view->setScriptPath( MODULE_PATH . 'views/scripts/' );

// CLEANUP - remove items from global scope
unset($view);
unset($frontController);

when ever i try to enter the admin/ module it displays the /default module
contents like the getmoduledirectory returns the default module always. by
looking at that function i noticed it has to have an argument of the module
to load, how can i access the current requested module? Or is there any
other way of doing this?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Loading a config.ini file

2009-03-04 Thread vadim gavrilov
Thanks, I did this:

$config = new Zend_Config_Ini(APPLICATION_PATH . '/config.ini');
Zend_Registry::set('config', $config);

And then i could access

Zend_Registry::get('config')->timezone

On Wed, Mar 4, 2009 at 11:03 AM, Robert Castley
wrote:

>  Hi,
>
> Try this  this also allows for you to have a development version of the
> .ini file as well so you don't have to touch the production version:
>
> $localConfigName = APPLICATION_PATH . '/config/dev.ini';
>
> $config = new Zend_Config_Ini(APPLICATION_PATH . '/config/app.ini', null,
> true);
>
> if (is_file($localConfigName)) {
> $localConfig = new Zend_Config_Ini($localConfigName, null, true);
> $config->merge($localConfig);
> }
>
> $config->setReadOnly();
>
> /**
>  * Define PHP ini settings
>  * These can be removed for a release version!
>  */
> ini_set('log_errors', (bool) $config->general->debug);
> ini_set('display_errors', (bool) $config->general->debug);
>
> $registry = Zend_Registry::getInstance();
> $registry->config = $config;
>
> You can then easily get access to the config by using:
>
>
> Zend_Registry::get('config')->general->myVar
>
> - Robert
>
>  --
> *From:* vadim gavrilov [mailto:vadim...@gmail.com]
> *Sent:* 04 March 2009 08:57
> *To:* Gregory Eve
> *Cc:* Zend Framework - General
> *Subject:* Re: [fw-general] Loading a config.ini file
>
>  Something like this?
>
> $config = new Zend_Config_Ini(APPLICATION_PATH . '/config.ini');
> $registry = new Zend_Registry(array('config' => $config));
>
> and then:
>
> $registry = Zend_Registry::getInstance();
>
> var_dump( $registry['config'] );
> outputs nothing.
>
> On Wed, Mar 4, 2009 at 10:51 AM, Gregory Eve <
> gregory@mimesis-republic.com> wrote:
>
>> Hi,
>>
>> you need to put your Zend_Config object in the Zend_Registry to access to
>> it in your entire application.
>>
>>
>> Grégory EVE
>> developer engineer
>> PlayBack Team
>>
>> Mimesis Republic
>> 80, rue des Haies
>> 75020 Paris
>>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>
> 
> This email has been scanned for all known viruses by the MessageLabs Email
> Security Service and the Macro 4 plc internal virus protection system.
> 
>
> 
> This email has been scanned for all known viruses by the MessageLabs Email
> Security Service and the Macro 4 plc internal virus protection system.
> 
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Loading a config.ini file

2009-03-04 Thread vadim gavrilov
Something like this?

$config = new Zend_Config_Ini(APPLICATION_PATH . '/config.ini');
$registry = new Zend_Registry(array('config' => $config));

and then:

$registry = Zend_Registry::getInstance();

var_dump( $registry['config'] );
outputs nothing.

On Wed, Mar 4, 2009 at 10:51 AM, Gregory Eve <
gregory@mimesis-republic.com> wrote:

> Hi,
>
> you need to put your Zend_Config object in the Zend_Registry to access to
> it in your entire application.
>
>
> Grégory EVE
> developer engineer
> PlayBack Team
>
> Mimesis Republic
> 80, rue des Haies
> 75020 Paris
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Loading a config.ini file

2009-03-04 Thread vadim gavrilov
using the Zend_Config_Ini class do i need to pass the varible assigned to it
to the front controller somehow for it to be available in the entire
application? Or do i just need to initiate it and it will be available?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Discard one variable in the url using a router maybe

2009-03-04 Thread vadim gavrilov
Thanks, That does work. One thing tough, How can i make a custom
class/helper/plugin what ever, for each module to have it's own router
routes. I mean if i have the module 'front' i would like to create a class
named FrontRoutes and have a function that will hold down all the rewrites
for that module.

Hope that makes sense, I am just trying to see how far this can be used.

Thanks.

On Wed, Mar 4, 2009 at 10:30 AM, Matthias W. <
matthias.wang...@e-projecta.com> wrote:

>
> I did it in my Initialize.php
>
> If you haven't got the Initialize.php you have to do it in your
> bootstrap.php (in the bootstrap you have to do it without the function, the
> $this->_front is the instance of the front controller)
>
>
> public function initRoutes()
> {
>$defaults   = array(
>'lang'  => 'en',
>'module'=> 'default',
>'controller'=> 'index',
>'action'=> 'index',
>);
>
>$route = new
> Zend_Controller_Router_Route(':module/:lang/:controller/:action/*',
> $defaults);
>
>$router = $this->_front->getRouter();
>$router->addRoute('route_name', $route);
> }
>
>
> vince. wrote:
> >
> > If i have the following:
> >
> > xyz.com/:module/[lang]/:controller/:action/*
> >
> > how can i make it so it will actually dispatch the
> > xyz.com/:module/:controller/:action/* but will show the [lang] in there.
> I
> > know using a router but how exactly?
> >
> > Thanks.
> >
> > --
> > Vincent Gabriel.
> > Lead Developer, Senior Support.
> > Zend Certified Engineer.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Discard-one-variable-in-the-url-using-a-router-maybe-tp22325208p22325650.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Discard one variable in the url using a router maybe

2009-03-03 Thread vadim gavrilov
If i have the following:

xyz.com/:module/[lang]/:controller/:action/*

how can i make it so it will actually dispatch the
xyz.com/:module/:controller/:action/* but will show the [lang] in there. I
know using a router but how exactly?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Router for CMS

2009-03-03 Thread vadim gavrilov
*Sorry didn't do reply all *

By default the router uses /:controller/:action/* or if you have modules
then /:module/:controller/:action/* the /* indicates that anything can be
there instead so i think you should use just that.

On Wed, Mar 4, 2009 at 9:28 AM, Matthias W.  wrote:

>
> Hi,
>
> I'm going to create a CMS in PHP with the Zend Framework.
>
> I thought to make URLs like this:
>
> http://www.xyz.com/[cms_path]/[language]/[module]/[page]/[subpage]/[subsubpage]/.
> ..
>
> This is because I dont want to use the page Ids in the URLs.
>
> Now the question is how to route this, because I don't want to limit the
> subpage level.
>
> So I can't use
>
> Zend_Controller_Router_Router(':language/:module/:page/:subpage/:subsubpage/...')
> because this requires to limit the subpage level.
> Do I have to Route the URL manually?
>
> Has anyone a better way to route for a cms?
>
> Do I have to include the controller and the action in the URL, too?
>
>
>
> Thanks!
> Matthias
> --
> View this message in context:
> http://www.nabble.com/Router-for-CMS-tp22324969p22324969.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] rename filter not work correctly

2009-03-03 Thread vadim gavrilov
Seems as it will rename it only if the name of the uploaded file already
exists in the directory. Not sure though.

On Tue, Mar 3, 2009 at 10:07 AM, Jacky Chen  wrote:

> Hi zfer,
> it seem that the file rename filter not work correctly,it not rename the
> file when i upload the file first,but it worked when i upload the same file
> after the first.
> for example,i add a rename filter that set target to c.jpg,and then upload
> a file named a.jpg,but the uploaded file would remain the name of a.jpg,then
> i upload file a.jpg again,rename worked,in the destination directory,there
> would be two files(a.jpg,c.jpg).
>
> sorry for my poor english.
>
> Best Regards
> Jacky
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Re: [fw-mvc] Re: [fw-general] Re: Using custom router. Where exactly?

2009-03-02 Thread vadim gavrilov
Thanks, I will sure looking at the way your doing it.

On Mon, Mar 2, 2009 at 3:53 PM, Mon Zafra  wrote:

> Routes should be defined in a bootstrap or in a routeStartup() of a front
> controller plugin. When the dispatch loop reaches the controller, the router
> has already been invoked so any rules you add inside controllers are useless
> (they can still be used to generate URLs in the controller and view, but
> without the corresponding routing rule the URLs generated would probably
> lead to nowhere unless the said rule is a subset of an existing rule or the
> default one).
>
> Module-specific rules are impossible for the same reason. The closest thing
> to such a thing is to have rules defined in module bootstraps which are
> loaded in every request. They are not really module-specific rules though,
> but merely routing rules that are organized per module. I do exactly that in
> http://code.google.com/p/mz-project/ .
>
>-- Mon
>
>
>
> On Mon, Mar 2, 2009 at 8:33 PM, vadim gavrilov  wrote:
>
>> Thanks i already looked at those files. Still can i place an instance of
>> the addRoute inside a certain controller? or do i need to place it somewhere
>> in the bootstarp file? Basically what i would like to do is to make a file
>> that will hold all the routes for each module/controller. Did anyone made
>> something like that before?
>>
>> Thanks.
>>
>>
>> On Mon, Mar 2, 2009 at 2:22 PM, Jens Kleikamp wrote:
>>
>>> vadim gavrilov wrote:
>>>
>>>> Where exactly do you place the router? In the bootstrap file? in the
>>>> index?
>>>> How can you make a custom router for each module you have? Examples will
>>>> be
>>>> highly appreciated.
>>>>
>>>>  You can take a look at Matthews Pastebin application. He uses a modular
>>> directory structure and each module has its own bootstrap class. In these
>>> classes you have access to the Initialize plugin and the frontcontroller
>>> instance.
>>>
>>>
>>> http://github.com/weierophinney/pastebin/blob/b796ad0e5905e46b312a5b904a2a80c3ed8ff808/library/My/Plugin/Initialize.php
>>>
>>> http://github.com/weierophinney/pastebin/blob/b796ad0e5905e46b312a5b904a2a80c3ed8ff808/application/modules/spindle/Bootstrap.php
>>>
>>> Now you can use the getRouter() method of the frontcontroller and then
>>> add new custom routes with addRoute().
>>>
>>>
>>> Hope this helps.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Vincent Gabriel.
>> Lead Developer, Senior Support.
>> Zend Certified Engineer.
>>
>>
>>
>>
>>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Re: Using custom router. Where exactly?

2009-03-02 Thread vadim gavrilov
Any example for this? Since i saw that Matthew didn't use any router.

2009/3/2 Paweł Chuchmała 

> On Mon, Mar 2, 2009 at 13:33, vadim gavrilov  wrote:
> > Thanks i already looked at those files. Still can i place an instance of
> the
> > addRoute inside a certain controller? or do i need to place it somewhere
> in
> > the bootstarp file? Basically what i would like to do is to make a file
> that
> > will hold all the routes for each module/controller. Did anyone made
> > something like that before?
>
> The best file is for me routes.ini. in config directory;-)
> The rest in bootstrap initRoutes.
>
> Regards,
> pch
>
> --
> Paweł Chuchmała
> pawel.chuchmala at gmail dot com
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Re: Using custom router. Where exactly?

2009-03-02 Thread vadim gavrilov
Thanks i already looked at those files. Still can i place an instance of the
addRoute inside a certain controller? or do i need to place it somewhere in
the bootstarp file? Basically what i would like to do is to make a file that
will hold all the routes for each module/controller. Did anyone made
something like that before?

Thanks.

On Mon, Mar 2, 2009 at 2:22 PM, Jens Kleikamp wrote:

> vadim gavrilov wrote:
>
>> Where exactly do you place the router? In the bootstrap file? in the
>> index?
>> How can you make a custom router for each module you have? Examples will
>> be
>> highly appreciated.
>>
>>  You can take a look at Matthews Pastebin application. He uses a modular
> directory structure and each module has its own bootstrap class. In these
> classes you have access to the Initialize plugin and the frontcontroller
> instance.
>
>
> http://github.com/weierophinney/pastebin/blob/b796ad0e5905e46b312a5b904a2a80c3ed8ff808/library/My/Plugin/Initialize.php
>
> http://github.com/weierophinney/pastebin/blob/b796ad0e5905e46b312a5b904a2a80c3ed8ff808/application/modules/spindle/Bootstrap.php
>
> Now you can use the getRouter() method of the frontcontroller and then add
> new custom routes with addRoute().
>
>
> Hope this helps.
>
>
>
>
>
>
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Using custom router. Where exactly?

2009-02-28 Thread vadim gavrilov
Where exactly do you place the router? In the bootstrap file? in the index?
How can you make a custom router for each module you have? Examples will be
highly appreciated.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] How to route http://domain.com/foo/bar.html to FooController and barAction

2009-02-28 Thread vadim gavrilov
use the router regex, see
http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.regex

On Sun, Mar 1, 2009 at 6:56 AM, zendlearner  wrote:

>
> Hi,
> suppose I have a FooController and barAction for a domain called
> domain.com.
> If I enter http://domain.com/foo/bar.html (with the .html appended to the
> url), the default router will no longer map 'foo' to FooController and
> 'bar'
> to barAction. How can I have .html or .php appended to the end of the url
> and have Zend Framework interpret the controller and action? Are there any
> examples? Any help in the right direction will be greatly appreciated.
> --
> View this message in context:
> http://www.nabble.com/How-to-route-http%3A--domain.com-foo-bar.html-to-FooController-and-barAction-tp22269871p22269871.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Re: [fw-mvc] Application structure

2009-02-27 Thread vadim gavrilov
Nice, Any way of having the structure or if possible the code. I am just
looking on what kind of structure and the way other developers use. And if
that something better/convenient then what i use then i would like to adopt
new ideas.

Thanks.

On Fri, Feb 27, 2009 at 7:36 PM, Deanna Bonds wrote:

>
>
> vadim gavrilov wrote:
>
>> Thanks for that. Did anyone made something that uses Modules? Not just
>> controllers in a single directory?
>>
> I am working on one that uses the new ZF structure that has modules.   In
> the modules directory there are 3 modules.  One is the marketing part of the
> application,  one is a wrapper around phpbb3,  and the other is the
> administration.
>
> Deanna
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Re: [fw-mvc] Application structure

2009-02-27 Thread vadim gavrilov
Thanks for that. Did anyone made something that uses Modules? Not just
controllers in a single directory?

Thanks.

On Fri, Feb 27, 2009 at 12:17 PM, Robert Castley
wrote:

>  See how I do it at:
> http://code.google.com/p/jotbug/source/browse/#svn/trunk/JotBug
>
> - Robert
>
>  ------
> *From:* vadim gavrilov [mailto:vadim...@gmail.com]
> *Sent:* 26 February 2009 18:08
> *To:* keith Pope; fw-...@lists.zend.com; Zend Framework - General
> *Subject:* [fw-general] Re: [fw-mvc] Application structure
>
>  Would appreciate any others sharing there structure and/or ideas of
> application structures.
>
> Thanks.
>
> On Thu, Feb 26, 2009 at 3:14 PM, keith Pope wrote:
>
>> The source for my forthcoming book is available here:
>>
>> http://code.google.com/p/zendframeworkstorefront/
>>
>> This will be updated soon so that is uses the Zend_Application though
>>
>> 2009/2/26 vadim gavrilov :
>>  > Was wondering if anyone would share his/her structure for there
>> application.
>> > And if possible the code they used. I am just interested in seeing how
>> > others write down there application structure and code. With the routers
>> if
>> > anyone uses, Modules and such.
>> >
>> > Thanks.
>> >
>> > --
>> > Vincent Gabriel.
>> > Lead Developer, Senior Support.
>> > Zend Certified Engineer.
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>> --
>> --
>> [MuTe]
>> --
>>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>
> 
> This email has been scanned for all known viruses by the MessageLabs Email
> Security Service and the Macro 4 plc internal virus protection system.
> 
>
> 
> This email has been scanned for all known viruses by the MessageLabs Email
> Security Service and the Macro 4 plc internal virus protection system.
> 
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Re: [fw-mvc] Application structure

2009-02-26 Thread vadim gavrilov
Would appreciate any others sharing there structure and/or ideas of
application structures.

Thanks.

On Thu, Feb 26, 2009 at 3:14 PM, keith Pope wrote:

> The source for my forthcoming book is available here:
>
> http://code.google.com/p/zendframeworkstorefront/
>
> This will be updated soon so that is uses the Zend_Application though
>
> 2009/2/26 vadim gavrilov :
> > Was wondering if anyone would share his/her structure for there
> application.
> > And if possible the code they used. I am just interested in seeing how
> > others write down there application structure and code. With the routers
> if
> > anyone uses, Modules and such.
> >
> > Thanks.
> >
> > --
> > Vincent Gabriel.
> > Lead Developer, Senior Support.
> > Zend Certified Engineer.
> >
> >
> >
> >
> >
>
>
>
> --
> --
> [MuTe]
> --
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Prefix with .html

2009-02-26 Thread vadim gavrilov
Please use the reply to all button.

you can read more about it here
http://framework.zend.com/manual/en/zend.controller.router.html

http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.regex

look at this code as an example:

$route = new Zend_Controller_Router_Route_Regex(
'blog/archive/(\d+)-(.+)\.html',
array(
'controller' => 'blog',
'action' => 'view'
),
array(
1 => 'id',
2 => 'description'
),
'blog/archive/%d-%s.html'
);
$router->addRoute('blogArchive', $route);




On Thu, Feb 26, 2009 at 3:06 PM, peas sopheak wrote:

> Hi
>
> Where could I start to write it? or I should write it in guestbook
> Controller?
> Can you show me with some sample code?
>
> Thanks
> Sopheak
>
>
> On Thu, Feb 26, 2009 at 7:43 PM, vadim gavrilov wrote:
>
>> You can optionally specify the extension.
>>
>>
>> On Thu, Feb 26, 2009 at 2:28 PM, peas sopheak wrote:
>>
>>> Hi
>>>
>>> I'm trying practice with Zend Quickstart application. I wonder about URL,
>>> can Zend framewrok display url with html extention?
>>> Normally it's display http://localhost/guestbook , But I would like it
>>> to be http://localhost/guestbook.html
>>>
>>> Thanks
>>> Sopheak
>>>
>>
>>
>>
>> --
>> Vincent Gabriel.
>> Lead Developer, Senior Support.
>> Zend Certified Engineer.
>>
>>
>>
>>
>>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Prefix with .html

2009-02-26 Thread vadim gavrilov
You can optionally specify the extension.

On Thu, Feb 26, 2009 at 2:28 PM, peas sopheak wrote:

> Hi
>
> I'm trying practice with Zend Quickstart application. I wonder about URL,
> can Zend framewrok display url with html extention?
> Normally it's display http://localhost/guestbook , But I would like it to
> be http://localhost/guestbook.html
>
> Thanks
> Sopheak
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] jotBug Project update

2009-02-26 Thread vadim gavrilov
Looks very nice. Still needs some work but good progress.

On Thu, Feb 26, 2009 at 12:44 PM, Robert Castley
wrote:

>  Hi,
>
> My ZendFramework project jotBug is moving along nicely, the current fruits
> of my labour can be seen at http://www.jotbug.org (remember this is not
> finished or complete!)
>
> The ZendFramework is really speeding development along and proves the rapid
> web application development is possible.  I am not the greatest PHP coder in
> the world (and never will be) but hopefully this project just goes to show
> what you can achieve in a relatively short space of time with a little
> knowledge.
>
> jotBug is using the following components of the ZendFramework:
>
> - Zend_Captcha
> - Zend_Db
> - Routing
> - Plugins
> - Zend_Translate / Zend_Locale
> - Zend_Auth - LDAP and OpenID
> - Zend_Acl
>
> The only part of jotBug that are not powered by the ZendFramework is the
> table sorting and resizing.  This is done using the excellent TableKit.
>
> Hope no one minds me posting to this list about this project but it is
> ZendFramework related :-)
>
> Cheers,
>
> - Robert
>
>
> 
> This email has been scanned for all known viruses by the MessageLabs Email
> Security Service and the Macro 4 plc internal virus protection system.
> 
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Problem on example code.

2009-02-26 Thread vadim gavrilov
It seems from the error that you declare the same class more then once.
That's a PHP error not something directly related to ZF. Make sure your not
declaring the same class more then once.

On Thu, Feb 26, 2009 at 11:50 AM, gerritku  wrote:

>
> I try YouTube.php example code on Zend framework package.
> But from my server i get error
> "Fatal error: Cannot redeclare class Zend_Gdata_YouTube in
> D:\wamp\www\bezzer\tested.php on line 78"
> Anyone have solution for this error?
> Or anybody give me example code to automatic login to youtube account with
> Youtube APIs and Zendframework?
>
> Gerrit
> --
> View this message in context:
> http://www.nabble.com/Problem-on-example-code.-tp0879p0879.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Zend Framework 1.8

2009-02-24 Thread vadim gavrilov
I don't think it should be that long before it's release as 1.8 is feature
complete in the incubator.

On Wed, Feb 25, 2009 at 8:44 AM, armandop wrote:

>
> Hi vince.  Yea your right.  Just wanted to know if there was a date for the
> 1.8 release?  I read somewhere that it was slated for early 2009?
>
>
>
>
> vince. wrote:
> >
> > 1.7.6 is the next version i think.
> >
> > On Wed, Feb 25, 2009 at 8:39 AM, armandop
> > wrote:
> >
> >>
> >> Hi everyone,
> >>
> >> Does anyone know when 1.8 is due out or possibly a candidate release?
> >>
> >> Much Appreciated
> >> Armando Padilla
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Zend-Framework-1.8-tp22197139p22197139.html
> >> Sent from the Zend Framework mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Vincent Gabriel.
> > Lead Developer, Senior Support.
> > Zend Certified Engineer.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Zend-Framework-1.8-tp22197139p22197177.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Zend Framework 1.8

2009-02-24 Thread vadim gavrilov
1.7.6 is the next version i think.

On Wed, Feb 25, 2009 at 8:39 AM, armandop wrote:

>
> Hi everyone,
>
> Does anyone know when 1.8 is due out or possibly a candidate release?
>
> Much Appreciated
> Armando Padilla
> --
> View this message in context:
> http://www.nabble.com/Zend-Framework-1.8-tp22197139p22197139.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Linux + XAMPP + Zend Framework

2009-02-24 Thread vadim gavrilov
There are no specific installation instructions for XAMPP, just download the
source code, add it into your web directory (mine is c:/wamp/www) and make
sure that directory exists in the PHP include paths.

You can see more instructions here:
http://framework.zend.com/manual/en/introduction.installation.html

On Tue, Feb 24, 2009 at 8:52 PM, tirengarfio wrote:

>
> Hi,
>
> any tutorial for installing Zend on XAMPP and Linux?
>
> Ciao
> --
> View this message in context:
> http://www.nabble.com/Linux-%2B-XAMPP-%2B-Zend-Framework-tp22188102p22188102.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Zend Framework Support Forums

2009-02-24 Thread vadim gavrilov
Yea i guess i am kinda stupid, Still was looking for something official. But
thanks.

On Tue, Feb 24, 2009 at 3:34 PM, till  wrote:

> On Tue, Feb 24, 2009 at 2:20 PM, vadim gavrilov 
> wrote:
> > Hm, I wonder why this didn't come up anywhere. Thanks.
>
> http://tinyurl.com/aammcg
>
> (Just kidding, of course!)
>
> Till
>



-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


Re: [fw-general] Zend Framework Support Forums

2009-02-24 Thread vadim gavrilov
Hm, I wonder why this didn't come up anywhere. Thanks.

On Tue, Feb 24, 2009 at 3:10 PM, Cristian Bichis wrote:

> Hi,
>
> Actually there is already a ZF forum and many of the people from here are
> also on forum.
>
> Check www.zfforums.com
>
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>
>
>
>  Just a general questions, Why isn't there a Peer-to-Peer Technical Support
>> forums for the Zend Framework? I mean the mailing list is ok and we get our
>> qeustions answered but having some kind of a forum where developers could
>> share ideas, tips, help each other (without relying on the mailing list) and
>> show some application examples (code snippets) will be a very good addition
>> to the already large community of developers. With a forum software you
>> could also easly search things that were already asked and answered, You
>> could archive topics and posts (unlike the current mailing archive) and i
>> think alot more.
>>
>> I am pretty sure this will just benefit the ZF developer community, The
>> questions is why something like this wasn't already made?
>>
>> Thanks.
>>
>> --
>> Vincent Gabriel.
>> Lead Developer, Senior Support.
>> Zend Certified Engineer.
>>
>>
>>
>>
>>
>


-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.


[fw-general] Zend Framework Support Forums

2009-02-24 Thread vadim gavrilov
Just a general questions, Why isn't there a Peer-to-Peer Technical Support
forums for the Zend Framework? I mean the mailing list is ok and we get our
qeustions answered but having some kind of a forum where developers could
share ideas, tips, help each other (without relying on the mailing list) and
show some application examples (code snippets) will be a very good addition
to the already large community of developers. With a forum software you
could also easly search things that were already asked and answered, You
could archive topics and posts (unlike the current mailing archive) and i
think alot more.

I am pretty sure this will just benefit the ZF developer community, The
questions is why something like this wasn't already made?

Thanks.

-- 
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.