Re: [fw-general] Manage different ZF projects on one server

2011-04-10 Thread Marco Pivetta
to read all changelogs. My 2 cents :) Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 10 April 2011 15:28, Jurian Sluiman subscr...@juriansluiman.nl wrote: Hi all, With several ZF projects on one server and each a default config (Zend and ZendX libraries

Re: [fw-general] Little help with Zend Date

2011-04-11 Thread Marco Pivetta
I usually parse such dates with \Zend_Date::DATE_LONG (''), works fine for me... Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 11 April 2011 13:14, Sergio Rinaudo kaiohken1...@hotmail.com wrote: Hi All, I have a little problem with Zend Date and date

Re: [fw-general] Re: Noob Questions. Please help.

2011-04-11 Thread Marco Pivetta
Zend Framework does not need anything more than PHP 5.2 to work, so you can just download it, upload it to your project via FTP and start playing with it ;) Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 11 April 2011 15:26, lordali pirzada.ras...@gmail.com

Re: [fw-general] Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Marco Pivetta
php 5.3's namespaces, so you would just go for \Zend_Date(); instead. c) If (b) wasn't the problem could you please show some of the exceptions thrown? d) use \My\Entity\Base as My_Entity_Base; - Is this a wanted behaviour? Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com

Re: [fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Marco Pivetta
The only thing you need to do to avoid using D2's autoloader is taking care (like I did from lines 67 to 77 in the gist) of Entity Proxies :) Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 18 April 2011 10:51, tridem-zend nabble-z...@tridem.de wrote: Thanks

Re: [fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Marco Pivetta
Yep, that's the same for me as I use XML config, and that's a trouble if I want to use some resources from My\Personal\Library like My\Personal\Library\Super\Resource/ (obviously won't work) :\ It's not an issue of the autoloader anyway, it's about resources bootstrapping and loading... Marco

Re: [fw-general] Re: Deep Association Mapping in Doctrine

2011-04-21 Thread Marco Pivetta
specific support for Doctrine or wish to continue talking about it, I would suggest you to use the correct mailing list, where you can get support by D2 authors ;) Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 21 April 2011 16:07, tridem-zend nabble-z...@tridem.de

Re: [fw-general] Strange ZEND class loading error with NOKIA E72 phone

2011-04-21 Thread Marco Pivetta
What do you currently do before initializing the Autoloader? Could you expose that? What's the include_path before the error gets triggered? Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 21 April 2011 17:30, mike55 mkhilb...@googlemail.com wrote: hi, i've

Re: [fw-general] Bug tracking system/ticket management in ZF?

2011-05-02 Thread Marco Pivetta
I would go for Vermis :) http://vermis.ognisco.com/ Give it a try, it is straight OOP, so you should have a chance to extend any stuff you wish to extend :D Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 2 May 2011 17:40, robert mena robert.m...@gmail.com wrote

Re: [fw-general] Zend Auth: clearIdentity not working for simultaneous requests

2011-05-24 Thread Marco Pivetta
to implement your own auth storage. Marco Pivetta @Ocramius http://twitter.com/Ocramius http://marco-pivetta.com On 23 May 2011 20:15, Fernando Marcelo cont...@fernandomarcelo.com wrote: Hi, I am having some issues with Zend_Auth. I have an application that sends Ajax requests every X seconds

[fw-general] Zend_Form_SubForm within a Zend_Form_DisplayGroup

2011-05-27 Thread Marco Pivetta
? Shall I tell my customer that I can't use display groups? Is there some other method to encapsulate the lock logic? Anything different from Zend_Form_SubForm? Extending Zend_Form_Element seems to be quite complicated... Thank you in advance for any hints :) Marco Pivetta @Ocramius http

Re: [fw-general] Zend_Form_SubForm within a Zend_Form_DisplayGroup

2011-05-30 Thread Marco Pivetta
That's a bit clunky :S I have dozens of different forms built upon metadata coming from a DB schema... Makes stuff complicated... Will see if I can implement it just working with subforms, even if this destroys the -getElement() logic, forcing me to iterate through subforms... Marco Pivetta http

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Marco Pivetta
I usually wrap my cronjobs within bash scripts, which allows me to set enviroment directly in the script... That allows me to centralize and pipe the execution of multiple CLI PHP commands :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 8 June 2011 15:27, Markizano

Re: [fw-general] APPLICATION_ENV for cli scripts (staging)

2011-06-08 Thread Marco Pivetta
@nevvermind any input output operation where you'll need both batch processing power and piping... As an example, I usually build web crawlers that are accessible as CLI interfaces, which makes cronjob activity easier for me and allows me to redirect output wherever I want :) Marco Pivetta http

Re: [fw-general] CMS for Zend Framework

2011-07-05 Thread Marco Pivetta
Not really a thing that I know deeply, but I think you could be interested in TomatoCMS, which is quite powerful for what I've seen. I just looked at the code some time ago and never tried it for an extended period of time, but I think you could give it a try ;) Marco Pivetta http://twitter.com

Re: [fw-general] CMS for Zend Framework

2011-07-05 Thread Marco Pivetta
Oh, yeah, Pimcore looks good! =) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 5 July 2011 23:21, Benjamin Eberlei kont...@beberlei.de wrote: I know two: http://www.redsparkcms.de http://www.pimcore.org/ On Tue, 05 Jul 2011 22:47:38 +0200 Jawad jawad.sto

