Re: [fw-general] Getting any Zend Framework set up in Eclipse & working on Ubuntu

2009-06-17 Thread ksgarrett
It's not the re-write; that's working. I followed the instructions on this article http://devzone.zend.com/node/view/id/70 And found the re-write is working fine, but it's still throwing a missing controller error -- which is visible in the index page when you run in Eclipse. The framework is

Re: [fw-general] Getting any Zend Framework set up in Eclipse & working on Ubuntu

2009-06-17 Thread ksgarrett
I switched to a different workspace and am able to get past this error. (It's no longer looking for the Zend library file path that had somehow gotten linked to a (now invalid) location.) Now it's looking for a controller based on my complete directory path, and it's not skipping over the direc

[fw-general] JSON Schema Component

2009-06-17 Thread Christoph Dorn
I was wondering if anybody has done any work on a JSON Schema [1] component or if there is any interest in such a component. Christoph [1] - http://groups.google.com/group/json-schema

[fw-general] Getting any Zend Framework set up in Eclipse & working on Ubuntu

2009-06-17 Thread ksgarrett
Hi, I cannot seem to get any of the sample projects working. I can get it to work in the browser, and the initial page does show up as expected, but I cannot run any of it through eclipse, as all I get is an "invalid controller" message, called from the main index.php: $application->bootstrap();

Re: [fw-general] Autoloader confusion

2009-06-17 Thread Matthew Weier O'Phinney
-- MarkDNA wrote (on Wednesday, 17 June 2009, 02:10 PM -0700): > lightflowmark wrote: > > I feel I'm missing something with Zend_Loader_Autoload, as I can't make it > > do what I want! > > > > I think the relevant points are: > > 1) my models are are in a models directory and are not prefixed -

Re: [fw-general] How to include the result of a request inside the phtml file ?

2009-06-17 Thread Matthew Weier O'Phinney
-- Juan Felipe Alvarez Saldarriaga wrote (on Tuesday, 16 June 2009, 11:56 PM -0500): > Hey, Matthew, just to know, the action helper will be removed soon ? because > some people doesn't like it (like action stack :P), the best approach here > will > be create a view helper ? Yeah, I probably sho

Re: [fw-general] Zend_Application_Module_Bootstrap doesn't work with default module

