[fw-general] Re: FrontController plugin and controllers

2010-03-24 Thread asagala
What do you mean by this "To avoid DRY the code inside the method could be replaced with an action helper. " Do you mean implement my frontcontroller logic as an action helper and call the action helper in preDispatch function on the controllers I need it? -- View this message in context: http:

[fw-general] FrontController plugin and controllers

2010-03-24 Thread asagala
I currently have a FrontController plugin that extends Zend-Controller_Plugin_Abstract. The preDispatch function is implemented in it. Everything works except for one thing. How can I prevent the preDispatch function to be applied to certain controllers? The only way I have right noew is to use $t

[fw-general] Re: Zend routing - can this logic be done?

2010-03-05 Thread asagala
Got it. Thanks for your help -- View this message in context: http://n4.nabble.com/Zend-routing-can-this-logic-be-done-tp1580002p1580096.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: Zend routing - can this logic be done?

2010-03-05 Thread asagala
Ok I get what your saying. Your saying since the regexp route will NOT match when I do something like this http://hostname/controller/action the default route will work. When I try this http://hostname/pagename.html the regexp route (pages) will apply and then the PagesController will take over.

[fw-general] Re: Zend routing - can this logic be done?

2010-03-05 Thread asagala
Its doest but it breaks http://hostname/controller/action. I want to have both behaviors based on if there is an html page specified or not -- View this message in context: http://n4.nabble.com/Zend-routing-can-this-logic-be-done-tp1580002p1580076.html Sent from the Zend Framework mailing list

[fw-general] Re: Zend routing - can this logic be done?

2010-03-05 Thread asagala
To be more precise on my above post. When calling http://hostname/pagename.html the pagename is used as a param in the PagesController. I then query the db for some info and then generate the actual page and then dump it to the browser. -- View this message in context: http://n4.nabble.com/Zend

[fw-general] Re: Zend routing - can this logic be done?

2010-03-05 Thread asagala
I have the two route scenario working already. One default route and one pages route. I need the single route because I want to able serve generated webpages off Zend that will have this url: http://hostname/pagename.html ( I dont want it to be http://hostname/pages/pagename.html) I also want t

[fw-general] Re: Zend routing - can this logic be done?

2010-03-05 Thread asagala
ok but the code you provided creates a pages route. I want it to be applied to the default route. I changed your code to this: resources.router.routes.default.type = "Zend_Controller_Router_Route_Regex" resources.router.routes.default.route = "([a-zA-Z0-9-]+).html" resources.router.routes.default

[fw-general] Zend routing - can this logic be done?

2010-03-05 Thread asagala
Trying to figure out if I can implement something like this with Zend routing. Here is what I would like to do - Keep the default route logic the same - When an html page is requested forward it to PagesController index action Ex: http://hostname/controller/action -> this uses default route

[fw-general] Re: Zend_Translate with TMX: what's the proper usage?

2010-02-08 Thread asagala
If you want to use string you have to do something like this Importation Liste List Import and then you can do $translate->_('List Import'); // $translate is an instance of Zend_Translate -- View this message in context: http://n4.nabble.com/Zend-T

Re: [fw-general] Zend_JSON issue

2010-01-04 Thread asagala
Found the issue. magic_quotes_gpc is enabled and escaping all " with \". This causes the issue. Have to disable it or use stripslashes function on $json before decoding. asagala wrote: > > I am having a weird issue with Zend_JSON:decode function. everything works > on m

[fw-general] Zend_JSON issue

2010-01-04 Thread asagala
I am having a weird issue with Zend_JSON:decode function. everything works on my local. I run into the issue when running the same code on a production box. When I call $json = Zend_Json::decode($this->_request->getPost('results')); the returned $json is empty. I checked that php json extensions

Re: [fw-general] Zend_Locale

