[fw-general] Gdata and Analytics
Hey, is it possible to login to analytics with Gdata? I was trying with $client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'analytics'); but then you can't fetch anything from analytics because you're not logged in. Any ideas? -- Łukasz Wojciechowski http://nostrzak.blogspot.com
Re: [fw-general] Gdata and Analytics
2008/5/30 Jake McGraw [EMAIL PROTECTED]: Analytics currently doesn't provide an API: http://www.google.com/support/analytics/bin/answer.py?hl=enanswer=55561 - jake So I just want to login. Nothing more. The login api is different for analytics? Or it's blocked? -- Łukasz Wojciechowski
Re: [fw-general] Our new Zend Framework Architect
Congrats, well deserved! -- Łukasz Wojciechowski
[fw-general] HeadScript still not working in 'inner' action views
http://framework.zend.com/issues/browse/ZF-2403 This is signed as fixed but It's still not working at my case. I'm doing in my layout $this-action('actName'); and then in actNameAction view script I use $this-HeadScript()-appendFile(H.'media/js/search.js'); but that gives no effect in my head layout. I load my head.phtml by partial() at my layout. -- Łukasz Wojciechowski
[fw-general] Re: goToUrl changes?
Ok I finally figured out that I should use $this-_helper-redirector-goToUrl(); instead of $this-_helper-redirector()-goToUrl(); ( the function brackets are the clue) :) in every helper this is different, maybe this should be normalized? may help future users avoid such mistakes. -- Łukasz Wojciechowski
[fw-general] goToUrl changes?
I used something like this in my code $this-_helper-redirector()-goToUrl('wyszukaj/'.$this-getRequest()-getParam('type').'/'.urlencode($this-getRequest()-getParam('search'))); and it worked well, it redirected me to place I wanted. In my router I have line $router-addRoute('wyszukaj', new Zend_Controller_Router_Route('wyszukaj/:type/:string/*', array('module' = 'default', 'controller' ='search', 'action' = 'index'))); but now, after update from trunk I finish up at myhost/search after this request. I don't have any idea how it's discovering that the module name is search but I want it to go to address I construct manually. -- Łukasz Wojciechowski
Re: [fw-general] Class 'Zend_Form' not found
Zend_Form I meant of course :) -- Łukasz Wojciechowski
Re: [fw-general] Zend_Validate_Alnum
Filled issue http://framework.zend.com/issues/browse/ZF-2646 -- Łukasz Wojciechowski
[fw-general] Zend_Validate_Alnum
I think that Zend_Validate_Alnum shoudn't check if string is empty or not. You have other validator for this (NotEmpty), therefore the messages are duplicating if you want to combine ie. StringLength + Alnum. Can I turn off emptiness checking by Alnum? -- Łukasz Wojciechowski
[fw-general] Filter_input and checkboxes
I have set up validators for my Zend_Filter_Input and one of them is: 'accept' = array('NotEmpty', array('InArray', array('accept'))), In my form I have field input type=checkbox name=accept value=accept / Thing is that my form passes no matter if I check the checkbox or not. It's probably because when it's not checked the $_POST['accept'] does not even exist. Is there any way to check it with Zend_Filter_Input or should I check it by myself? (not that much work tho, just I like to have clear code ;) -- Łukasz Wojciechowski
[fw-general] Re: Filter_input and checkboxes
Ok I got to the part with metacommands in manual. My bad, sorry! -- Łukasz Wojciechowski
[fw-general] Filtering inputs
I'm doing such thing: http://pastebin.com/m11af8f6f and it generates load of warnings, here are examples (there are 16 warning in total): Warning: Zend_Loader::include_once(Zend\Filter\Between.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\imprezowicz\lib\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Zend\Filter\Between.php' for inclusion (include_path='.;\xampplite\php\pear\;C:\xampplite\htdocs\imprezowicz/lib/ZendIncubator;C:\xampplite\htdocs\imprezowicz/lib;C:\xampplite\htdocs\imprezowicz/app') in C:\xampplite\htdocs\imprezowicz\lib\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once(Zend\Filter\EmailAddress.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\imprezowicz\lib\Zend\Loader.php on line 83 Warning: Zend_Loader::include_once(Zend\Filter\GreaterThan.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\imprezowicz\lib\Zend\Loader.php on line 83 etc... Why are validators looked for in Filters library? or what am I doing wrong? -- Łukasz Wojciechowski
Re: [fw-general] ZF Packaging
To put my unimportant word here :) Well I think that it's good practice to separate core and 'satellites'. Like the gdata in ZF ... well everyone (at least I do ;) have it in libs folder but little % of users is using it. But removing it would do nothing bad to the rest. If I could suggest the ZF could have the core (like the controller, actions, mvc part, session, ...) and 'satellites' (gdata, ldap, openid). The thing is that if you upload 'satellite' you'll keep it working just that ... no more things. We'll that's just me, and my few thoughts about ... P.S. Sorry Kevin for sending it duplicate to you :) I'm just hitting sometimes 'reply' button and this time it did wrong. -- Łukasz Wojciechowski
Re: [fw-general] zend.com, a bit slow?
On Feb 1, 2008 2:57 PM, Matthew O'Phinney [EMAIL PROTECTED] wrote: Andi's given me the go-ahead to respond to this. :-) Thanks for sharing! I'm always very into live refactoring examples. -- Łukasz Wojciechowski
[fw-general] SVN confusion
Hello, I have question what branch is in current svn-trunk? It's 1.5 or what? :) I downloaded 1.5 and I'm using it (no problems at all so far) but it's not the version it's on trunk. Is there any other svn resource for 1.5 or when will trunk become 1.5 ? -- Łukasz Wojciechowski
[fw-general] [OT] Image processing
Since there is no class in ZF for image processing and I know for sure that here are really experienced developer may I ask what (if any) image processing (resizing, cropping, watermarks etc) library are you using. I'm sorry for offtopic, I just can't find anything suitable. -- Łukasz Wojciechowski
[fw-general] Re: [fw-mvc] Re: [fw-general] Zend_View Enhanced placeholdersready to test
On Dec 17, 2007 7:04 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: -- Whitcraft, Jon [EMAIL PROTECTED] wrote (on Monday, 17 December 2007, 12:52 PM -0500): Attached is a diff file fixing the three files that I found the mistake in. \incubator\documentation\manual\en\module_specs is the folder. Applied in r7164. Thanks! I updated incubator manual at http://nostra.art.pl/Zend/Incubator/ Hope it might help anyone. -- Łukasz Wojciechowski
Re: [fw-general] Zend_View Enhanced placeholders ready to test
I've made incubator's doc this morning. You can check it out under http://nostra.art.pl/Zend/Incubator/ -- Łukasz Wojciechowski
Re: [fw-general] Zend_Layout - working out
One more question :) I try to do Zend_Layout::startMvc(); in controller plugin but on every stage (routeShutdown() etc) I get error Fatal error: Call to a member function getBody() on a non-object in (...)lib\Zend\Layout\Controller\Plugin\Layout.php on line 127 any ideas? -- Łukasz Wojciechowski
Re: [fw-general] Zend_Layout - working out
On Dec 13, 2007 7:01 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: Fixed; see ZF-2305, and r7102 of svn. Hero of the day! Thank you very much! -- Łukasz Wojciechowski
[fw-general] Zend_Layout - working out
So I managed to run Zend_Layout and I got to the load of questions point. OK, I get the idea of 2 step design but can't get it working ;) I mean logically ... I have controller NewsController in witch I have action show so I fetch all news in this action and want to show it on layout without wondering about navibar (kept in DB) or anything else. How am I supposed to retrieve navi bar in my layout. Using $this-layout()-render() doesn't actually dispatch my action, right? it only renders script. I tried to use view plugins ... But it's quite weird place to put navi fetch logic in it? ... I want to get the idea right, I used Smarty and templates so far and I'm just used to that approach. -- Łukasz Wojciechowski
[fw-general] Unexpected dispatcher behaviour
I use __call() function in my system. The problem is that there is class_exists() used in Zend_Controller_Dispatch_Standard witch tries to autoload class (i.e. IndexController) witch obviously fails ;) ... In 2 places (line 282 and 165) I added 2nd parameter to class_exists (witch is disabling autoload) and it works perfectly. Wondering if this behaviour is in purpouse? Using Zend 1.0.3 -- Łukasz Wojciechowski
[fw-general] Re: Unexpected dispatcher behaviour
I of course meaned __autoload not __call ;) sorry for that -- Łukasz Wojciechowski
Re: [fw-general] Unexpected dispatcher behaviour
On Dec 10, 2007 3:30 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: For now, if you define __autoload(), it will be an issue; however, if you use Zend_Loader::registerAutoload(), which registers with spl_autoload(), all works correctly (due to differences in how each handles exceptions). So, the quick fix, until the next release, is to use Zend_Loader::registerAutoload() if you want to use autoloading. Oh thanks ;) Didn't notice registerAutoload(). Thnx :) -- Łukasz Wojciechowski
[fw-general] _forward() and mysql problem
Hey, I'm using ZF normally, and in one moment I try to use $this-_forward('index', 'index'); But when I use it I always get Fatal error: Uncaught exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY000]: General error: 1 Can't create/write to file '#sql_ea8_0.MYD' (Errcode: 17)' in C:\xampplite\htdocs\work\forumlist\libraries\Zend\Db\Statement\Pdo.php:227 Stack trace: #0 When I'm not using _forward() everything works just fine My webserver is newest XAMPP 1.6.4 on Windows machine -- Łukasz Wojciechowski
[fw-general] Counting paginate results with Zend_Db_Table
I have a question best practice with integrating SQL_CALC_FOUND_ROWS and Zend_Db_Table. I need how I can inject the SQL... statement into Table queries. -- Łukasz Wojciechowski http://nostrzak.blogspot.com/