Re: [fw-general] Form with displaygropus doesn´t submit

2011-07-06 Thread Marco Pivetta
If you manually echo, then you probably should also manually create the form/ element wrapping all your displaygroups. Do you need to echo them separately because they're placed in different positions of the page? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 6 July 2011

Re: [fw-general] Using Zend_Paginator with raw SQL

2011-07-08 Thread Marco Pivetta
Zend_Db_Select is there... Otherwise just fetch all the data and stuff it into a Zend_Paginator_Adapter_Array and do all required checks before... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 8 July 2011 15:23, saiman sai...@thefreeart.com wrote: В 16:21 +0300 на

Re: [fw-general] Using Zend_Paginator with raw SQL

2011-07-09 Thread Marco Pivetta
You don't need to contact the author, you just need to implement the adapter interface :P Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 9 July 2011 07:37, saiman sai...@tefreeart.com wrote: В 15:34 +0200 на 08.07.2011 (пт), Marco Pivetta написа

Re: [fw-general] Zend Framework, Doctrine 2 - Let's talk entities and forms

2011-07-15 Thread Marco Pivetta
with all needed validators and similars coming from annotations... Could this work for you? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 15 July 2011 18:07, Kyle Spraggs the...@spiffyjr.me wrote: I'm open to suggestions if you have them. Specifically on how to handle

Re: [fw-general] Allowed memory size exhausted

2011-07-28 Thread Marco Pivetta
290 megs of trace? That's way too much! What about your ZF version? Can't see anything at Zend/Db/Adapter/Pdo/Mysql.php on line 205. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 28 July 2011 16:29, metalmini metalm...@gmail.com wrote: Hi guys, I am having

Re: [fw-general] Zend_Auth using MD5

2011-10-13 Thread Marco Pivetta
The best you can do is adding some salt to it... That would make the rainbow table discovery useless... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 14 October 2011 03:34, David Muir davidkm...@gmail.com wrote: MD5 is used in the example usage of /credentialTreatment

Re: [fw-general] Zend_Auth using MD5

2011-10-13 Thread Marco Pivetta
it (in this case) from what I know :\ Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 14 October 2011 03:42, David Muir davidkm...@gmail.com wrote: I agree, but I was under the impression that even with salt, MD5 is useless for protecting passwords. Cheers, David

[fw-general] Re: ZF2 - Database configuration?

2011-11-12 Thread Marco Pivetta
Hey :) I'm not sure this works, but please take a look at https://gist.github.com/1360533 Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 November 2011 07:17, Oscar Merida [via Zend Framework Community] ml-node+s634137n4033733...@n4.nabble.com wrote: I'm taking

[fw-general] Re: I am facing this error when i run query to databse

2011-11-12 Thread Marco Pivetta
You just don't have an indexAction in your controller :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 November 2011 21:19, vindu525 [via Zend Framework Community] ml-node+s634137n4035186...@n4.nabble.com wrote: Page not found Exception information: Message

[fw-general] Re: I am facing this error when i run query to databse

