Re: [fw-general] Iterating a Tree

2009-06-11 Thread Jason Webster
The left and right values are a requirement of using the Nested Set model for hierarchical data. Read all about it here On 11/06/2009 7:45 PM, iceangel89 wrote: i replied in his blog also ... but i also post here ... i don

Re: [fw-general] Iterating a Tree

2009-06-11 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Razorblade wrote: >> >> I use this class from Hector Virgen >> >> http://blog.virgentech.com/2009/06/zenddbtable-enhancements.html >> >> Sergio Rinaudo >> iceangel89 wrote: > i replied in his blog also ... but i also post here ... > > i dont really

RE: [fw-general] Iterating a Tree

2009-06-11 Thread iceangel89
i replied in his blog also ... but i also post here ... i dont really get what is the left & right columns for Razorblade wrote: > > > I use this class from Hector Virgen > > http://blog.virgentech.com/2009/06/zenddbtable-enhancements.html > > Sergio Rinaudo > > > >> Date: Thu, 11 Jun 2

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
Joe--I have to study this more closely, but from the table you have provided, it would appear that certain assumptions are being made by the autoloader I'm not aware of...too bad this table isn't in the docs ;-) Thanks--I will study your suggestions and see if I can end my 2 day loss of time.

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
spaceage wrote: > > I should add that 'model' and 'models' were being used interchangeably in > both of our posts, and I've updated everything to be 'models'/'Models' > throughout... > I don't know how I missed this post...I wasn't using model and models interchangeably...You need to remove plu

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
spaceage wrote: > > I can appreciate what you are saying re: Zend_Form, but it shouldn't be an > issue whether the class def is in application/models vs. > application/forms, right? After all, if my code runs when I do a simple > require_once with path to my class file, then the issue has to be

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
Lest you get the wrong idea--I love ZF. It rocks. I could make some suggestions re: docs, but what is available is pretty good already. I can appreciate what you are saying re: Zend_Form, but it shouldn't be an issue whether the class def is in application/models vs. application/forms, right?

Re: [fw-general] ZendApplication modules bootstrap files

2009-06-11 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alessandro_78 wrote: >> Brenton Alker-3 wrote: >> This is expected behaviour. Bootstrapping is used to initialize the >> application and is performed before routing-- your archive module may >> even use its bootstrap to add routing rules. So, at this

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
spaceage wrote: > > class Model_LoginForm extends Zend_Form > Oops, yeah you're using Zend_Form. that goes here: /application/forms and the file should be named Login.php and begins class Form_Login extends Zend_Form I haven't used Zend_Form yet, been doing forms manually but will try it s

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
I should add that 'model' and 'models' were being used interchangeably in both of our posts, and I've updated everything to be 'models'/'Models' throughout... spaceage wrote: > > OK, this makes sense, but its still failing... > > In index.php, I have: > > defined('APPLICATION_PATH') > |

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
OK, this makes sense, but its still failing... In index.php, I have: defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); and set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_inclu

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
spaceage wrote: > > My include path is (1) the library dir where ZF is located, (2) the > /application/models dir and (3) "." > You don't need /application/models in the path. Remove the line that sets it. It's just adding an extra path to slow down the system a bit. > I'm a little unclear w

[fw-general] Zend_Form_Element_File?

