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 ...
I have the following routes in my application.ini:
resources.router.routes.user.route = "users/:id/*"
resources.router.routes.user.defaults.controller = users
resources.router.routes.user.defaults.action = profile
resources.router.routes.user.reqs.id = "\d+"
resources.router.routes.page.route = "pages/:date/*"
resources.router.routes.p...
Hi,
Does anyone here use Zend Framework, ZFDoctrine and PHPUnit together?
How to rebuild the database on each test run?
How to separate local/production/testing environments?
Would you share your unit testing setup?
I have been trying something like that:
// /tests/bootstrap.php
// ... setup paths and constants here
require_once 'Ze...
Is there any PHP application that can automatically generate add/edit forms and listing pages by just reading the database. Like PhpMyAdmin but highly customizable through code or configuration files.
The main reason is to avoid time spent on development of back-end of web applications.
...
Hello friends.
Is there something similar to save for the update task?
If I want to save a new record I just do it:
$data_from_post = $_POST;
$newUser = $usersDb->fetchNew();
$newUser->setFromArray($data_from_post);
$newUser->save();
Is there something for the update task?
Thanks and best regard´s.
...
I'm perplexed by this. I have a login action that looks like this:
public function loginAction()
{
$form = new Application_Form_Login;
$form->setAction("/users/login");
$request = $this->getRequest();
var_dump($request->isPost());
if ($request->isPost() && $form->isValid($request->getPost())) {
// snipped c...
i want to implement my own Zend_Paginator_Adapter so i implemented Zend_Paginator_Adapter_Interface (docs). i am now at implementing count(). am i right to say that if my query is
SELECT * FROM Posts LIMIT ... // where limit is for pagination purposes
i need to get the total number of rows in the table (to return in count())?
SELEC...
Hello,
I'm using Zend Framework version 1.7.8.
I am trying to create a class that extends from Zend_Db_Table_Abstract:
class My_Model_Table extends Zend_Db_Table_Abstract {
public function __construct($tableName) {
parent::__construct(array('name' => $tableName, 'primary' => 'dummy', 'db' => Zend_Registry::get('dbAdapt...
Tried to get it that way inside extended model:
$this->lastInsertId();
and getting this error:
Fatal error: Call to undefined method InsertAd::lastInsertId()
Data is added successfully to the database, but i can't get auto_incremented key.
...
I'm trying to use PHPUnit to unit test some class methods that return SQL. These classes should work with any Zend_Db adapter, so I would like the tests to do the same. My tests look a little like this:
public function testEtcGeneratesCorrectSQL()
{
$model = new ClassBeingTested();
// do some stuff
$sql = $model->__toStrin...
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...
Hey guys,
I am using Zend Framework 1.6 hence I'm not utilizing Zend_Application.
I have a simple, normal View Helper (extending Zend_View_Helper_Abstract). It works perfectly fine as long as I add it to the view in my action controller. But I want to be able to use it in every view in every module. I figured it should be easy to jus...
Hi
I want to implement child parent combo box(country state like if we select any country the state combo box should be populated according to selected country) in my form with jquery.
Please give any suggestion how to implement this
Thanks
...
I install :
netbeans 6.9 on 'C:\Program
Files\NetBeans 6.9'
xampp 1.7.2 on D:\xampp
i have upgrade zend through pear
I follow the screencast and when clicking the Register Provider button. But I get message like this:
on create config tab
Successfully written Zend Tool config.
It is located at: \Documents and Settings\Permana/.zf....
Is there any way to start a new zend project without using command line? I don't have acess to the console.
...
I'm building a web app in zend framework that needs UTF8 support for all languages.
This seems to work fine except for functions like stripslashes and such.
On this URL, they talk about using MBSTRING
http://developer.loftdigital.com/blog/php-utf-8-cheatsheet
Is it necessary to use mbstring on my server and replace ALL occurences of U...
My routes work fine apart from when I am at an action that requires a parameter. For example, these work ok:
/news
/news/admin
/news/admin/add
But this doesn't:
/news/admin/edit/1
But only routes using the 'default' route render incorrectly (they render as ../../module/controller), all other routes render correctly (/module/conntro...
Hello my friends,
I´m using find() to retrieve a value from the database, but It returns an array with the objects, I would like that it return to me just the object like fetchRow returns, is there any change or similar thing to do?
Thanks, and best regard´s.
...
I am Using zend Framework-1.7.2. when I am Updating Account Information of logged in user that time I am using jquery validations. But the script is not working.
How to use it? Please, anyone can help me ?
I am not using Zend Jquery Plugin. I am using seperate Jquery script like we are including and using in any simple php project.
...
Do you know any open source applications based on Zend Framework, good for reference purposes?
Here are some I know:
ZFPlanet
Pastebin
Postr
Magento
Digitalus CMS
Storefront
joobsbox
Did I missed something interested?
Current version of ZF is 1.10.7.
The most up to date is ZFPlanet, which reqiures 1.10.3
Feel free to update.
One c...