2009-06-17 Thread fab2008
Stratocaster wrote: > > Your main 'Bootstrap.php' file should look something like this: > > class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { > > protected function _initAutoload() > { > $moduleLoader = new Zend_Application_Module_Autoloader(array( >

Re: [fw-general] Get Curl handle ressource when use Zend_Http_Client with Zend_Http_Client_Adapter_Curl

2009-06-17 Thread Benjamin Eberlei
On Tuesday 16 June 2009 06:36:58 pm MARTIN Nicolas wrote: > Hi all, > > I use Zend_Http_Client with Zend_Http_Client_Adapter_Curl and I would like > to get more informations and so use curl_getinfo($ch) [$ch is handle > ressource] > This handle ressource is the _curl property in > Zend_Http_Client_

Re: [fw-general] disable magic_quotes_gpc

2009-06-17 Thread MarkDNA
Mantasgl wrote: > > Hi, > > I found that in my hosting company magic_quotes_gpc is on by default. > > I can't turn them off in my .htaccess file, I get internal sever error. I > used both: > php_flag magic_quotes_gpc Off > php_value magic_quotes_gpc Off > > I solved this problem by adding thi

Re: [fw-general] Autoloader confusion

2009-06-17 Thread MarkDNA
lightflowmark wrote: > > Hi, > I feel I'm missing something with Zend_Loader_Autoload, as I can't make it > do what I want! > > I think the relevant points are: > 1) my models are are in a models directory and are not prefixed - > models/SomeTable.php contains class SomeTable extends > Zend_Db

[fw-general] disable magic_quotes_gpc

2009-06-17 Thread Mantasgl
Hi, I found that in my hosting company magic_quotes_gpc is on by default. I can't turn them off in my .htaccess file, I get internal sever error. I used both: php_flag magic_quotes_gpc Off php_value magic_quotes_gpc Off I solved this problem by adding this code in my bootstrap: if (get_magic_qu

Re: [fw-general] should i user Zend_Validate in a class to validate data

2009-06-17 Thread MarkDNA
mnaveed wrote: > > Hi, > Should I user Zend_Validator in my class to validate data? I will be using > it in setter methods to verify that the values passed are valid or not. Is > it the right thing to do? > This depends on how you are getting the info to your action. If this data is the result

Re: [fw-general] Putting Zend Framework application online

2009-06-17 Thread Mantasgl
Thank you guys for all the help ;) My hosting company doesn't allow to put folders outside httpdocs folder and there no public_html folder. So I have to put everything inside httpdocs folder. Is it bad technique to cut out index.php from the httpdocs/public/ folder and to paste it in httpdocs/ fo

[fw-general] Re: Cannot locate the right script

2009-06-17 Thread Vadim Gabriel
Forget the function i showed above. I am now using the viewRenderer action helper to render the views. What i did (and worked before) $this->viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($this->view); $this->viewRenderer->setViewBasePathSpec( MODULE_PATH . 'views/'.$th

Re: [fw-general] Zend_Application_Module_Bootstrap doesn't work with default module

2009-06-17 Thread Stratocaster
Your main 'Bootstrap.php' file should look something like this: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initAutoload() { $moduleLoader = new Zend_Application_Module_Autoloader(array( 'namespace' => 'Default_',

RE: [fw-general] Problem with raw image output

2009-06-17 Thread Terre Porter
This worked for me. function indexAction() { // disable view and layout Zend_Layout::getMvcInstance()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); // setup realpath to image $path_to_image = $_SERVER['DOCUMENT_ROOT'].'/images/EQ2_000192.jpg'; // set headers hea

Re: [fw-general] Transferring site to 5.0.5 php installation

2009-06-17 Thread Tim Fountain
2009/6/17 Mark Steudel > I had to transfer a site from one server to another, and the new server is > installed with 5.0.5. I'm now getting the following error when I include the > PDO Mysql adapter: > > *Parse error*: syntax error, unexpected T_ARRAY, expecting '&' or > T_VARIABLE in */netapp/wh

Re: [fw-general] Problem with raw image output

2009-06-17 Thread Deanna Bonds
unlex wrote: outside ZF. But I've tried to pass null and this had no effect. There is no matter what we pass in this case - '' or null. It works fine I use a view to output an image. After creating it with gd routines, I turn off layouts and set view->img This is my view code header('C

[fw-general] Transferring site to 5.0.5 php installation

2009-06-17 Thread Mark Steudel
I had to transfer a site from one server to another, and the new server is installed with 5.0.5. I'm now getting the following error when I include the PDO Mysql adapter: require_once 'Zend/Db.php'; require_once 'Zend/Db/Adapter/Pdo/Mysql.php'; *Parse error*: syntax error, unexpected T_ARRAY, ex

Re: [fw-general] How to include the result of a request inside the phtml file ?

2009-06-17 Thread Juan Felipe Alvarez Saldarriaga
Hey, Matthew, just to know, the action helper will be removed soon ? because some people doesn't like it (like action stack :P), the best approach here will be create a view helper ? Saludos. On Tue, Jun 16, 2009 at 4:48 PM, Matthew Weier O'Phinney wrote: > -- debussy007 wrote > (on Tuesday, 16

[fw-general] Custom Filter Question

2009-06-17 Thread Deepak
Related to my previous post on slash(/) on query string, I wanted to implement my custom filter. OK I think understand some concept of custom filter. Now I have custom filter implemented but it is not working. I have /application /library /My /Filter Interface.php Slash2C

[fw-general] Which one to choose?

2009-06-17 Thread Erwin Toze
Hi list! I have to do a cms and I need some inspiration as I'm not a php expert. But some zf based cms already exist on google code or github So I'm wondering if you have any advice which one seems to be the more complete, follows the best practices Thanks for your help Erwin

[fw-general] How to remove Page cache? (Was: Page/Core Cache share backend, but cannot remove Pages using Core?)

2009-06-17 Thread Phillip Winn
In further testing, this is a different problem than I'd realized. $pageCache->remove($key) doesn't remove the key, either. I'm unsure how to invalidate a page cache now, which makes the cache of dubious benefit. I know about cancel(), but that seems designed to prevent a page from caching in the

[fw-general] question about 3 column layout

2009-06-17 Thread eng. Anatoli Marinov
Hi mates, First I want to apologies for my questions. The myth be stupid I know but could not find a good book for latest ZF. I want to create a simple blog application with latest ZF. I have a plan to use 3 column layout. First column will contain login panel and other links. Second will be the p

[fw-general] Page/Core Cache share backend, but cannot remove Pages using Core?

2009-06-17 Thread Phillip Winn
I've set up both Page caching and Core caching using the same backend: $pageCache = Zend_Cache::factory('Page', 'Memcached', $frontendPageOptions, $backendOptions); $pageCache->start(); $cache = Zend_Cache::factory('BC_Cache_Core', 'Memcached', $frontendCoreOptions, $backen

Re: [fw-general] Problem with raw image output

2009-06-17 Thread unlex
Mon Zafra wrote: > > From http://php.net/imagejpeg, it says you need to pass null as the second > arg if you want to skip it but need to specify the quality. An empty > string > is not the same as null. Try imagejpeg($img,null,75); > There is no matter what we pass in this case - '' or nul

Re: [fw-general] Problem with raw image output

2009-06-17 Thread Mon Zafra
>From http://php.net/imagejpeg, it says you need to pass null as the second arg if you want to skip it but need to specify the quality. An empty string is not the same as null. Try imagejpeg($img,null,75); -- Mon On Wed, Jun 17, 2009 at 5:37 PM, unlex wrote: > > Hi, > I have the following p

[fw-general] Field not updating when textbox have space

2009-06-17 Thread jigen7
hello I've got a problem here i manage to do a code where i displays the rows of a table then i'd put them in an textbox so user can edit it. i manage to get the code where you update all the rows once a button is pressed but the problem is when a text with a space is inputted the row is not updat

Re: [fw-general] How to include the result of a request inside the phtml file ?

2009-06-17 Thread debussy007
Thank you !! Very powerful !! Matthew Weier O'Phinney-3 wrote: > > -- debussy007 wrote > (on Tuesday, 16 June 2009, 02:12 PM -0700): >> When rendering the phtml file, I would like to get the result of a >> request >> and put it in the html : >> >> [some html code ...] >> >> > // put th

Re: [fw-general] Zend_Loader_Autoloader: Must I rewrite all my class and instances?

2009-06-17 Thread Mon Zafra
You can add application/models to your include path and set the fallback flag set_include_path(get_include_path() . PATH_SEPARATOR . '../application/models'); $autoloader->setFallbackAutoloader(true); -- Mon On Wed, Jun 17, 2009 at 3:03 PM, Alessandro Camilli wrote: > > In my folder ../appl

[fw-general] should i user Zend_Validate in a class to validate data

2009-06-17 Thread mnaveed
Hi, Should I user Zend_Validator in my class to validate data? I will be using it in setter methods to verify that the values passed are valid or not. Is it the right thing to do? -- View this message in context: http://www.nabble.com/should-i-user-Zend_Validate-in-a-class-to-validate-data-tp2

[fw-general] Problem with raw image output

2009-06-17 Thread unlex
Hi, I have the following problem. i need to output images thumbnails without saving them to the disk. in other words I need to output raw image directly to the browser. It's not a difficult task and I've done this many times BUT not using ZF. But here I have a problem which I can't solve for sever

[fw-general] Testing Zend controllers

2009-06-17 Thread mfuller
I'm trying to create a controller test. When I run the test I get Zend_Controller_Exception: No default module defined for this application ... library/Zend/Controller/Dispatcher/Standard.php:380 ... library/Zend/Controller/Dispatcher/Standard.php:203 ... library/Zend/Controller/Dispatcher/Standa

Re: [fw-general] TinyMce editor

2009-06-17 Thread Dalibor Karlović
On Wednesday 17 June 2009 01:44:36 Juan Felipe Alvarez Saldarriaga wrote: > Hey, what about FCKEditor ? I love the "browse server files" feature. It's Dojo vs. the others all over again. :) IMHO, a component should be chosen and included in Standard with interfaces and base classes written (let's

[fw-general] Cannot locate the right script

2009-06-17 Thread Vadim Gabriel
I am probably missing something but i am getting the following error: *Fatal error*: Uncaught exception 'Zend_View_Exception' with message 'script 'login.phtml' not found in path (C:\wamp\www\77workshop\application\modules\cp\views\default\layouts\;C:\wamp\www\77workshop\application\modules\defau

Re: [fw-general] Fwd: Transferring site to 5.0.5 php installation

2009-06-17 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You need at least version 5.1.4 or later, source: http://framework.zend.com/svn/framework/standard/branches/release-1.5/documentation/manual/en/ref/requirements.xml Any newer ZF version depends on an even higher PHP version. .

[fw-general] Zend_Loader_Autoloader: Must I rewrite all my class and instances?

2009-06-17 Thread Alessandro Camilli
In my folder ../application/models/ there are many classes. With the new behavior of zf 1.8.3 : In my bootstrap: require_once 'Zend/Loader/Autoloader.php'; $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('My'); $autoloader->registerNamespace('i5'); $resourc