zend-framework

Zend Framework Render Barcodes Into Multiple PDF Pages with other content

僤鯓⒐⒋嵵緔 提交于 2019-12-11 13:23:39
问题 I am trying to create pages of incrementing labels that include barcodes. I can get a barcode into a PDF, and I can get it superimposed on other content in the PDF (see below). But I can't figure out how to assign a barcode to a certain page of a pdf using something maybe like Zend_Barcode::factory('code39', 'pdf', $barcodeOptions, $rendererOptions)->setResource($page)->draw(); or $page = Zend_Barcode::factory('code39', 'pdf', $barcodeOptions, $rendererOptions)->setResource($pdf)->draw();

url not found in zend framework though working for index page

心已入冬 提交于 2019-12-11 13:13:35
问题 i am trying to develop website using zend framework so i had created one index.php file where all my requests goes and c.reated two controller one is IndexController and other is TestController Class IndexController extends Zend_Controller_Action{ public function indexAction(){ echo "Index Index Jamla"; } public function displayAction(){ echo "Index Display Jamla"; } } now when i access the url http://test/ it correctly calls IndexController and its IndexAction function but when i access the

Zend Gdata not working with google calendar API

妖精的绣舞 提交于 2019-12-11 13:10:41
问题 My company is using zend gdata 1.11.7, relatively old, but they havent had the ability to move to newer things yet. We have a program that adds events to a google calendar based on the forms submitted by the user. This morning, we now get the error below: Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403< HTML>< HEAD>< TITLE>Forbidden< /HEAD>< BODY BGCOLOR="#FFFFFF" TEXT="#000000">< H1>Forbidden< H2>Error 403< /BODY>< /HTML> ' in

Argument 1 passed to Controller\foo must be an instance of Controller\foo

一个人想着一个人 提交于 2019-12-11 12:51:29
问题 I am very new in Zend Framework. Im following solid Zend Tutorial site (A to Z)..Im stuck here..please help me some solution from SO didnt help much..doing exactly but nothing do..same post as below Zend Framework 2:Argument 1 passed to Album\Controller\AlbumController::__construct() must be an instance of Album\Controller\AlbumTable Hitting this error Argument 1 passed to Album\Controller\AlbumController::__construct() must be an instance of Album\Controller\AlbumTable, instance of Album

Success Callback not called when $http post is in method scope

一个人想着一个人 提交于 2019-12-11 12:50:49
问题 I am trying to achieve a login functionality using Angular JS on front-end and PHP + Zend on the back-end. Below is the code snippet of the angular js controller. This doesn't redirect the user to the appropriate page and while debugging, the control doesn't enter the success part but enters the error part with data being NULL . However if I put the $http part outside the function, atleast the control enters the success part with data being that of the next page to be redirected. What could i

Rewrite all URL to SSL except specific folders with Zend Framework

拜拜、爱过 提交于 2019-12-11 12:47:59
问题 thanks in advance for any help. I have Zend Framework setup for our web app, and has worked fine using a basic SSL redirect until now. We'd like to redirect all URL's to SSL, except a couple paths. One path works fine and is just loading image files. But the other path does not, and it is a Zend Framework Controller with an Action requiring request arguments. Here's our current, working config: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !(/images) RewriteRule ^

Form elements are not shown?

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:39:33
问题 Created Form in projectfolder/application/forms/Login.php class Form_Login extends Zend_Form { public function _construct() { $this->setMethod('post'); $elements = array(); $element = $this->addElement('text', 'username'); $element->setLabel('Username'); $elements[] = $element; $element = $this->addElement('password', 'password'); $element->setLabel('Password'); $elements[] = $element; $this->addElements( $elements ); $this->setElementDecorators( array( 'ViewHelper' ) ); } } Accessing Form in

Translations from DB in ZF2

人盡茶涼 提交于 2019-12-11 12:33:57
问题 I have problem with creating custom translator from database in ZF2. I have a DB like this and files: 1)Application/module.config.php 'service_manager' => array( 'abstract_factories' => array(), 'factories' => array( 'translator' => function($sm){ $translator = new \Zend\I18n\Translator\DatabaseTranslationLoaderFactory(); return $translator->createService($sm); }, ), ), 'translator' => array( 'locale' => 'en_US', 'translation_file_patterns' => array( array( 'type' => 'Zend\I18n\Translator

How $this works in .phtml files in zend framework?

帅比萌擦擦* 提交于 2019-12-11 12:13:28
问题 For all my practice with OOP I have never used $this outside of the class definition. While in zendframework we use $this in view template files, obviously it is not the scope of a class definition. I wonder how it has been implemented ? I have googled a lot but got no luck. I want to know the mechanism how zendframework renders it's view files with $this. 回答1: It actually is in the scope of a class definition. Simple test-case: <?php // let's call this view.php class View { private $variable

how to keep track of currently logged user in zend framework

五迷三道 提交于 2019-12-11 11:59:24
问题 I am a new user for zend framework. For my applications I need to keep track of currently logged in user, to do this I know I have to use zend_Auth and zend_Acl , but I don't know how to do that. 回答1: Well then the documentation would be the first place for you. Zend_Auth: http://framework.zend.com/manual/en/zend.auth.html Zend_Acl: http://framework.zend.com/manual/en/zend.acl.html To get an easier access you could try this great tutorial series on youtube: http://www.youtube.com/watch?v