zend-framework

Terrible performance in Zend Db PDO_sqlite insert and update queries

不羁的心 提交于 2019-12-25 08:58:13
问题 I'm having some major issues with my sqlite database performance. I'm using it for storing small amount of data, which should be really fast, but somehow takes way too long. First of all, I create Zend_Db object with factory static method: $this->db = Zend_Db::factory('PDO_SQLITE', $params); Afterwards I run some simple query: $this->db->query($q) And here goes time from logs: 2012-04-26 13:08:06.752855 : UPDATE session SET value ='542M', timeStamp ='1335438486' , type='999', ip ='62.21.30.77

zend framework zf command not working

心不动则不痛 提交于 2019-12-25 08:24:11
问题 m using wamp and zend framework. firstly i had installed wamp localhost working fine then. downloaded Zend framework. added php path, zend library path in environment variable of windows. enabled rewrite module and set include path in php.ini which i get correct in phpinfo file. after this m trying to execute zf create project FirstProject after this command on console i get an error In order to run the zf command, you need to ensure that Zend Framework is inside your include_path. There are

Setting Up Zend in Wamp server [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 08:24:05
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Zend - How to install on WAMP I have a website created in Zend Framework. But when iam trying to load in wamp server it is not working correctly. If there is any set up steps in wamp for zend? How can setup zend frame work website in wamp server? In this site there have a login page , when i login correctly it will displays a white page only nothing will be loaded. What is the reason?the login page is displayed

Message: The PDO extension is required for this adapter but the extension is not loaded

谁都会走 提交于 2019-12-25 08:22:50
问题 An error occurred Application error Exception information: Message: The PDO extension is required for this adapter but the extension is not loaded Stack trace: #0 /var/www/zf-tutorial/library/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /var/www/zf-tutorial/library/Zend/Db/Adapter/Abstract.php(448): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /var/www/zf-tutorial/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE `album...',

Set custom filter plugin inside servicemanager config zend framework

旧街凉风 提交于 2019-12-25 07:44:45
问题 I have the following code in my application user form that creates the input filter for the address2 element . $inputFilter = new InputFilter(); $inputFilter->add([ 'name' => 'address2', 'required' => true, 'filters' => [ ['name'=>'StringTrim'], ['name'=>'Administration\Filter\Ucwords'] ] ]); As you can see, I have the class name set as the name of the filter. I get the following error: A plugin by the name "Administration\Filter\Ucwords" was not found in the plugin manager Zend\Filter

Set jQueryUiPath in Zend Framework project

给你一囗甜甜゛ 提交于 2019-12-25 06:51:29
问题 in my main layout template I set jQuery paths: if ($this->jQuery ()->isEnabled ()) { $this->jQuery ()->setLocalPath ( $this->baseUrl () . '/js/jquery/jquery-1.4.2.min.js' )->setUiLocalPath ( $this->baseUrl () . '/js/jquery/jquery-ui-1.8.4.custom.min.js' )->addStyleSheet ( $this->baseUrl () . '/js/jquery/css/custom-theme/jquery-ui-1.8.4.custom.css' ); echo $this->jQuery (); } but for some reason the ui javascript file does not appear in the header, however the css for ui is included. any ideas

How to show data with checkboxes in zend Framework

狂风中的少年 提交于 2019-12-25 06:38:05
问题 I am using Zend framework. In this i create a model and put my database connection in this model. Here is my code so far :- public function getTagusers(){ try { $stat = $this->db->query("select a.tagCode child, b.tagCode parent " . "from tag a, tag b where a.tagParentId=b.tagId"); $aResultData = $stat->fetchall(); } catch(Exception $e){ error_log('Exception in '.__FUNCTION__.' : line '.__LINE__.' : ' . $e->getMessage()); } return $aResultData; } Now I am using action in controller. My code is

MYSQL_ATTR_INIT_COMMAND error

Deadly 提交于 2019-12-25 06:05:11
问题 I'm new to Zend Framework and I'm learning how to create an application following the steps in the framework.zend webpages. I have a problem with the global.php page. my global.php is: return array( 'db' => array( 'driver' => 'Pdo', 'dsn' => 'mysql:dbname=zf2tutorial;host=127.0.0.1;charset=utf8', 'driver_options' => array( PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'" ), ), 'service_manager' => array( 'factories' => array( 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter

MYSQL_ATTR_INIT_COMMAND error

独自空忆成欢 提交于 2019-12-25 06:05:06
问题 I'm new to Zend Framework and I'm learning how to create an application following the steps in the framework.zend webpages. I have a problem with the global.php page. my global.php is: return array( 'db' => array( 'driver' => 'Pdo', 'dsn' => 'mysql:dbname=zf2tutorial;host=127.0.0.1;charset=utf8', 'driver_options' => array( PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'" ), ), 'service_manager' => array( 'factories' => array( 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter

Accessing public timelines using Twitter's new API

China☆狼群 提交于 2019-12-25 05:26:06
问题 Owing to the fact that Twitter have recently overhauled their API, I'm trying to think of ways to get my Zend CMS application to access the public timelines of clients. I'm currently using this: $twitterSearch = new Zend_Service_Twitter_Search('json'); $output = $twitterSearch->search("from:$username", array('rpp' => $total, 'page' => $page)); return $output['results']; To return the required data - this works without a hitch. The problem, however, is that it only seems to be returning very