Hi guys, I'm trying to remove a row from a table when I click a specific row column. I'm using .live() so that I can remove rows added from a ajax request. It works fine, my problem is, the table comes from php with two rows, I can then insert new ones and remove them, but when I remove one of the rows that came with php, it remove all r...
Possible Duplicate:
Zend Db avoiding sql injections
I use following code
$this->getDb()->fetchRow($sql, $params);
Is it free from sql injection?
Please guide me.
How i can make it free from sql injection.
...
It is written in the documentation that it is enough to include the Zend_Form_Element_Hash element in a form and that CSRF protection is handled automatically by Zend_Form.
I have added the token like this:
$token = new Zend_Form_Element_Hash('security_token_against_csrf');
$token->setSalt($this->_helper->randomString());
$form->addEle...
Is it possible to use zend_application and zend_bootstrap as non mvc?
I'd like to use them but without the zend_view.
...
Hi,
I am new to zend framework. I have created "models" folder in application directory. Inside models folder I created a class Application_Models_Albums which extends Zend_Db_Table_Abstract.
Now when I use the following code in IndexController. I get error:
$albums = new Application_Models_Albums();
$this->view->albums = $albums->fet...
I originally posted this question over at the Zend Forums but figured it would also be wise to post here.
What has to happen, exactly, for a job to retry? I've tried timeouts, 50x response codes, and setting the status to "FAILED".
I have a simple script that creates a job...
$job_url = 'http://localhost/consumer.php?time=' . microtim...
I am using a custom Router to enable pages like:
mytutorialsite.com/category/:categoryname
# added to application.ini
resources.router.routes.categorynameOnCategory.route = /category/:categoryname
resources.router.routes.categorynameOnCategory.defaults.module = default
resources.router.routes.categorynameOnCategory.defaults.controller ...
Hi,
I cant see my error of Sql. It cuts my queries, and the error is meaningless except it informs there is an error.
Like
error in statement "select * from o.."
how can I get full query, so i can investigate how the error occured?
I previously wrote a sql function that throws debugging string if sql has error. I though zend'ers have...
I ask because in my Zend Framework app I use some view scrips that do not have an action associated with them. (Similar to the example on page 102 in the Zend Pro Framework Techniques book http://books.google.com/books?id=znA1LgQSxsoC&lpg=PP1&dq=Pro%20Zend%20Framework%20Techniques%3A%20Build%20a%20Full%20CMS%20Project&pg=PP1#...
I'm trying to figure out how to do debugging on Zend (more specifically Magento) code using Eclipse.
This is the workflow I'd like:
Set breakpoints in Eclipse.
Open up Firefox or Chrome, pull up the site in the browser
When code hits the breakpoint, Eclipse halts execution, letting me look trace everything.
Right now, I debug the ap...
Is there way how to get breadcrumbs for specific page by it´s id?
My attempt follows but i get only page label. No breadcrumb path.
$view = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view;
$page = $view->navigation ()->findBy ('id', 'menuCategory29');
// work fine page label is displayed
echo $page->getTitle(...
If I remember correctly, parsing .ini files in PHP takes a long time. So, why not cache it (the file won't change during a request)
What is the best way to do this?
Or are there any reasons not to do it?
...
I created a custom helper, I was wondering if there was a way to access the view placehilders.
class Zend_View_Helper_MyHelper {
public function MyHelper {
$this->view->appendScript('myscript.js');
}
}
I get: Call to a member function appendScript() on a non-object
Thanks!
...
I want to switch slave db if master fails. I found Master/Slave switch, but its for reading writing (seems very logical, but not this case). Can you give " db failure" strategy in zend?
...
My application structure:
/application
/models
ShoppingCart.php
/modules
/orders
/models
Order.php
I want to create a module application so in my application.ini I put:
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = ""
Basically my Application_Model_ShoppingCart for my m...
In Zend's Documentation they write about creating Navigation Containers. But they don't explain where I should create them. Does anyone know that?
I'm also wondering if a custom Navigation Container extends or overwrites the navigation.xml file which contains the static links.
(I want to make a custom Navigation Container to add dyna...
hello, can you tell me how to include the Zend_Session::start() in a bootstrap file of zf app?
...
I'm trying to make Zend's command line tool to work in Aptana's terminal view (on Windows), so I can use commands like "zf create model User" directly from aptana.
So far I've managed to get the zf command work by making an alias like this alias zf=/path/to/zend/bin/zf.sh but now I'm stuck because I have to make php's cli work too.. and...
Hello friends,
I would like to create a global var inside my bootstrap, this is the configuration:
require_once 'Initializer.php';
require_once 'Zend/Loader/Autoloader.php';
require_once 'Zend/Controller/Router/Route.php';
require_once 'Zend/Controller/Action/HelperBroker.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$aut...
I am trying to set up a Zend Controller Route to Route to ALL of the Following URLs:
http://www.domain.com/controller
http://www.domain.com/controller/id
http://www.domain.com/controller/action
http://www.domain.com/controller/id/action
Is this possible with Zend Framework?
In particular I am having trouble routing to:
http://www....