Zend newbie - Controller/view question
Contoller iscalled MaintainusersController.php View is called maintainusers/listusers.phtml How do I push values from controller to view. foreach ($users as $value){ /// do something here } ...
Contoller iscalled MaintainusersController.php View is called maintainusers/listusers.phtml How do I push values from controller to view. foreach ($users as $value){ /// do something here } ...
url is: http://mySite.com/adminusers/listusers/ my controller is called public function listusersAction() http://mySite.com/adminusers/listusers/regular http://mySite.com/adminusers/listusers/premium http://mySite.com/adminusers/listusers/excecutive How can I capture last piece of the URL as a paremter in controller file listu...
I want to add another page in the magento module like the following... <catalog_wizard_default translate="label"> <reference name="content"> <block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/> <block type="catalog/category_view" name="category.products" template="catalog/cate...
I am trying to upload the document from my site to Google Docs using Zend Gdata library, but it gives below error. Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 400 Inconsistent repeating query parameter ' Thanks in Advance and please ignore my english errors. ...
how can i configure my zend apps so that they can be accessed on the same domain like the one found on apache tomcat e.g. if you have two applications deployed on apache tomcat server you can access them like http://localhost:8080/AplicationOne http://localhost:8080/ApplicationTWo now what i want to have is if i have 2 apps X and ...
We recently upgraded our PHP and apache versions on our server. Prior to this our sessions were able to be carried over between subdomains without error. Unfortunately when we made the upgrades it stopped working. From what I can see everything is the same. I have tried ini_set("suhosin.session.cryptdocroot", "Off"); ini_set("suhosi...
I am trying to create a magento shopping cart module but things arent working out. Here is my steps I first create a xml in the app etc... <?xml version="1.0"?> <config> <modules> <mywebwow_AdvancedCatalog> <active>true</active> <codePool>local</codePool> </mywebwow_AdvancedCatalog> </mod...
hi i have a registration form which contains a postalcode and a country drop down given those two values i want to validate the postcode via zend_validate_postcode this validator wants a zend_locale in the constructor now i dont know how to create a zend_locale only ba a given country which means i would have to create from an US user ...
I am currently outputting the url of a particular module like so: $this->view->url(array('controller'=>'index','action'=>'index','module'=>'somemodule')) The problem is when I view: /somemodule/action1/paramid/paramval The url is showing as: /somemodule/index/index/paramid/paramval When all I really want is: /somemodule/ Any idea...
I am creating a custom module with a new URL. As of right now. If I put a echo into my Indexcontroller class and goto mydomain.com/index.php/advancedcatalog, It detects the echo But it does not detect my view. Here is my structure /Advancedcatalog/Block/Advancedcatalog.php Advancedcatalog.php <?php class Webwow_Advancedcatalog_Block_A...
I'm debugging a PHP extension and found this while poking through the PHP source code: #if DEBUG_ZEND>=2 printf("Reducing refcount for %x (%x): %d->%d\n", *zval_ptr, zval_ptr, Z_REFCOUNT_PP(zval_ptr), Z_REFCOUNT_PP(zval_ptr) - 1); #endif So I want to compile with DEBUG_ZEND set to 2. In Zend/zend_compile.h, I saw: #define DEBUG_Z...
Hi, have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE ?', '%'.$searchWord.'%') ->where('verified=1 AND activated=1'); In other words it looks like: SELECT `some_table`.* FROM `some_table` WHERE ...
I am making a PHP image uploader using the Zend Framework which will upload images to a public directory for people to be able to freely access. I have so far implemented these measures for security: - File size validation - Extension validation - MimeType validation - Upon successful validation file is renamed with a image extension in...
In my php5 web-application i use zend mailMerge for constructing doc/pdf files from user data. Unfortunately, when i write a code, browser throws me an error: "Uncaught exception 'Zend_Soap_Client_Exception' with message 'SOAP extension is not loaded." I contacted with my hosting provider and asked about installation soap. He told me t...
When i transfer my zend framework application from windows(zf 1.10.3) to linux (zf.10.7) some controllers work fine but some show this exception Fatal error: Undefined class constant 'EXCEPTION_NO_ROUTE' in /path/to/application/modules/default/controllers/ErrorController.php on line 11 /controllers VideoController.php /view /script...
I have since drastically edited this question as I have found a solution, but not one I'm happy with. Can anybody reduce the following code: $Loader = new Zend_Application_Module_Autoloader( array( 'namespace' => 'Default', 'basePath' => APPLICATION_PATH.'/modules/default', ) ); $Loader = new Zend_Application_Module_A...
I would like to sent request to our clients server, but they require to send XML as application/xml I was trying to use setEnc() method but I've got error on unsupported content type, so then I've tried to se setRawData() as they suggested: self::getHttpClient()->setRawData($XML, 'application/xml'); $this->restPost($this->getPath());...
Hello, I'm using the zend community server on windows vista. I'm following the tutorial in the book Zend Framework 1.8 by Keith Pope. $this->_view->headLink()->appendStylesheet('/css/main.css'); is not finding the main.css file (404). The actual file path is htdocs/myapp/public/css/main.css . When i take out the slash and chang...
I have to choose between the above mentioned frameworks for developing a big social networking Web site. Having used Zend framework for several projects before, I am biased towards using it, however, I would like to have a fair opinion. We are mainly looking for performance and extensibility. ...
Hello guys, is it possible to create a custom oAuth server with the Zend Framework Zend_Oauth? For example i want to create a REST service and have oAuth authentication? Does the zend framework have support for this out of the box?> ...