2011-11-12 Thread Marco Pivetta
I am really sorry to answer you this way, but it looks like you don't understand how Zend Framework's MVC works. That return $this-_forward('list'); is like an internal redirect. I suggest you a read of http://framework.zend.com/manual/en/learning.quickstart.intro.html :) Marco Pivetta http

Re: [fw-general] ZF2 Displaying partials and exceptions

2011-11-23 Thread Marco Pivetta
of the controller (write your controller + override DI alias in config in your module) to get extended exceptions. Can't really help on the -partial() issue anyway :\ Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 23 November 2011 18:24, Ron Dyck pulpfr...@gmail.com wrote: I'm making

Re: [fw-general] ZF2 Displaying partials and exceptions

2011-11-23 Thread Marco Pivetta
Actually, those exceptions are not shown. Will try to do a PR later to allow turning on Exceptions in view :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 23 November 2011 18:48, scs sasc...@gmail.com wrote: Hi, I am not sure if it helps but one way is to look

Re: [fw-general] [ZF2] Factory method and Zend\Di

2012-01-03 Thread Marco Pivetta
Where do you set the 'cfg' parameter when getting the storage factory? I don't see any usage of it... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 2 January 2012 20:36, theUniC theu...@gmail.com wrote: Hi all, I would like to know what would be the best way

Re: [fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-25 Thread Marco Pivetta
You can check https://github.com/ZF-Commons/ZfcUser/blob/master/src/ZfcUser/Controller/Plugin/ZfcUserAuthentication.php and https://github.com/ZF-Commons/ZfcUser/blob/master/config/module.config.php#L63 Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 26 February 2012 03

[fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-26 Thread Marco Pivetta
() in your controllers :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 26 February 2012 20:13, cmple [via Zend Framework Community] ml-node+s634137n4422729...@n4.nabble.com wrote: Marco Pivetta wrote You can check https://github.com/ZF-Commons/ZfcUser/blob/master/src

[fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-27 Thread Marco Pivetta
You can still define your Acl service and put it in your Di config with all of its requirements. Then you can inject it into your controller either as hard dependency (constructor parameter) or via setter injection. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 27

[fw-general] Re: [ZF2] What's the proper way to register global MVC plugins?

2012-02-27 Thread Marco Pivetta
Nope, what I gave you is a service you could inject to check your ACL within the controllers. If you want to restrict acces in your application, then use Matthew's example, which is an event happening at 'dispatch' and which does exactly that, without copy/paste in every example. Marco Pivetta

[fw-general] Re: [zf-contributors] Zend Framework 2.0.0beta3 Released!

2012-03-02 Thread Marco Pivetta
Thumbs up! Great work Matthew, Ralph, Enrico, Ben, Evan, Artur and all the community! Now it is really time for some beer :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 2 March 2012 22:51, Matthew Weier O'Phinney matt...@zend.com wrote: It is with great pleasure

[fw-general] Re: ZendDeveloperTools module in ZF2

2012-03-07 Thread Marco Pivetta
Could you please add some code/examples? Do you have a repository with those modules? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 7 March 2012 09:18, Jonathan Maron [via Zend Framework Community] ml-node+s634137n4452591...@n4.nabble.com wrote: Hello I am

[fw-general] Re: ZendDeveloperTools module in ZF2

2012-03-07 Thread Marco Pivetta
You should actually add this module to the enabled ones, not paste it into the Application module. Modules are layered, you do never (usually) write in other people's modules. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 7 March 2012 10:56, Jonathan Maron [via Zend

[fw-general] Re: ZendDeveloperTools module in ZF2

2012-03-07 Thread Marco Pivetta
Okay, I just thought you were misusing it :) Can you enable error reporting? There is most probably a fatal somewhere... Also, the module is a bit outdated (22 days is before the new view layer was introduced with beta3). Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 7

[fw-general] Re: [Remi_Woler]: Why can i not join #zftalk?

2012-03-10 Thread Marco Pivetta
Try hopping into #zftalk.2 and ask there eventually... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 10 March 2012 21:04, IamTrying [via Zend Framework Community] ml-node+s634137n4462730...@n4.nabble.com wrote: Why can i not join #zftalk? What is the cause

[fw-general] Re: Problems with autoloader after using Zend_Auth::authenticate / Zend_Session

2012-03-11 Thread Marco Pivetta
Told you it is painful to serialize entities :) Guess why? :P Anyway, this is a doctrine related question, and not an issue of Zend_Session at all :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 11 March 2012 17:18, mbneto [via Zend Framework Community] ml-node

[fw-general] Re: Zend Framework - Why the PDF print is slowest in ZF/PHP? mPDF, tcPDF, fPDF, zf PDF all.

2012-03-11 Thread Marco Pivetta
I'm sorry, but could you please expose an example? I don't really get what you mean... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 11 March 2012 22:14, IamTrying [via Zend Framework Community] ml-node+s634137n4464644...@n4.nabble.com wrote: What is the reason

[fw-general] Re: Problems with autoloader after using Zend_Auth::authenticate / Zend_Session

2012-03-11 Thread Marco Pivetta
(); and $_SESSION... ZF is not really involved in this issue. Any attempt to unserialize data without proper autoloading in place would fail. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 11 March 2012 23:31, mbneto [via Zend Framework Community] ml-node+s634137n4464790

[fw-general] Re: Why ZendFramework - 50 Times slower then Go. Tell me the true plz.

2012-03-12 Thread Marco Pivetta
I don't see the point of the discussion. You are here ranting about... CGI? There's plenty of places where you can rant about that, this mailing list is not in that set :) Have a nice day :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 March 2012 09:18, IamTrying

