zend-framework

Do I need to hack ZendFramework1.10.8/Doctrine1.2.2 to get model generated?

旧城冷巷雨未停 提交于 2019-12-22 16:46:05
问题 I've started reading on zend framework and it's use with Doctrine and have implemented a small project to grasp the understanding.I've come to a point where i needed my model generated as in having a generate script like the one suggested in Doctrine 1.2.2 pdf manual.After few unsuccessful attempts like Class 'sfYaml' not found in G:\php_document\zendworkspace\BookingManager\library\doctrine\Doctrine\Parser\Yml.php on line 80 i've googled and found out what people are doing about that. To me

Do I need to hack ZendFramework1.10.8/Doctrine1.2.2 to get model generated?

Deadly 提交于 2019-12-22 16:44:04
问题 I've started reading on zend framework and it's use with Doctrine and have implemented a small project to grasp the understanding.I've come to a point where i needed my model generated as in having a generate script like the one suggested in Doctrine 1.2.2 pdf manual.After few unsuccessful attempts like Class 'sfYaml' not found in G:\php_document\zendworkspace\BookingManager\library\doctrine\Doctrine\Parser\Yml.php on line 80 i've googled and found out what people are doing about that. To me

Zend 1.11.11 Doctrine 2.1.2 initialising of associative proxy entities

大城市里の小女人 提交于 2019-12-22 16:36:43
问题 I am having this strange issue with an associative entity being a proxy class and its methods always returning null. I hope someone can shed a little light on the subject because it's driving me insane. I am calling this code: $arrRoleResources = $em->getRepository("AJFIT\Entity\UserRoleResources")->findAll(); foreach($arrRoleResources as $roleResource) { $name = $roleResource->getRoleFk()->getName(); } The $name will always be null even though when I debug the code it initializes the proxy

Magento refresh cache on plugin save

两盒软妹~` 提交于 2019-12-22 14:47:14
问题 I have written a simple Magento plugin that simply lists all sub categories that are enabled from a given parent id. The user simply selects a parent category id from the admin using the plugin tab i have created. To speed things up i have added block caching to the plugin using the following code $this->addData(array( 'cache_lifetime' => 86400, 'cache_tags' => array(Mage_Catalog_Model_Category::CACHE_TAG) )); This works well so far, as if a sub category is enabled / disabled the cache

date not saving in mysql database

人盡茶涼 提交于 2019-12-22 13:31:24
问题 I have a problem with saving a date in my MySQL database. To test everything: I am trying to save 2010-01-01 (for example) in a MySQL database. First I set my MySQL field to date. This didn't work. But when I set the field to a string type it does save date in the database. Why doesn't it work when I want to save a date into a date field? Although I think code isn't important here I will post it since it's requested. I use zf 1.9.6 class JS_Form_EventForm extends ZendX_JQuery_Form{ public

date not saving in mysql database

风流意气都作罢 提交于 2019-12-22 13:31:24
问题 I have a problem with saving a date in my MySQL database. To test everything: I am trying to save 2010-01-01 (for example) in a MySQL database. First I set my MySQL field to date. This didn't work. But when I set the field to a string type it does save date in the database. Why doesn't it work when I want to save a date into a date field? Although I think code isn't important here I will post it since it's requested. I use zf 1.9.6 class JS_Form_EventForm extends ZendX_JQuery_Form{ public

Modify Stack in the Zend HeadScript View Helper

依然范特西╮ 提交于 2019-12-22 12:53:49
问题 I am trying to attack this problem from a completely different angle, because it doesn't look like I can achieve my goal that way. I want to loop over the item stack in the HeadScript View Helper, and make modifications to it. The documentation for this and some of the other view helpers makes this statement: HeadScript overrides each of append(), offsetSet(), prepend(), and set() to enforce usage of the special methods as listed above. Internally, it stores each item as a stdClass token,

Modify Stack in the Zend HeadScript View Helper

痞子三分冷 提交于 2019-12-22 12:53:03
问题 I am trying to attack this problem from a completely different angle, because it doesn't look like I can achieve my goal that way. I want to loop over the item stack in the HeadScript View Helper, and make modifications to it. The documentation for this and some of the other view helpers makes this statement: HeadScript overrides each of append(), offsetSet(), prepend(), and set() to enforce usage of the special methods as listed above. Internally, it stores each item as a stdClass token,

sending ical through zend_mail

孤街浪徒 提交于 2019-12-22 12:44:29
问题 Can someone guide me in right direction. I am trying to send my all calendar events to my users using mail. I have a php function which is working as per my expectations. I am trying to implement the same functionality in zend framework using zend_mail. Here is the function that is working. function sendIcalEmail($firstname,$lastname,$email,$meeting_date,$meeting_name,$meeting_duration) { $from_name = "RK"; $from_address = "m.ravikant10@gmail.com"; $subject = "Meeting Booking"; //Doubles as

zend framework rest controller question

徘徊边缘 提交于 2019-12-22 12:37:51
问题 I have a rest controller example im trying to run that is giving me a headache. My url im trying to access is localhost/books/edit/1 For some weird reason this route seems to call the getAction with the Controller instead of the editAction. And it throws errors saying that the object doesnt exist. The controller is, class BooksController extends Zend_Rest_Controller { private $_booksTable; private $_form; public function init() { $bootstrap = $this->getInvokeArg ( 'bootstrap' ); $db =