2009-06-11 Thread gerardroche
Hi, In this example of uploading a file with Zend_Form: $this->addElement('text', 'name', array( 'label' => 'Name', 'required' => true, 'validators' => array( array('StringLength', false, array(1, 255)) ), 'maxle

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
Joe--thanks for your input. My include path is (1) the library dir where ZF is located, (2) the /application/models dir and (3) "." I'm a little unclear when you say "once it knows path to application it will figure out path to models": wouldn't this also be the case if instead of using /applica

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
spaceage wrote: > > Its the default structure as setup by Zend_Tool: > > /application > bootstrap.php > /configs > /controllers > /layouts > /models > /views > /library > /public > index.php > You don't have a modules directory under application. And I get the feel

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
Its the default structure as setup by Zend_Tool: /application bootstrap.php /configs /controllers /layouts /models /views /library /public index.php Without a require_once for my class files in /application/models, I get a Fatal Error, class not found... joedev

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
What's yr error message? I assume you have a dir structure like: /application /application/modules /application/modules/mymodule /application/modules/mymodule/controllers ./models /views etc? -- View this message in context: http://www.nabble.com/Zend_Application-and-autoloading-tp239

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
So did you just put the path(s) to the dirs you want autoloading for in application.ini? I tried this, ie: includePaths.library = APPLICATION_PATH "/../library" includePaths.models = APPLICATION_PATH "/models" which does result in my include_path getting set appropriately, but autloading is sti

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread joedevon
I set up my Bootstrap without a namespace either and added this to application.ini to get my modules to show: resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" -- View this message in context: http://www.nabble.com/Zend_Application-and-autoloading-tp23987637p23989250.

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
Vlad--thanks for this tip...I believe this is the same advice from the quickstart. I tried this with the namespace set to '' (so I don't have to prefix class names with Default_) without success. Having said this, how does the autoloader get initialized for the Zend library in my installation?

[fw-general] Zend_File_Transfer

2009-06-11 Thread Eric Butera
Can someone please explain what is happening with this: http://framework.zend.com/svn/framework/standard/trunk/library/Zend/File/Transfer.php

Re: [fw-general] Zend_Application and autoloading

2009-06-11 Thread Vladas Diržys
Hi, It necessary to initiate the module autoloader. if you're using Bootstrap class, add the following lines to it: protected function _initAutoload() { $autoloader = new Zend_Application_Module_Autoloader(array( 'namespace' => 'YourNamespaceHere_', 'baseP

[fw-general] How to cache SimpleXMLElement

2009-06-11 Thread johannesf
Hi I have problem to get the cach to work on SimpleXMLElement. For exampel I call twitter to retrive some posts like this $result = $this->cache->load('getFeedFromTwitter'); if(!$result){ $twitter = new Zend_Service_Twitter($username,$pswd); $result = $twitter->status->userTimel

Re: [fw-general] Facebook Vanity URLs

2009-06-11 Thread Mike Wright
Nick M wrote: I used the router route hostname and chained it with a standard router: routes.user.type = "Zend_Controller_Router_Route_Hostname" routes.user.route = "www.domain.com" routes.user.chains.following.type = "Zend_Controller_Router_Route" routes.user.chains.following.route = ":usernam

[fw-general] Zend_Application and autoloading

2009-06-11 Thread spaceage
I have a new project set up via Zend_Tool...the directory structure is totally standard: /application bootstrap.php /configs /controllers /layouts /models /views /library /public index.php My include_path is set entirely in index.php: set_include_path(implode(PATH_SE

Re: [fw-general] Zend_Toolbar proposal ready for review

2009-06-11 Thread Christoph Dorn
Hi Ben, You have beat me to it! I was planning on starting this very component in the next couple of weeks. Do you have a prototype firefox extension yet? How do you plan on structuring the data in the headers? Christoph I've just finished the proposal for Zend_Toolbar, a debug bar for F

Re: [fw-general] Re: where is bootstrap object from within a controller plugin

2009-06-11 Thread David Mintz
On Thu, Jun 11, 2009 at 4:40 AM, Jurian Sluiman wrote: > Op Thursday 11 June 2009 02:23:08 schreef Michael Depetrillo: > > I figured it out. > > > > $front = Zend_Controller_Front::getInstance(); > > $db = $front->getParam('bootstrap')->getResource('db'); > > > > Michael DePetrillo > > the...@mich

[fw-general] Kinda OT: Cloud computing for PHP and ZF at cloudheads.net

2009-06-11 Thread Wil Sinclair
Hey all, Sorry I haven't been around much lately. I've been busy in my new role at Zend trying to bring PHP to the cloud and vice versa. The fruits of my labor are starting to come online, however. One fruit I'm particularly proud of is the new social network for PHP in the cloud: http://ww

[fw-general] Zend_Toolbar proposal ready for review

2009-06-11 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi peeps, I've just finished the proposal for Zend_Toolbar, a debug bar for Firefox. I'd like to collect some feedback before moving on to the next step: http://framework.zend.com/wiki/display/ZFPROP/Zend_Toolbar+-+Ben+Scholzen Regards, Ben Scholzen

Re: [fw-general] ZendApplication modules bootstrap files

2009-06-11 Thread Alessandro_78
Brenton Alker-3 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > This is expected behaviour. Bootstrapping is used to initialize the > application and is performed before routing-- your archive module may > even use its bootstrap to add routing rules. So, at this point it is not

Re: [fw-general] Iterating a Tree

2009-06-11 Thread Matthew Ratzloff
Breadth-first traversal or depth-first traversal. This is one possible implementation of a depth-first traversal in a database table: http://www.sitepoint.com/article/hierarchical-data-database/ -Matt On Thu, Jun 11, 2009 at 3:15 AM, iceangel89 wrote: > > if i have a table like > > Nodes > ===

Re: [fw-general] ZendApplication modules bootstrap files

2009-06-11 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alessandro_78 wrote: > Hello, > > I'm posting here as I cannot find an answer anywhere. > > I'm trying to use ZendApplication to manage a new ZF application and I have > created a default module and an archive module. The archive module has also > it

[fw-general] Many Similar Forms with Many Form Fields

2009-06-11 Thread iceangel89
 i have this application that requires many forms that in each has alot of form elements =http://img193.imageshack.us/my.php?image=tmpmgv.png how will u design the DB for it? because there are many similar forms, but similar only, not the same. so if i design properly, i shld have 1 db table for

Re: [fw-general] Zend Framework - Flash AS3 Web Site

2009-06-11 Thread iceangel89
anyone? iceangel89 wrote: > > hmm any tips or tutorials on that i guess i use Zend_Amf ... but hmm i > will not be using MVC anymore right? just normal procedural programming? > or is there any frameworks or practices? AS3 has classes too maybe i need > to map them to ZF Classes/Models? > > i

Re: [fw-general] General - Web Development Frameworks

2009-06-11 Thread iceangel89
thanks for the good explanation Matthew Ratzloff wrote: > > Without knowing anything about your specific situation, I'll try to answer > as best as I can about Zend Framework and Rails. > > Presumably you already know PHP, so with Zend Framework you only need to > learn the framework. Theref

Re: [fw-general] zf pdo oci questions

2009-06-11 Thread till
On Thu, Jun 11, 2009 at 4:38 AM, Tim Rupp wrote: > There's a PDO adapter in Zend_Db, so I figured it would use PDO and not > ext/oci. There's also an adapter just called Oracle; maybe that uses > ext/oci. > > I'm finding different info depending on where I look in the > documentation at php.net. I'

[fw-general] ZendApplication modules bootstrap files

2009-06-11 Thread Alessandro_78
Hello, I'm posting here as I cannot find an answer anywhere. I'm trying to use ZendApplication to manage a new ZF application and I have created a default module and an archive module. The archive module has also its own Bootstrap.php (which classname is Archive_Bootstrap) but the strange thing

[fw-general] Threading messages in Zend_Mail

2009-06-11 Thread Bartosz Maciaszek
Hi, Is there any way to get threaded message list using Zend_Mail? I particularly use Zend_Mail_Storage_Imap. To get it clear, saying "threaded" I mean grouping messages using "references" header. Thanks B.

Re: [fw-general] _forward endless loop -> bug?

2009-06-11 Thread ruflin
As an addition: It work when I call: $this->_forward('testtest', 'auth', 'mission', array('action' => 'testtest')); -- View this message in context: http://www.nabble.com/_forward-endless-loop--%3E-bug--tp23978774p23978815.html Sent from the Zend Framework mailing list archive

[fw-general] _forward endless loop -> bug?

2009-06-11 Thread ruflin
I'm playing around with some forward action and it doesn't seem to work. Here is the code: class Mission_AuthController extends Zend_Controller_Action { public function testAction() { error_log('testaction'); $this->_forward('testtest', 'auth', 'mission');

RE: [fw-general] Iterating a Tree

2009-06-11 Thread Sergio Rinaudo
I use this class from Hector Virgen http://blog.virgentech.com/2009/06/zenddbtable-enhancements.html Sergio Rinaudo > Date: Thu, 11 Jun 2009 03:15:12 -0700 > From: comet2...@gmail.com > To: fw-general@lists.zend.com > Subject: [fw-general] Iterating a Tree > > > if i have a table like > >

[fw-general] Iterating a Tree

2009-06-11 Thread iceangel89
if i have a table like Nodes === id name parent (ref Nodes.id) how shld i iterate thru it? i am using PHP. wondering if theres an efficient way ... i did it something like mysql_connect("localhost", "root"); mysql_select_db("test"); $arr = array(); $sql = "SELECT * FROM nodes WHERE

RE: [fw-general] Zend_Paginator issue

2009-06-11 Thread Sergio Rinaudo
I don't know why, but I solved using an alias for my "page_id" field. Sergio Rinaudo From: kaiohken1...@hotmail.com To: fw-general@lists.zend.com Date: Thu, 11 Jun 2009 11:42:22 +0200 Subject: [fw-general] Zend_Paginator issue Hi, I'm getting a strange error with Zend_Paginator. I u

[fw-general] Zend_Paginator issue

2009-06-11 Thread Sergio Rinaudo
Hi, I'm getting a strange error with Zend_Paginator. I use this code to instanciate a paginator object $paginator = Zend_Paginator::factory($select); Where $select is a Zend_Db_Select object. In my view, everything is working until I am in the first page, then, from the second page, the prim

Re: [fw-general] How to save a string with quotes correctly to the db

2009-06-11 Thread Jurian Sluiman
Op Thursday 11 June 2009 10:00:12 schreef Sergio Rinaudo: > Hi, > thanks for reply. > I use Zend_Db to generate my queries, creating a select() object and then > pass it to the query() method or to the fetchAll() method, depending if I > have to iterate the data or not. > > My database table uses t

Re: [fw-general] Re: where is bootstrap object from within a controller plugin

2009-06-11 Thread Jurian Sluiman
Op Thursday 11 June 2009 02:23:08 schreef Michael Depetrillo: > I figured it out. > > $front = Zend_Controller_Front::getInstance(); > $db= $front->getParam('bootstrap')->getResource('db'); > > Michael DePetrillo > the...@michaeldepetrillo.com > Mobile: (858) 761-1605 > www.michaeldepet

RE: [fw-general] How to save a string with quotes correctly to the db

2009-06-11 Thread Sergio Rinaudo
Hi, thanks for reply. I use Zend_Db to generate my queries, creating a select() object and then pass it to the query() method or to the fetchAll() method, depending if I have to iterate the data or not. My database table uses the utf8_unicode_ci charset. Actually I removed all escaping functi

RE: [fw-general] How to save a string with quotes correctly to the db

2009-06-11 Thread Martin de Keijzer
Depends on what you are using, Zend_db, or directly an extension. Could you show us the code where you create and execute your query to the database? Met vriendelijke groet, http://www.e-sites.nl/images/email/logo.jpg http://www.e-sites.nl

[fw-general] How to save a string with quotes correctly to the db

2009-06-11 Thread Sergio Rinaudo
Hello, I'm having a problem on saving descriptions ( long strings ) that have quotes within them. So, I am asking which is the correct way to filter the string variable, before save it to the db, and how to render it after getting from the database. Thanks Sergio Rinaudo __