[fw-general] Re: Zend Framework - Why the PDF print is slowest in ZF/PHP? mPDF, tcPDF, fPDF, zf PDF all.

2012-03-12 Thread Marco Pivetta
Comments inline Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 March 2012 08:49, IamTrying [via Zend Framework Community] ml-node+s634137n4465462...@n4.nabble.com wrote: TCPDF they have lot of examples, out of those here is one and it takes about 5 minute

[fw-general] Re: rendering barcode

2012-03-12 Thread Marco Pivetta
You are probably just missing the http header image/png. Otherwise, this looks fine :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 March 2012 01:51, faom [via Zend Framework Community] ml-node+s634137n4467865...@n4.nabble.com wrote: How can I pass the barcode

[fw-general] Re: rendering barcode

2012-03-12 Thread Marco Pivetta
Yeah, I can check tomorrow at work how I did that... Anyway, if you want to bind the image into an html, then you should base64 encode its contents. I wouldn't suggest that anyway. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 March 2012 02:48, faom [via Zend

[fw-general] Re: rendering barcode

2012-03-13 Thread Marco Pivetta
-getImageType(), true) -setHeader('Cache-Control', 'cache, must-revalidate, max-age=0', true) -setHeader('Pragma', 'public', true); Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 March 2012 09:20, Jurian Sluiman-3 [via Zend Framework Community] ml-node+s634137n4468476

[fw-general] Re: how to pass parameters in breadcrumbs

2012-03-19 Thread Marco Pivetta
Well, your rewrite router simply doesn't know where to put the sid parameter... Strip it :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 19 March 2012 13:38, Coiby [via Zend Framework Community] ml-node+s634137n4484617...@n4.nabble.com wrote: Hi all, I have

Re: [fw-general] ZF vs Yii/CodeIgniter Framework

2012-03-25 Thread Marco Pivetta
application development with PHP. Also, it is not a question of knowing this or knowing that in my opinion. If the team is good enough, switching framework should not be a problem for anyone... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 25 March 2012 17:21, AmirBehzad Eslami

Re: [fw-general] Class (specified by alias blog) Blog\Controller\BlogController could not be located in provided definitions.

2012-04-09 Thread Marco Pivetta
Did you provide autoloading for your Blog module? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 5 April 2012 23:55, fwahlqvist fwahlqv...@gmail.com wrote: Hi all, Apologies if i am posting in the wrong forum. Trying to learn zf2 by modifying the Skeleton

[fw-general] Re: Check If Class Exists

2012-04-12 Thread Marco Pivetta
Well, that's your autoloader failing. Are you sure you have set it up correctly? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 April 2012 13:42, sjwdavies [via Zend Framework Community] ml-node+s634137n455162...@n4.nabble.com wrote: Hi List, I'm trying

Re: [fw-general] Re: Validator\Db\NoRecordExists - Fatal error: Class 'Zend\Db\Table\AbstractTable' not found