2009-11-25 Thread asagala
Still havent figured this out anyone have a clue? asagala wrote: > > > By the way you can set the locale string in the constructor. This works in > the bootstrap file > > $locale = new Zend_Locale('en_US'); > Zend_Registry::set(

Re: [fw-general] Zend_Log_Writer_Firebug

2009-11-18 Thread asagala
ts headers into the response, which are then read if you dont > get to the end, you wont get those output if they're buffering. Flushing > would resolve this... > > K > > asagala wrote: >> Question. Why do I have to call this function >> Zend_Wildfire_Chan

[fw-general] Zend_Log_Writer_Firebug

2009-11-18 Thread asagala
Question. Why do I have to call this function Zend_Wildfire_Channel_HttpHeaders::getInstance()->flush(); to see output in my firebug console. If I do something like this: Zend_Registry::get('firebug')->log('blah!',Zend_Log::DEBUG); it doesnt output anything but if I do this: Zend_Registry::get(

Re: [fw-general] Zend_Locale

2009-11-11 Thread asagala
By the way you can set the locale string in the constructor. This works in the bootstrap file $locale = new Zend_Locale('en_US'); Zend_Registry::set('Zend_Locale', $locale); I get the issue when I try to overwrite the value in my control

Re: [fw-general] Zend_Locale

2009-11-11 Thread asagala
a string does not overwrite the content of the set > instance. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com > > > - Original Message - > From: "asagala" > To: > Sent: Friday, November 06, 2

[fw-general] Re: Re[fw-general] turning HTML content from AjaxContext

2009-11-02 Thread asagala
Maybe this is totally off topic but I know when I want to return JSON data from one of my controller actions I use the json helper. You use it like this $this->_helper->json($data); where $data is an array of data that you want to send by JSON. NIce thing is that is also disables the view. No need

Re: [fw-general] Action Helpers not found

2009-11-01 Thread asagala
oader basicaly doesnt allow the rest of the boostrap to be executed! Moved the Zend_Controller_Action_HelperBroker::addPrefix('Helper'); in its own init method and everything works! asagala wrote: > > Hi, > > Cant seem to get my Action Helpers to be discovered by Zend.

Re: [fw-general] Action Helpers not found

2009-10-31 Thread asagala
Can you send me a copy of your bootstrap.php file and application.ini so I see what a working one looks like weierophinney wrote: > > -- asagala wrote > (on Sunday, 25 October 2009, 11:02 AM -0700): >> >> Tried that. It doesnt work. > > Is App/library on your

Re: [fw-general] Action Helpers not found

2009-10-29 Thread asagala
ader_Autoloader::getInstance()->setFallbackAutoloader(true); > } > if (isset($options['includeFileCache']) AND file_exists($file = > $options['includeFileCache'])) { > Zend_Loader_PluginLoader::setIncludeFileCache($file); > } > return $autoloader; > } &g

Re: [fw-general] Action Helpers not found

2009-10-26 Thread asagala
return void > */ > public function init() > { > $options = $this->getOptions(); > $autoloader = new Zend_Application_Module_Autoloader(array( > 'namespace' => $options['namespace'], > 'basePath' => $options['basePath'] > )); &

Re: [fw-general] Action Helpers not found

2009-10-26 Thread asagala
ead [staging : production] [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 weierophinney wrote: > > -- asagala wrote > (on Sunday, 25 October 20

Re: [fw-general] Action Helpers not found

2009-10-25 Thread asagala
plication_Bootstrap_Exception' with message 'No default controller directory registered with front controller' in C:\Program Files\Zend\ZendServer\share\ZendFramework\library\Zend\Application\Bootstrap\Bootstrap.php Also I am using applications and not App. Should of typed the whole th

Re: [fw-general] Action Helpers not found

2009-10-25 Thread asagala
Everything works but still dont understand why I cant get it working with regular paths. asagala wrote: > > Tried that. It doesnt work. > > > > weierophinney wrote: >> >> -- asagala wrote >> (on Sunday, 25 October 2009, 09:45 AM -0700): >>> >&

Re: [fw-general] Action Helpers not found

2009-10-25 Thread asagala
Tried that. It doesnt work. weierophinney wrote: > > -- asagala wrote > (on Sunday, 25 October 2009, 09:45 AM -0700): >> >> Added autoloaderNamespaces[] = "Helper_" to my application.ini file but >> still >> no success. I st

Re: [fw-general] Action Helpers not found

2009-10-25 Thread asagala
Added autoloaderNamespaces[] = "Helper_" to my application.ini file but still no success. I still get that the Action Helper is not found weierophinney wrote: > > -- asagala wrote > (on Sunday, 25 October 2009, 06:32 AM -0700): >> Cant seem to get my Action Helpers

[fw-general] Action Helpers not found

2009-10-25 Thread asagala
Hi, Cant seem to get my Action Helpers to be discovered by Zend. I have read a couple of articles but still cant seem to get them to work. i have this line in the Bootstrap.php Zend_Controller_Action_HelperBroker::addPrefix('Helper'); My file structure is like this App\ --library\ Helper