2012-04-17 Thread Marco Pivetta
Fork the github repository and follow http://framework.zend.com/wiki/display/ZFDEV2/Zend+Framework+Git+Guide :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 17 April 2012 15:19, cmple roman.vidya...@gmail.com wrote: Marco Pivetta wrote The NoRecordExists

Re: [fw-general] Re: Validator\Db\NoRecordExists - Fatal error: Class 'Zend\Db\Table\AbstractTable' not found

2012-04-17 Thread Marco Pivetta
Let's continue on the PR :) Anyway, I suggest you to follow zf-contributors for zf2 from now on. :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 17 April 2012 20:01, cmple roman.vidya...@gmail.com wrote: Marco Pivetta wrote Fork the github repository and follow

[fw-general] Re: Validator\Db\NoRecordExists - Fatal error: Class 'Zend\Db\Table\AbstractTable' not found

2012-04-17 Thread Marco Pivetta
zf-contributors is a mailing list you can find at http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework And yes, by PR I mean Pull Request :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 17 April 2012 20:09, cmple [via Zend Framework Community

[fw-general] Re: Announce Libra CMS based at ZF2

2012-04-22 Thread Marco Pivetta
:( ), but it would be nice to directly develop some things as OSS instead (steaking them in :P ) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 April 2012 15:23, duke [via Zend Framework Community] ml-node+s634137n457640...@n4.nabble.com wrote: I've worked on magazine

[fw-general] Re: ZF2 The entire content is missing?

2012-04-23 Thread Marco Pivetta
Hi cmple! Looks like there's a bug in the latest ZF2 code (last 2-3 days of commits). Either wait for it to be fixed or checkout both repositories at a previous state :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 23 April 2012 20:09, cmple [via Zend Framework

Re: [fw-general] How to unit test ZF2/ZendSkeletonApplication

2012-04-29 Thread Marco Pivetta
Hi there, applications haven't really to be tested. Or at least you will probably be able to just run integration tests. Anyway, as your development happens inside your modules, you really should place the tests in there, as a Module is basically a namespace. Marco Pivetta http://twitter.com

Re: [fw-general] How to unit test ZF2/ZendSkeletonApplication

2012-04-29 Thread Marco Pivetta
, not much more. Please check https://github.com/doctrine/DoctrineORMModule/blob/master/.travis.yml :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 29 April 2012 12:36, sasezaki sasez...@gmail.com wrote: Hi all. I think, this PR's source is helpful. https://github.com

[fw-general] Re: Setting up Zend Filesystem Cache with DI

2012-05-12 Thread Marco Pivetta
`'cacheDir' = __DIR__ . '/../../../data/cache',` should not be needed, as in a default setup, you have your CWD set to the application root. `data/cache` should be enough :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 May 2012 02:02, cmple [via Zend Framework

[fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread Marco Pivetta
Careful, I would not just blindly overwrite them. Leave the ones that are currently set, or make that logic configurable :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 18 May 2012 15:37, cmple [via Zend Framework Community] ml-node+s634137n4644518...@n4.nabble.com

[fw-general] Re: Existing PHP application code into Zend framework.

2012-05-18 Thread Marco Pivetta
Did you read about the autoloader? http://framework.zend.com/manual/en/zend.loader.autoloader.html Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 17 May 2012 07:37, Sbeeram [via Zend Framework Community] ml-node+s634137n4642578...@n4.nabble.com wrote: Hi, I am

Re: [fw-general] Re: ZF2 Access controller name/action from layout?

2012-05-18 Thread Marco Pivetta
I simply mean that you should check as following (pseudocode): $viewModel = $controller-getEvent()-getViewModel(); if (!$viewModel-getVariable('controller')) { $viewModel-setVariable('controller', $route-getParam('controller')); } Marco Pivetta http://twitter.com/Ocramius http://marco

Re: [fw-general] ZF2 module namespaces

2012-06-19 Thread Marco Pivetta
Hey Demian, Modules don't need to live at the top of the namespace. You can use as many sub-namespaces as you want! Enjoy ;) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 19 June 2012 15:49, Demian Katz demian.k...@villanova.edu wrote: Hello, I'm brainstorming

Re: [fw-general] controller configurations do not get merged as expected THIS IS ZF2

2012-06-30 Thread Marco Pivetta
Just FYI, you should ask this in fw-contributors for now, maybe you'll get more feedback :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 30 June 2012 07:50, Bart McLeod mcl...@spaceweb.nl wrote: Sorry, forget to mention ZF2 Op 30-06-12 07:49, Bart McLeod schreef

[fw-general] Re: Does anyone know 2012, if ZendFramework core developers are also working for Google?

2012-07-04 Thread Marco Pivetta
Don't think so... Not even sure Google uses PHP internally... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 4 July 2012 14:39, IamTrying [via Zend Framework Community] ml-node+s634137n4655602...@n4.nabble.com wrote: http://pastehtml.com/view/c3kw80dyq.html - Does

[fw-general] Re: ZF2 and some questions

2012-08-01 Thread Marco Pivetta
. The strategy then decides what to do with it. You can read more at http://zf2.readthedocs.org/en/latest/modules/zend.view.quick-start.html Hope this helps :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 1 August 2012 10:13, Marko78 [via Zend Framework Community] ml-node

Re: [fw-general] ZF2 project structure

2012-08-05 Thread Marco Pivetta
I'm curious: why would you even want to delete all those files? Also, if you use composer, you surely don't want to delete it. That's your autoloader, keep it in mind! What you probably don't want to be accessible from web is your `composer.phar` Marco Pivetta http://twitter.com/Ocramius http

Re: [fw-general] ZF2 project structure

2012-08-05 Thread Marco Pivetta
dev environment. That updates dependencies to the state defined in composer.lock, which is quite amazing in terms of spared time. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 5 August 2012 17:10, Ralf Eggert r.egg...@travello.de wrote: Hi Dennis and Marco, thanks

Re: [fw-general] $e-getRouteMatch() is NULL !!

2012-08-06 Thread Marco Pivetta
if a route was matched */ }, -1000 ); } Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 6 August 2012 10:08, sina miandashti s...@teamatec.com wrote: hi im wondering why this returned null in my onBootstrap method in module.php $e

Re: [fw-general] Re: [ZF2 2.0.0rc2] Pagination is still broken.

2012-08-08 Thread Marco Pivetta
@sina there isn't any adapter for pagination based on the ORM as far as I know (also: I don't think that is very constructive). Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 8 August 2012 09:03, cmple roman.vidya...@gmail.com wrote: sina miandashti wrote use

[fw-general] Re: Love ZF2 so far =)

2012-08-09 Thread Marco Pivetta
I'm loving it too :) I admit it is complex, but the new approach is so flexible and clean that it really opens a whole lot of new ways of doing things (mainly with service locator and observer). Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 8 August 2012 14:31, cmple

Re: [fw-general] Re: [ZF2 2.0.0rc2] Pagination is still broken.

2012-08-09 Thread Marco Pivetta
In fact I and Tonis already wrote one: https://github.com/doctrine/DoctrineORMModule/blob/master/src/DoctrineORMModule/Paginator/Adapter/DoctrinePaginator.php Still no good reason to just say use doctrine :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 10 August

Re: [fw-general] ZF2: best practice to handle module specific view blocks

2012-08-12 Thread Marco Pivetta
portions. They are not a separate container in your app, they're functionality added to it. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 August 2012 07:32, Ralf Eggert r.egg...@travello.de wrote: Good morning, we all know the situation that we want to handle module

Re: [fw-general] ZF2: best practice to handle module specific view blocks

2012-08-12 Thread Marco Pivetta
InjectTemplateListener ( https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/View/Http/InjectTemplateListener.php) works. That is probably the best way of doing such decisions based on the name of the picked controller. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com

Re: [fw-general] ZF2 display errors

2012-08-13 Thread Marco Pivetta
I think so. If you don't need to make such decisions based on config, you can do it early in a module implementing the init method ( https://github.com/zendframework/zf2/blob/master/library/Zend/ModuleManager/Feature/InitProviderInterface.php) Marco Pivetta http://twitter.com/Ocramius http

Re: [fw-general] Re: Is it possible to create references in config sections for resource plugins

2012-08-14 Thread Marco Pivetta
This is something that cannot really be done with application resources... You'd have to override the application resource itself to allow that. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 14 August 2012 20:34, Andrew Ballard aball...@gmail.com wrote: Hmm. Nothing

[fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Marco Pivetta
I think you can use a wildcard route ( https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Router/Http/Wildcard.php) as a child route of `/lang/module/controller/action/id/`. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 August 2012 07:01, cstrosser

Re: [fw-general] default route not understand the params

2012-08-21 Thread Marco Pivetta
Even if a wildcard route exists, it is not the suggested approach anymore, and isn't enabled by default. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 19 August 2012 09:21, sina miandashti s...@teamatec.com wrote: hi i have removeAction() method in my

Re: [fw-general] Re: ZF2: One Route to rule them all

2012-08-21 Thread Marco Pivetta
I think the route cannot be matched in such case, since it hasn't an ending delimiter. Your parts should not be optional for such a route to work. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 August 2012 12:17, Ralf Eggert r.egg...@travello.de wrote: Hi Marco

[fw-general] Re: ZF2 on shared hosting

2012-08-31 Thread Marco Pivetta
Just install everything locally and then upload, no? Anyway, shared hosting is dead (at least for projects that require such big frameworks). A VPS costs something like $10 a month and is quite affordable nowadays. ZF2 works also on shared machines, mine is just a suggestion. Marco Pivetta http

Re: [fw-general] RC7 tutorial failure

2012-09-01 Thread Marco Pivetta
Check your $e-getPrevious() :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 2 September 2012 00:27, kmsd was...@metallaoui.com wrote: I'm having some difficulty setting up the tutorial in RC7. I've checked and double checked my code and it all looks right but I get

Re: [fw-general] Re: RC7 tutorial failure

2012-09-03 Thread Marco Pivetta
Does a class named Album\Module exist? Could it be autoloaded? Where is your module placed? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 3 September 2012 03:23, kmsd was...@metallaoui.com wrote: I still couldn't get it to work so I thought I'd rebuild everything

Re: [fw-general] ZF2: render footer and sidbar within a layout

2012-09-03 Thread Marco Pivetta
/DefaultRenderingStrategy.php#L110-131 Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 3 September 2012 12:38, Ralf Eggert r.egg...@travello.de wrote: Hi, I am still struggling about the best ZF2 way to render a footer and a sidebar within a layout. I found this example within Robs

[fw-general] Re: RC7 tutorial failure

2012-09-03 Thread Marco Pivetta
skeleton already gives you all this stuff. Akrabat's tutorial is the hard way of understanding everything that happens in the Application skeleton. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 3 September 2012 18:16, kmsd [via Zend Framework Community] ml-node

[fw-general] Re: [zf-contributors] Zend Framework 2.0.0 STABLE Released!

2012-09-06 Thread Marco Pivetta
Congrats to everyone for this huge milestone and thank you for all the support and knowledge you shared. I really hope to give back at least 1% of what I got from this great community! Continue building great tools, guys! Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com

[fw-general] Re: [ZF2] Install ZF2 suggested packages

2012-09-07 Thread Marco Pivetta
What are you exactly typing in your composer command? What's your composer.json? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 7 September 2012 15:30, Razorblade [via Zend Framework Community] ml-node+s634137n4656744...@n4.nabble.com wrote: Hi everyone, Zend

Re: [fw-general] Re: [ZF2] Install ZF2 suggested packages

2012-09-07 Thread Marco Pivetta
Heya ext/intl is not a composer package, it is a PHP PECL extension: http://php.net/manual/en/book.intl.php Composer can check these things too ;) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 7 September 2012 15:44, Razorblade kaiohken1...@hotmail.com wrote: Hi

[fw-general] Re: [ZF2] Install ZF2 suggested packages

2012-09-07 Thread Marco Pivetta
That's because those packages are on packages.zendframework.com and not on packagist. As reported on http://packages.zendframework.com/ add following to your composer.json: repositories: [ { type: composer, url: http://packages.zendframework.com/; } ], Marco Pivetta

[fw-general] Re: Zend_Log and php errors

2012-09-12 Thread Marco Pivetta
Nope, you can only handle catchable errors. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 September 2012 06:08, kirens...@yahoo.com [via Zend Framework Community] ml-node+s634137n4656794...@n4.nabble.com wrote: Hi I am trying to log all the errors in my web

[fw-general] Re: ZF2 current date

2012-09-13 Thread Marco Pivetta
PHP 5.3 has a builtin DateTime class. $date = new DateTime(); already represents the date at the time you instantiated $date. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 September 2012 12:17, manisha [via Zend Framework Community] ml-node+s634137n4656810...@n4

[fw-general] Re: ZF2 current date

2012-09-14 Thread Marco Pivetta
Exactly, there is no reason why you shouldn't start using it :) On Sep 14, 2012 8:05 AM, manisha [via Zend Framework Community] ml-node+s634137n4656820...@n4.nabble.com wrote: Hi, Thank you Marco for your reply. So does it mean we have to use implicitly PHP's DateTime class while working

Re: [fw-general] [ZF2] Injecting objects to a controller, or getting objects from the service locator?

2012-09-18 Thread Marco Pivetta
for development purposes, as I've blogged at http://ocramius.github.com/blog/zend-framework-2-controllers-and-dependency-injection-with-zend-di/ Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 18 September 2012 11:40, Robert Basic robertbasic@gmail.com wrote: On 17

[fw-general] Re: module.config.php controllers

2012-09-18 Thread Marco Pivetta
Hey lode, It may simply be possible to attach an abstract service factory to the controller loader. That allows you to get services with a number of names you could decide dinamically. Do it carefully though, since you are linking services with URLs and you don't want to expose too much. Marco

[fw-general] Re: WG: [ZF2][Doctrine2] Autogeneration of entity classes

2012-09-20 Thread Marco Pivetta
Heya, That really depends on your application. You'd usually do it in `init_autoload.php` in your application (if it follows the skeleton application structure) or eventually use the default installation via composer. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 20

[fw-general] Re: AW: WG: [ZF2][Doctrine2] Autogeneration of entity classes

2012-09-21 Thread Marco Pivetta
Hey tridem, I may be able to push some tags on the repo today to make it stable. That should also solve the issue, but I'll work on it in the evening. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 September 2012 08:53, tridem [via Zend Framework Community] ml

Re: [fw-general] Dependincy Injector... can't find instance

2012-09-21 Thread Marco Pivetta
Always check $e-getPrevious() on exceptions. The skeleton application already handles that in the error view. Otherwise, use a try-catch block like that try { // buggy block } catch (\Exception $e) { do { echo $e-getMessage(); } while ($e = $e-getPrevious); } Marco Pivetta

[fw-general] Re: Postgres configuration with doctrine ZF2

2012-09-24 Thread Marco Pivetta
This is not really useful, and I'd suggest that the request never reached PHP... Can you check in CLI by writing a console controller? Get started at http://framework.zend.com/manual/2.0/en/modules/zend.console.introduction.html Marco Pivetta http://twitter.com/Ocramius http://marco

[fw-general] Re: CMS application in Zend Framework 2

2012-09-24 Thread Marco Pivetta
anyway. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 24 September 2012 12:44, Paladyn [via Zend Framework Community] ml-node+s634137n4657089...@n4.nabble.com wrote: Hello! I`m writing new CMS in ZF 2. First approach to new version of this great framework is a bit

[fw-general] Re: Can't access a non-default controller

2012-09-26 Thread Marco Pivetta
Looks like your webserver doesn't have mod_rewrite (if it is apache we're talking about) or you don't have enough rights to enable it in your .htaccess Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 26 September 2012 08:18, bunkao [via Zend Framework Community] ml-node

[fw-general] Re: [ZF2] Weird routing problem

2012-09-26 Thread Marco Pivetta
Are you sure it works? Constraint `'par'= 'id',` doesn't look right to me. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 26 September 2012 08:15, Distrust [via Zend Framework Community] ml-node+s634137n4657132...@n4.nabble.com wrote: 'addform' = array

[fw-general] Re: ZeTheme in zf2

2012-09-29 Thread Marco Pivetta
Could you please elaborate did not work ? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 29 September 2012 22:45, fwahlqvist [via Zend Framework Community] ml-node+s634137n465722...@n4.nabble.com wrote: Hi All, Have added ZeTheme (https://github.com/ZendExperts

  1   2   3   4   >